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

Warning : [Reanimated] Reading from value during component render. #6998

Open
sgandon opened this issue Feb 8, 2025 · 0 comments
Open

Warning : [Reanimated] Reading from value during component render. #6998

sgandon opened this issue Feb 8, 2025 · 0 comments
Labels
Platform: iOS This issue is specific to iOS Platform: Web This issue is specific to web Repro provided A reproduction with a snippet of code, snack or repo is provided

Comments

@sgandon
Copy link

sgandon commented Feb 8, 2025

Description

Hello,
First I am a newbie in React/Reac-native.
I am trying to build an app using Expo and get the following warning running my app on Chrome or in the iOS simulator.

[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.

There is a message explaining how to ignore this log but I believe this issue should not be ignored.

Steps to reproduce

I have created a small app to reproduce the problem here.
you just have to run it with

npm install
npx expo start --clear

and open your browser with the console log enabled.
Unfortuantely I could not create a snack for this so I created a repo to showcase the issue.

Snack or a link to a repository

https://github.com/sgandon/react-native-sandbox

Reanimated version

3.16.1

React Native version

0.76.7

Platforms

macOS, Web, iOS

JavaScript runtime

None

Workflow

Expo Dev Client

Architecture

None

Build type

None

Device

iOS simulator

Device model

iphone 16 pro

Acknowledgements

Yes

@github-actions github-actions bot added Repro provided A reproduction with a snippet of code, snack or repo is provided Platform: iOS This issue is specific to iOS Platform: Web This issue is specific to web labels Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: iOS This issue is specific to iOS Platform: Web This issue is specific to web Repro provided A reproduction with a snippet of code, snack or repo is provided
Projects
None yet
Development

No branches or pull requests

1 participant