kesha-antonov / react-native-zoom-reanimated

Zoom component on react-native + react-native-reanimated + react-native-gesture-handler
https://www.npmjs.com/package/react-native-zoom-reanimated
MIT License
205 stars 18 forks source link

[Reanimated] You can not use setGestureState in non-worklet function. #21

Open virajpsimformsolutions opened 10 months ago

virajpsimformsolutions commented 10 months ago
image
kesha-antonov commented 10 months ago

Hi Do you know the line of code where it happens?

Some functions doesn't have worklet on top of it

virajpsimformsolutions commented 10 months ago

Simulator Screen Recording - iPhone 15 - 2024-01-30 at 13 01 15

I have implemented with Flatlist. when i scroll to left or right side of the item its throws error.

-> "react-native-reanimated": "~2.14.4",

kesha-antonov commented 10 months ago

I think you need to navigate in logbox and see the line of code where it happens without it I can't say whether error in your code or in the lib's

also check docs about worklets

https://docs.swmansion.com/react-native-reanimated/docs/2.x/fundamentals/worklets/

virajpsimformsolutions commented 10 months ago

it would be better if you share the example code with the flatlist. @kesha-antonov