应用停留在触摸屏上时,响应本机[Android]

时间:2018-10-23 00:25:41

标签: android react-native touchableopacity

本机应用程序会在任何触摸事件时挂起。按钮(TouchableOpacity / View)在onPress cb函数内部只有一个控制台日志。

此问题仅在android上出现,但ios可以正常工作。添加redux-presist之后出现此问题。尽管我不确定这是否相关,但是为了确定起见,我删除了此依赖项。这是quick vid演示的问题。

RN版本:

RN:0.56 RN-Cli:2.0.1

package.json文件中的应用依赖项:

"dependencies": { "@babel/core": "7.0.0-beta.47", "@mapbox/react-native-mapbox-gl": "^6.1.2", "@turf/bbox": "^6.0.1", "@turf/helpers": "^6.1.4", "babel-core": "^6.26.3", "mapbox": "^1.0.0-beta10", "prop-types": "^15.6.2", "react": "16.4.1", "react-native": "0.56.0", "react-native-fbsdk": "^0.7.0", "react-native-navigation": "^2.0.2453", "react-native-timer": "^1.3.4", "react-redux": "^5.0.7", "redux": "^4.0.0", "redux-persist": "^5.10.0", "redux-thunk": "^2.3.0", "url": "^0.11.0" }, "devDependencies": { "babel-jest": "23.4.0", "babel-preset-react-native": "^5", "jest": "23.4.1", "react-test-renderer": "^16.4.1", "redux-devtools": "^3.4.1", "redux-logger": "^3.0.6" }

0 个答案:

没有答案