Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
virajpsimformsolutions opened this issue Jan 30, 2024 · 4 comments

Comments

@virajpsimformsolutions
Copy link

image
@kesha-antonov
Copy link
Owner

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

Some functions doesn't have worklet on top of it

@virajpsimformsolutions
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

virajpsimformsolutions commented Jan 30, 2024

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

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

No branches or pull requests

2 participants