Skip to content

refactor: Reanimated 4, Modal instead of Portal, Expo SDK 55, leaner deps#124

Open
jcmcneal wants to merge 9 commits intoenesozturk:mainfrom
jcmcneal:main
Open

refactor: Reanimated 4, Modal instead of Portal, Expo SDK 55, leaner deps#124
jcmcneal wants to merge 9 commits intoenesozturk:mainfrom
jcmcneal:main

Conversation

@jcmcneal
Copy link

@jcmcneal jcmcneal commented Mar 4, 2026

I used Codex to refactor and modernize the package. Summary of changes:

  • Reanimated 4 & worklets – Require react-native-reanimated >= 4.2 and react-native-worklets >= 0.7; gesture and animation logic updated accordingly.
  • Modal instead of Portal – Overlay is now implemented with React Native’s Modal instead of @gorhom/portal.
  • Expo SDK 55 – Aligned with Expo 55; expo-blur and expo-haptics are peer dependencies.
  • Leaner dependencies – Removed @gorhom/portal, lodash.isequal, and nanoid from the package.
  • Provider contractHoldMenuProvider no longer wraps GestureHandlerRootView; callers must wrap the app with GestureHandlerRootView and pass HoldMenuProvider inside.
  • ThemeHoldItem.theme was removed; theme is set only via HoldMenuProvider’s theme prop.

Breaking: This is a semver-major change (intended as 1.0.0). See README “Breaking changes in 1.0” for migration notes.

I didn’t have time to update the example app or docs in this PR; the library source and README are updated. Happy to iterate on example/docs in follow-ups or maintainer edits.

jcmcneal added 9 commits March 4, 2026 11:50
…deps

- Use RN Modal instead of @gorhom/portal for overlay
- Require react-native-reanimated >= 4.2, react-native-worklets >= 0.7
- HoldMenuProvider no longer wraps GestureHandlerRootView
- Remove HoldItem.theme; theme only via provider
- Peer deps for expo-blur, expo-haptics; drop lodash.isequal, nanoid

Made-with: Cursor
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