So, I run the app on debug mode with a usb cable, it works fine. Then, I run the release version with a usb cable, it works fine too UNTIL I disconnect it from the phone and restart the app. The app is not able to load assets anymore. I have tried all the ways referenced here and here, but still no help.
When app cannot load the assets, it logs this message:
[Error: Could not fetch data from url http://localhost:8081/assets/src/assets/modelv2.pb?platform=android&hash=889b05962c1b1b35b1c07a84b98bcc63]
framesToPop: 1,
code: 'EUNSPECIFIED',
line: 17119,
column: 31,
sourceURL: 'http://localhost:8081/index.delta?platform=android&dev=true&minify=false' }
So, it means it is still trying to grab the assets from the local host packager which is dead. Please help me!
React Native: ^0.55.4
React: ^16.3.1
index.js
import { AppRegistry } from 'react-native';
import App from './App';
AppRegistry.registerComponent('TagMosquito', () => App);