Skip to content

Conversation

louix
Copy link
Contributor

@louix louix commented May 23, 2025

Reanimated in strict mode (default) gives a warning when the parent component using ReText is re-rendered:

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.

This is because it's reading text.value directly in the component body (for the initial value). useMemo can be used to explicitly get the first value as a React value.

@wcandillon wcandillon merged commit bf4199c into wcandillon:master Jun 21, 2025
1 check passed
@wcandillon
Copy link
Owner

Thank you for this :)

Copy link

🎉 This PR is included in version 18.1.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants