Open exotexot opened 1 year ago
Hey! 👋
The issue doesn't seem to contain a minimal reproduction.
Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?
I assume, that the issue may be related to this one: https://github.com/react-navigation/react-navigation/issues/11229
Does react-native-reanimated gracefully handles being deployed on react-native-windows / react-native-macos? I know that pervious versions of Reanimated were working on Windows (or at least was deployable), but it probably broke along the way....
Hey @exotexot, thanks for reporting this issue! Unfortunately, currently neither Reanimated v2 nor v3 support react-native-windows, hence the error that the native part is uninitialized.
Hi @tomekzaw alright I see. But I am correct that v1 was working? reanimated is crucial for react-native-windows as react-navigation depends on it. In its dependency list it just requires Reanimated > 1.0.0. As I am using the old paper architecture, I think this should work - correct?
@exotexot Nope, Reanimated v1 also didn't support react-native-windows.
edit: looks like it works but it was never officially supported
But I had a cross-platform app running, including windows, using react-navigation. The drawer navigation depends on react-navigation. I only install Reanimated, as it is a dependency of drawer navigation. I don't need explicit Reanimated funcinatlity besides satisfying react drawer needs.
The drawer navigation WAS working for me using react-native-windows. So I wonder why launching the app fails now.
I'm doubling down on this. Using react-native-reanimatted 1.x I am able to build my application using the latest react-native and react-native-windows version. Upgrading to any later reanimated version does prevent that
Same issue in macos as well. I am unable to use version 1 because I am using a lot of libraries which are using reanimated version 3. But unfortunately version 3 is crashing. Please add the support for this as it was working with version 1.
"The React Native Gallery uses Reanimated 1x in production, but Xbox for PC uses another library for navigation, perhaps something native. However, in the list of third-party packages, there's the 'react-router-native' library, which is a React Native version of the 'react-router' library, and it works quite well."
cc for knowledge @jonthysell @stmoy
This runs fine in Debug, I don't understand why it suddenly throws an error in Release? Can I just ignore the error somehow?
Description
On react-native-windows I suspect react-native-reanimated to crash.
Whereas on Android and iOS everything runs allright, rn-reanimated crashes on Windows with "unable to get property installcorefunctions of undefined or null reference"
also i get this error in the same crash:
[Reanimated] Couldn't determine the version of the native part of Reanimated. Did you forget to re-build the app after upgrading react-native-reanimated? If you use Expo Go, you must use the exact version which is bundled into Expo SDK.
installCoreFunctions
I'm not using Expo. I followed the instructions here: https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/installation/
Can anybody help me out?
Steps to reproduce
Snack or a link to a repository
coming up soon
Reanimated version
2.17.0
React Native version
0.71.4
Platforms
Windows
JavaScript runtime
None
Workflow
React Native (without Expo)
Architecture
Paper (Old Architecture)
Build type
Debug mode
Device
Real device
Device model
WINDOWS PC
Acknowledgements
Yes