It's very slow to fetch the remote js bundle / assets in some country/district (e.g. China) due to unknown reason. It's a good feature if we can upload the js bundle and assets to our local CDN to boot up app loading.
I'm a bit confused, isn't there a way to include the js bundle and assets within the apk/ipa like regular react native or is having a server necessary?
@Wassim Gharbi: not for now, when you detach to Expo SDK you still need to run "ext publish" that will upload the JS to the server (through you will have the local copy of the JS bundled with the app)
@Joseph Che: if the bundle is already available offline wouldn't it be trivial to disable the remote fetching and be independent from expo's servers?
@Wassim Gharbi: that would be awesome, but figured out that its not trivial with existing ExpoSDK implementation and build tool still needs to be revised to get rid of the remote fetching
we're working on this now and it's coming along nicely! no eta yet though
Also it'd be nice to have a backup plan when we need to build and expo is offline for some reason.
Yeah, it's a great idea. A lot of services has been blocked in China, including GCP and AWS.
Any updates on this? Is the expo team positive on the view of self hosting?
Same here in India. sometime even asset images don't load during first app launch.
you can do this now: https://docs.expo.io/versions/latest/distribution/hosting-your-app