React-native: TurboModuleRegistry.getEnforcing(...): 'NativeReanimated' 找不到

问题描述

question 已被询问,但没有回应。我再次询问,因为我希望有人最近可能会遇到这个问题。

我已经安装了 react-native-reanimated 2,一旦我运行该应用程序,就会出现以下错误

不变违规:TurboModuleRegistry.getEnforcing(...):找不到“NativeReanimated”。验证本机二进制中是否注册了此名称的模块,js 引擎:hermes

有人能帮我摆脱这个错误吗?

解决方法

Error Solved 

**Error - TurboModuleRegistry.getEnforcing(...): 'NativeReanimated'**
Hello,I got this[TurboModuleRegistry.getEnforcing(...): 'NativeReanimated'] error and i found the solution 
Step 1 - Download react native project from github  "https://github.com/software-mansion-labs/reanimated-2-playground".
Step 2- Then run command 
=> npm install
=> react-native start
=> react-native run-android
and build app 
Step 3- when its work move your required project files and install your required npm pakages.
Step 4 - Then run commands
=> npm cache clean --force
=> cd android
=> gradlew clean
=> gradle cleanBuildCache
=> gradlew build --refresh-dependencies
=> cd..
=> npx react-native start --reset-cache
=> npx react-native run-android
its work for me try once.

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...