Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app crashed on device after (expo) eas build -p but run at expo start #167

Open
tianlang2013 opened this issue Nov 7, 2022 · 2 comments

Comments

@tianlang2013
Copy link

package.json
{
"name": "my-app",
"version": "1.0.0",
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"test": "jest --watchAll"
},
"jest": {
"preset": "jest-expo"
},
"dependencies": {
"@expo/vector-icons": "^13.0.0",
"@react-navigation/bottom-tabs": "^6.0.5",
"@react-navigation/native": "^6.0.2",
"@react-navigation/native-stack": "^6.1.0",
"deprecated-react-native-prop-types": "^2.3.0",
"expo": "~46.0.16",
"expo-asset": "~8.6.1",
"expo-clipboard": "~3.1.0",
"expo-constants": "~13.2.4",
"expo-font": "~10.2.1",
"expo-image-picker": "~13.3.1",
"expo-linking": "~3.2.2",
"expo-splash-screen": "~0.16.2",
"expo-status-bar": "~1.4.0",
"expo-svg-uri": "^1.3.1",
"expo-system-ui": "~1.3.0",
"expo-web-browser": "~11.0.0",
"react": "18.0.0",
"react-dom": "18.0.0",
"react-native": "0.69.6",
"react-native-qrcode-svg": "^6.1.2",
"react-native-safe-area-context": "4.3.1",
"react-native-screens": "~3.15.0",
"react-native-web": "~0.18.7",
"rn-overlay": "^0.4.0"
},
"devDependencies": {
"@babel/core": "^7.12.9",
"@types/react": "~18.0.14",
"@types/react-native": "~0.69.1",
"jest": "^26.6.3",
"jest-expo": "~44.0.1",
"react-test-renderer": "18.0.0",
"typescript": "~4.3.5"
},
"private": true
}

app.config.json
{
"name": "测试 Config",
"plugins": [
[
"expo-image-picker",
{
"photosPermission": "The app accesses your photos to let you share them with your friends.",
"READ_EXTERNAL_STORAGE" :"Allows an application to read from external storage.",
"WRITE_EXTERNAL_STORAGE":"Allows an application to write to external storage."
}

]

],
"expo": {
"slug": "my-app",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/images/icon.png",
"scheme": "myapp",
"userInterfaceStyle": "automatic",
"splash": {
"image": "./assets/images/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/images/adaptive-icon.png",
"backgroundColor": "#ffffff"
},
"package": "com.qinglong.myapp"
},
"web": {
"favicon": "./assets/images/favicon.png"
},
"extra": {
"eas": {
"projectId": "43d7a159-3ac7-4a9a-8b8b-0d40f7a043db"
}
}
}
}

the lastest version eas on expo ( 46 sdk) is didn`t support react-native-qrcode-svg
crashed when i run the apk in my android device always
nothing alert

somebody hd solved?

@ceeesrt
Copy link

ceeesrt commented Nov 11, 2022

Any news? I have the same problem.

@nonymousoctopus
Copy link

Not sure if this is the same issue as I used 47 sdk. My app worked fine in preview via expo go, but crashed in the release build. I realised it wasn't able to call the svgPath or Rect after publishing a debug apk via android studio.

I solved it by running:

npx expo install react-native-svg

and importing into my code:

import * as Svg from 'react-native-svg';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants