react-native-reanimated icon indicating copy to clipboard operation
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

Open exotexot opened this issue 2 years ago • 11 comments

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

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

  1. make new app with react-native-windows
  2. install react-native-reanimated
  3. 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

exotexot avatar Apr 24 '23 21:04 exotexot

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?

github-actions[bot] avatar Apr 24 '23 21:04 github-actions[bot]

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

exotexot avatar Apr 24 '23 21:04 exotexot

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.

tomekzaw avatar Apr 25 '23 08:04 tomekzaw

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 avatar Apr 25 '23 08:04 exotexot

@exotexot Nope, Reanimated v1 also didn't support react-native-windows.

edit: looks like it works but it was never officially supported

tomekzaw avatar Apr 25 '23 10:04 tomekzaw

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.

exotexot avatar Apr 25 '23 10:04 exotexot

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

exotexot avatar Apr 28 '23 15:04 exotexot

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.

HunainHumail avatar May 03 '23 11:05 HunainHumail

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

Victor0814gui avatar Sep 06 '23 19:09 Victor0814gui

cc for knowledge @jonthysell @stmoy

kelset avatar Sep 08 '23 07:09 kelset

This runs fine in Debug, I don't understand why it suddenly throws an error in Release? Can I just ignore the error somehow?

WilliamWelsh avatar Oct 17 '23 21:10 WilliamWelsh