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

Animated.View produces errors when StrictMode is enabled #6754

Open
rjantz2 opened this issue Nov 24, 2024 · 1 comment
Open

Animated.View produces errors when StrictMode is enabled #6754

rjantz2 opened this issue Nov 24, 2024 · 1 comment
Labels
Platform: iOS This issue is specific to iOS Repro provided A reproduction with a snippet of code, snack or repo is provided

Comments

@rjantz2
Copy link

rjantz2 commented Nov 24, 2024

Description

When an Animated.View is used with StrictMode the following error is logged to the console:

Warning: findHostInstance_DEPRECATED is deprecated in StrictMode. findHostInstance_DEPRECATED was passed an instance of AnimatedComponent(View) which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node

Steps to reproduce

  1. Download the linked repository.
  2. Run the app and observe the console output.

Snack or a link to a repository

https://github.com/rjantz2/StrictModeTest

Reanimated version

3.16.2

React Native version

0.76.3

Platforms

iOS

JavaScript runtime

Hermes

Workflow

Expo Go

Architecture

Fabric (New Architecture)

Build type

Debug app & dev bundle

Device

iOS and Android simulator

Device model

iPhone 15 Pro Max running iOS 17.5
Pixel_8_API_35 simulator

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 labels Nov 24, 2024
@rjantz2
Copy link
Author

rjantz2 commented Dec 5, 2024

It appears that this issue is fixed by #6736

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