Skip to content

Conversation

leoAshu
Copy link
Owner

@leoAshu leoAshu commented Jul 22, 2025

🚀 Summary

Refactored the ripple animation logic from the IconButton component into a reusable custom hook useRipple.

This improves modularity, enables reuse across multiple components, and keeps animation logic decoupled from UI components.

🧩 Related Issues / Tasks

🛠️ Type of Change

  • 🐞 Bug fix
  • ✨ New feature
  • 🧨 Breaking change
  • 🔨 Enhancement/Refactor
  • 📝 Documentation
  • 📜 Other (please describe):

✅ Checklist

  • The code is formatted with Prettier (npm run format or npx prettier --write .)
  • PR references a linked Issue or Task number
  • Tested on both iOS and Android devices/emulators
  • No unnecessary logs or commented-out code
  • UI changes, if any, have been reviewed visually
  • All tests are passing (if applicable)
  • Added or updated documentation where necessary

📸 Screenshots / Videos (UI changes only)

No visible UI changes; animation behavior remains consistent.

🧪 Test Plan

  • Verified ripple animation behavior in IconButton remains consistent with previous implementation.
  • Tested with custom parameters for scale, opacity, and duration.
  • Confirmed no regressions across multiple pressable components on both iOS and Android.

@leoAshu leoAshu requested a review from mano-ranjan July 22, 2025 05:09
@leoAshu leoAshu self-assigned this Jul 22, 2025
@leoAshu leoAshu added the enhancement Refactor style or logic label Jul 22, 2025
@leoAshu leoAshu force-pushed the refactor/ui-components branch from efa3088 to 2695095 Compare July 22, 2025 05:12
@leoAshu leoAshu merged commit 2026e6f into main Jul 22, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Refactor style or logic

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[REFACTOR] Refactor Ripple Animation into Reusable Hook

2 participants