【发布时间】:2022-08-03 19:06:00
【问题描述】:
我将文件夹结构更改为这样的
现在我收到这些错误
Error: Requiring module \"node_modules/react-native-reanimated/src/Animated.js\", which threw an exception: Error: Reanimated 2 failed to create a worklet, maybe you forgot to add Reanimated\'s babel plugin?
and
Invariant Violation: \"main\" has not been registered. This can happen if:
* Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
* A module failed to load due to an error and `AppRegistry.registerComponent` wasn\'t called.
我更改了 package.json main 和 app.json 入口点
\"main\": \"./src/App.tsx\",
仍然收到错误。
标签: react-native expo