【发布时间】:2021-12-08 00:38:10
【问题描述】:
我使用'worklet'; 和runOnUI() 然后得到下面的错误。
因为我用'worklet';所以加了import 'react-native-reanimated'
因为我也用runOnUI所以加了import {runOnUI} from 'react-native-animated'
错误:
ERROR TypeError: global.__reanimatedWorkletInit is not a function. (In 'global.__reanimatedWorkletInit(_f)', 'global.__reanimatedWorkletInit' is undefined)
ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.
This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.
ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.
This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.
【问题讨论】:
标签: react-native react-native-reanimated-v2