react-native-reanimated
react-native-reanimated copied to clipboard
[react-native-windows ]unable to get property installcorefunctions of undefined or null reference / Couldn't determine the version of the native part of Reanimated
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

info Fetching system and libraries information...
System:
OS: Windows 10 10.0.22000
CPU: (8) x64 Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
Memory: 8.49 GB / 15.97 GB
Binaries:
Node: 18.15.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.19 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 9.5.0 - C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK:
AllowDevelopmentWithoutDevLicense: Enabled
AllowAllTrustedApps: Enabled
Versions: 10.0.18362.0, 10.0.19041.0, 10.0.22000.0, 10.0.22621.0
IDEs:
Android Studio: Not Found
Visual Studio: 17.5.33516.290 (Visual Studio Community 2022)
Languages:
Java: Not Found
npmPackages:
@react-native-community/cli: Not Found
react: 18.2.0 => 18.2.0
react-native: 0.71.4 => 0.71.4
react-native-windows: 0.71.6 => 0.71.6
npmGlobalPackages:
*react-native*: Not Found
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
- make new app with react-native-windows
- install react-native-reanimated
- see the crash...
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
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?