【问题标题】:React-native: TurboModuleRegistry.getEnforcing(...): 'NativeReanimated' could not be foundReact-native: TurboModuleRegistry.getEnforcing(...): 'NativeReanimated' 找不到
【发布时间】:2021-05-22 10:16:22
【问题描述】:
此question 已被询问,但那里没有回复。我再次询问,因为我希望最近有人可能会遇到这个问题。
我已经安装了react-native-reanimated 2,当我运行应用程序时出现以下错误
不变违规:TurboModuleRegistry.getEnforcing(...): 'NativeReanimated' 找不到。验证该名称的模块是否已在本机二进制中注册。,js引擎:hermes
谁能帮我摆脱这个错误?
【问题讨论】:
标签:
react-native
react-native-reanimated-v2
【解决方案1】:
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.