I create app with react native expo. Then create an apk file and install it on my phone (Android platform). Then run the command npx expo start --dev-client, a QR code appears, and this apk file opens on the phone. When I change the code, nothing changes in the phone. There are functions that work well in expo go, but do not work in apk, so I need to check this. When I press the r button in the terminal, I get - No apps connected. Sending "reload" to all React Native apps failed. Make sure your app is running in the simulator or on a phone connected via USB. I read the documents and watched the video on how to use eas build.
eas.json
`{
"cli": {
"version": ">= 7.4.0"
},
"build": {
"preview": {
"android": {
"buildType": "apk"
}
},
"preview2": {
"android": {
"gradleCommand": ":app:assembleDebug"
}
},
"preview3": {
"developmentClient": true
},
"preview4": {
"distribution": "internal"
},
"production": {}
}
}`
Everything works well in Switching to --go mode
Steps
- eas login
- eas build:configure
- eas build -p android --profile preview
- npx expo start --dev-client