Skip to content

Add haptic feedback on long press - #5934

Open
DEEPIKA-217M wants to merge 1 commit into
zulip:mainfrom
DEEPIKA-217M:fix-haptic-feedback-long-press
Open

DEEPIKA-217M wants to merge 1 commit into
zulip:mainfrom
DEEPIKA-217M:fix-haptic-feedback-long-press

Conversation

@DEEPIKA-217M

Copy link
Copy Markdown

What does this PR do?

Adds haptic feedback when a Touchable receives a long-press gesture.

The existing onLongPress callback behavior is preserved, and haptic feedback is triggered before invoking the callback.

Changes

  • Added expo-haptics as a dependency.
  • Added Flow type definitions for expo-haptics.
  • Added haptic feedback to Touchable long-press handling.
  • Added a unit test covering the onLongPress callback.
  • Updated Jest configuration to transform expo-haptics.

Testing

  • yarn test --all-files jest
  • All 99 test suites passed.
  • 2543 tests passed.
  • 108 snapshots passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant