-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 3 (RC 2): Creating Animated Components with createAnimatedComponent throws error in Strict Mode #3573
Comments
This discussion also points to the usage of |
Hey @dmahajan980, thanks for submitting this issue. Indeed, |
Hi @tomekzaw, thanks for the response! While the team finds a solution to this, is there any way we can suppress this error message without bailing out of Strict mode? |
Hey, unfortunately I don't know answer to this question 😢 Related to #2911 |
Errors / Warnings in RN can simply be ignored by adding import { LogBox } from "react-native";
LogBox.ignoreLogs([
"findNodeHandle was passed an instance of AnimatedComponent",
]); |
Thanks @Peeeep for this! I tried this and the console and LogBox messages have disappeared. Thank you very much @Peeeep! I've added a few other strings which hide other error logs from Reanimated: LogBox.ignoreLogs([
'findNodeHandle was passed an instance of AnimatedComponent',
'findNodeHandle is deprecated in StrictMode',
'Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code',
'Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code',
]); |
As of React Native 0.71 |
is there any change on this or strict mode still prevent us to use createAnimatedComponent ? tried to add strict mode on my app and getting error like |
Description
I created an Animated variant of the
Circle
component in React Native SVG. While the code seems to work, it throws the following error in my console when run in React's Strict Mode:Steps to reproduce
react-native-svg
using the command:Circle
in our case). Refer the snippet below:Snack or a link to a repository
https://snack.expo.dev/@dmahajan98/reanimated-3-rc-2
Reanimated version
3.0.0-rc.2
React Native version
0.70.0
Platforms
Android
JavaScript runtime
Hermes
Workflow
Expo bare workflow
Architecture
Paper (Old Architecture)
Build type
Debug mode
Device
Android emulator
Device model
Pixel 3A XL
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: