enesozturk / react-native-hold-menu

📱 A performant, easy to use hold to open context menu for React Native powered by Reanimated 🚀
https://enesozturk.github.io/react-native-hold-menu/
MIT License
1.4k stars 91 forks source link

`undefined is not a function` #104

Closed NoodleOfDeath closed 1 year ago

NoodleOfDeath commented 1 year ago

Describe the bug Pressing any action prompts an undefined is not a function error on line 3 of MenuItem.tsx

To Reproduce Steps to reproduce the behavior:

  1. Add my HoldMenuProvider at the top of stack.
  2. Make a HoldItem component with items={ [ { onPress: () => alert('wtf'), text:'what the actual fuck' }] }
  3. yarn start --resetCache
  4. Open app. Click on the first item. Error happens

Expected behavior An alert message that says wtf

Actual behavior A runtime js error... will investigate to see if this is because react-native-reanimated is v3 instead of v2

Screenshots If applicable, add screenshots to help explain your problem.

IMG_2454

Package versions

Additional context Add any other context about the problem here.

NoodleOfDeath commented 1 year ago

okay, seems like it was a react-native-renanimated issue. downgrading to 2.7.0 fixed this. will you make support for v3. my app kind of needs it