英文:
Expo/React native application crash on physical device trough APK installation
问题
抱歉,由于您的请求,我将只翻译代码和相关部分,如下所示:
I'm currently building a React Native application with Expo. When running the application with the local server and the Expo Go application I dont have any issue. App run well on IOS and Android devices.
Now I'm trying to build an APK of the application for test purposes inside my team. To build it I followed [this documentation to use eas](https://docs.expo.dev/build-reference/apk/).
Now the apk install on the Android device but if I click on any button (they all trigger a `navigate` action onPress) the app crash instantly. I was using `TouchableOpacity` and I changed everyone of them to `Pressable` so the probleme does not come from the button. I'm wondering if it could come from the navigation system ?
Here is the dependencies of my project :
谢谢 🙏
英文:
<br />
I'm currently building a React Native application with Expo. When running the application with the local server and the Expo Go application I dont have any issue. App run well on IOS and Android devices. <br />
Now I'm trying to build an APK of the application for test purposes inside my team. To build it I followed this documentation to use eas. <br />
Now the apk install on the Android device but if I click on any button (they all trigger a navigate
action onPress) the app crash instantly. I was using TouchableOpacity
and I changed everyone of them to Pressable
so the probleme does not come from the button. I'm wondering if i could come from the navigation system ? <br/>
Here is the dependencies of my project :
"dependencies": {
"@react-native-async-storage/async-storage": "^1.17.11",
"@react-navigation/native": "^6.1.1",
"@react-navigation/native-stack": "^6.9.6",
"@reduxjs/toolkit": "^1.9.1",
"@rneui/base": "^4.0.0-rc.7",
"@rneui/themed": "^4.0.0-rc.7",
"expo": "~47.0.13",
"expo-camera": "~13.1.0",
"expo-file-system": "~15.1.1",
"expo-location": "~15.0.1",
"expo-mail-composer": "~12.0.0",
"expo-media-library": "~15.0.0",
"expo-status-bar": "~1.4.2",
"jszip": "^3.10.1",
"react": "18.1.0",
"react-native": "0.70.5",
"react-native-safe-area-context": "4.4.1",
"react-native-screens": "~3.18.0",
"react-native-uuid": "^2.0.1",
"react-navigation": "^4.4.4",
"react-navigation-stack": "^2.10.4",
"react-redux": "^8.0.5",
"redux": "^4.2.0",
"redux-persist": "^6.0.0"
}
Thank you 🙏
答案1
得分: 1
终于在这里找到了答案 here <br/>
我忘记在我的应用程序根目录下添加一个 GestureHandlerRootView
😅。
英文:
Finally found the answer here <br/>
I forgot a GestureHandlerRootView
at the root of my application 😅.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论