【发布时间】:2021-01-13 00:00:31
【问题描述】:
这是我的 package.json 文件,我已经安装了所有依赖项,但在 android 中仍然存在问题
{
"name": "Free",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"start": "react-native start",
"test": "jest",
"lint": "eslint ."
},
"dependencies": {
"@react-native-community/masked-view": "^0.1.10",
"@react-navigation/native": "^5.7.4",
"@react-navigation/stack": "^5.9.1",
"react": "16.13.1",
"react-native": "0.63.2",
"react-native-gesture-handler": "^1.8.0",
"react-native-safe-area-context": "^3.1.8",
"react-native-screens": "^2.11.0",
"react-navigation": "^4.4.1"
},
"devDependencies": {
"@babel/core": "7.11.6",
"@babel/runtime": "7.11.2",
"@react-native-community/eslint-config": "1.1.0",**
strong text
**
"babel-jest": "25.5.1",
"eslint": "6.8.0",
"jest": "25.5.4",
"metro-react-native-babel-preset": "0.59.0",
"react-test-renderer": "16.13.1"
},
"jest": {
"preset": "react-native"
}
}
我收到了这个错误..
TypeError: null 不是对象(评估 '_RNGestureHandlerModule.default.Direction')
有什么想法吗?
【问题讨论】:
-
几件事。 1.你应该花一些时间在问题编辑器上。有很多选项可以使您的问题更具可读性。 2. 只是不清楚你想在这里解决什么。
标签: javascript android node.js react-native