我尝试使用RCTRootView从我的原生(Swift代码)UIViewController显示react原生屏幕。我一直得到这个不匹配的错误,我认为这与博览会有关,我已经尝试以各种方式重新注册组件,以及设置jsCodeLocation直接到本地主机没有用错误消息。
Index.js.
js
ViewController
ie3xauqp1#
npx expo install react-native-reanimated然后在bable.config.js中粘贴插件:['react-native-reanimated/plugin'],https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/installation/
1条答案
按热度按时间ie3xauqp1#
npx expo install react-native-reanimated
然后在bable.config.js中粘贴插件:['react-native-reanimated/plugin'],
https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/installation/