Open Baskerville42 opened 1 year ago
Hey @Baskerville42, thanks for reporting this issue. The error "[Reanimated] Couldn't determine the version of the native part of Reanimated." occurs when you use a newer version of Reanimated (like 2.14.4) but the native code still runs some older version (like 2.7.0) or Reanimated wasn't initialized on the native side at all (e.g. in brownfield apps). Can you please make sure that you use the same version on JS and native side? In particular, you should run pod install
and re-build the app using Xcode.
Hey @Baskerville42, thanks for reporting this issue. The error "[Reanimated] Couldn't determine the version of the native part of Reanimated." occurs when you use a newer version of Reanimated (like 2.14.4) but the native code still runs some older version (like 2.7.0). Can you please make sure that you use the same version on JS and native side? In particular, you should run
pod install
and re-build the app using Xcode.
Hello tomekzaw Thank you for your attention to my question! Yes, I've produce this issue on my own project and with Example app. I didn't change any version, and the logs in metro are different for my own app and for Example app (I'm using v2.7.0 of Reanimated on my project).
Right now I found this comment. I thinking it's the same issue. Isn't?
I'm not familiar with Password Autofill Extension on iOS but it sounds like it needs to be initialized in a different way (e.g. brownfield) than regular iOS apps and I'm afraid we don't support that out-of-the-box. This is how we initialize Reanimated in regular iOS apps: https://github.com/software-mansion/react-native-reanimated/blob/e5d2361bd914a4ed2d1b30a21a58e9df904ae6bb/ios/native/UIResponder%2BReanimated.mm#L20-L29
Currently, I found a workaround for me - I've different root components (with Reanimated for main app and without for extension) which I'm calling over Lazy API. Do you think it will be enough to call mentioned method in extension?
Yeah it may work as long as they are two separate instances of React Native with separate bridge, UIManager etc.
Thanks a lot! Will try it and keep the comment here if it will help.
Description
Hello! I make a password manager app and I need to use Password Autofill Extension on iOS.
Extension works well with their native view, but when I tried to run RN app inside extension controller, it stops works. I've discovered that a problem appears when my component's tree contains any <Animated.*** /> components from react-native-reanimated package. To prove it - I did a simple realization of my extension inside package's Example app. The code with my implementation you can find here.
The next GIFs show how it should work:
Thanks for any help!
Steps to reproduce
Setup app
Reproduce bug
Metro logs from Example apps
Metro logs from my app
Snack or a link to a repository
https://github.com/Baskerville42/react-native-reanimated
Reanimated version
2.7.0
React Native version
0.68.1
Platforms
iOS
JavaScript runtime
JSC
Workflow
React Native (without Expo)
Architecture
Paper (Old Architecture)
Build type
Debug mode
Device
iOS simulator
Device model
iPhone 14 Simulator
Acknowledgements
Yes