ReactNative-按按钮“NativeAnimatedModule.startOperationBatchisnotafunction”
我正在尝试使用 Expo 创建我的第一个 React Native 应用程序,并且我正在尝试通过单击按钮来 console.log 一个随机文本。
当按下按钮时,我收到两个错误(这是通过 Android Studio):
1 - NativeAnimatedModule.startOperationBatch is not a function
2 - There was a problem sending log messages to your development environment TypeError: stackString.split is not a function.
有时我有时也会收到此错误
Animated node tag 3 does not exist
下面是我试图执行的简单代码
<View>
<TouchableOpacity
onPress={() => console.log('test')}
>
<Text>Log In</Text>
</TouchableOpacity>
</View>
我在网上看了一下,我真的没有看到关于这两个错误的任何信息。这是我设置代码的方式吗?我可能缺少包裹吗?
我暂时安装了这些 react-native 包
"react-native": "^0.64.0",
"react-native-gesture-handler": "^1.10.3",
"react-native-reanimated": "^2.0.0",
提前致谢
THE END
二维码