问题描述
此 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.