What happens with my app if one day Expo is unavailable - javascript

I am building an app in react native detached and I was wondering what would happen if one day Expo is no longer available or get shut down so then my app is not able to run bc it relies on expo.
Is it possible that I have my own javascript bundle locally or running on my server so I don't have to rely on expo at all. If so what changes are needed so my .apk file is not relying on expo but rather on my own bundle.js

The eject command doesn't depend on expo, so if one day expo stops working, you can detach your project from theirs and start building your own apk.

Related

Published Expo app can't make network calls

I am trying to publish an update to my app after upgrading the SDK from 27 to 32. The app works fine when I do expo start and run it on the emulator. But, when I do expo publish the finished app can't make network calls. Then, I realized you couldn't do expo publish if you update SDK (it still push the update somehow though), so I built the APK for Android. Thing is, the APK file nor the expo publish update work. It can't make network calls to pull user info for instance, but it works just fine with expo start.
Any ideas on what this could be or how can I troubleshoot it? I went back to the commit with SDK 27, built it and still, the app can't make network calls. It is also the first time I build this app from this computer.
Did you check if you are using the __DEV__ constant somewhere?
Both the APK and the APK in the market are now on __DEV__ == false.
Are you sure that the app is not making calls?
Are you sure that they don't reach the server?
Are you sure that is not the server that is rejecting?
Did you try to make the calls outside of the app using a program like Postman?

why my app automatic disconnect with expo CLI?

i am using react native expo but I am facing issue in starting the app , when the app start and the expo stopped working after it builds complete and I have to again restart the complete package and then it work again only for 1 minutes or less time , also I have upgraded my node JS chrome 8. to 10 I think the issue is from Node.js side
Try deleting and re-installing expo. Something similar was happening to me and it fixed the issue.

How to fix app crashing on IOS devices react-native

I am building for first time an React - Native Application . Until now we have tested the application on the several Android devices and no problem has been detected . But when the application is runned on Ios devices it crashesh almost instantly . So my question is am i doing something wrong ? I followed up the documentetion from the react-native web page and i have done the right installs , but still the problem occurs . Also when i try to build up an Android or IOS simultaor with the command :
react-native run-android
react-native run-ios
It throws me an error :
Android project not found. Maybe run react-native android first?
Or for Ios :
iOS project folder not found. Are you sure this is a React Native project?
Error: iOS project folder not found. Are you sure this is a React Native project?
My folder looks like this :
Am i missing something that should be installed ? Can you givev me some hints ? Thank you !
PandaMastr, the example image indicates that this an expo react native application, to run it you will need to go the root folder and run npm start which will launch the application. In order to use the react-native run commands you would need to eject the application ( always make a backup so you can revert if need be ); which would then create the android and iOS folder and install the react-native run aspects you are attempting to use.

React Native Expo Building Javascript Bundle stuck at 99

I'm running my react-native app using expo on my mobile.
However, when I start the packager and connect to expo app on my mobile, it's stuck at 99% for building javascript bundle process.
There has been no code change to cause this.
I have tried re-installing my node modules and restarting my packager after cleaning cache.
What is causing this issue?
Would you mind sharing a screenshot? Did you try pressing i to start the iOS simulator (if you're using iOS) Personally, I use the Expo XDE to start my expo projects. As a last resort, you can always clone your project and start from there
I had a similar problem. Turned out that i had to press enter in my console screen so it continued exporting to the expo app
It works for me.
adb kill-server
adb start-server

Can anyone help me to detach expo app

I have little bit queries about detach expo app :
Am done app requirement but i have one thing that support only react native.
So i read about detach expo app and i think its mean if you done your coding in expo app and after detach you got android or ios folder and then copy these two folder and paste into react native project and then run command npm install.
But in above query i have one question in my mind .
Is expo coding that i done is available and its working as expo app in react native app or not ?
And now am continue coding after detach expo app in react native like add native module in react native app.
Detach or in actual terms, ejecting of your expo, in a React-Native project is a one way function. You cannot go back to the original setup once you eject.
After you eject, you get vanilla react native structure, which means separate folders for iOS and Android. This also means you lose access to expo API's you previously used. You can code or keep working on your project the same way as you were working before ejecting the app. Only your expo API's will change(if you have made use of them). Rest of your work flow will remain the same.

Categories

Resources