Skip to content

fix(reanimated warning): use runOnJS for safe access to shared values#292

Open
pieczasz-thewidlarzgroup wants to merge 1 commit into
TheWidlarzGroup:masterfrom
pieczasz-thewidlarzgroup:fix/290-notificated-reanimated-issues
Open

fix(reanimated warning): use runOnJS for safe access to shared values#292
pieczasz-thewidlarzgroup wants to merge 1 commit into
TheWidlarzGroup:masterfrom
pieczasz-thewidlarzgroup:fix/290-notificated-reanimated-issues

Conversation

@pieczasz-thewidlarzgroup
Copy link
Copy Markdown

This PR fixes both issues #290 and #291

The warning below:

If you don't want to see this message, you can disable the strict mode. Refer to:
https://docs.swmansion.com/react-native-reanimated/docs/debugging/logger-configuration for more details.
WARN [Reanimated] Reading from value during component render. Please ensure that you do not access the value property or use get method of a shared value while React is rendering a component.

does no longer show up. I fixed this issue by using react-native-reanimated runOnJs helper to safely access shared values.

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.

3 participants