Impossible to update expo project inside Expo Go after switching to EAS Build - react-native

I have the need to run a project from Expo Go without being connected to PC. We are developing an app that require GPS and needs to be tested in open field.
Before EAS became the standard to create projects i used
expo build:android
ad this created not only the apk, but uploaded the project to my account and i was able to start it from Expo Go projects section just like the app was installed on phisical device. That worked also fo iOS and was a great testing feature.
After i moved to EAS Build
eas build -p android --profile preview --clear-cache
my project inside Expo Go does not update anymore and its stucked at sdk 44 even if now i'm working (and creating builds) with sdk 46.
I went through the official documentation many times but i don't get how to make the app start from Expo Go (project sction) as i did before. Maybe i'm missing some configuration.
Thank you all for any kind reply.
Have a good day.

EDIT
I found the solution to this problem and now my builds are working and uploading to Expo Go.
Check out this information: https://github.com/expo/fyi/blob/main/eas-build-archive.md
Basically EAS Updates will not bundle anything inside your .gitignore, in my case it needed specific config files. Did a quick test by taking them off the .gitignore and now it's working. Will move to GitHub SECRETS in the future.
Hope that helps.

Related

Generate ejected expo app through eas build

I created an expo app then i needed to add a printing package and i could not find any that was supported by expo(if there is any please just comment below) so i ejected my app and i added the react-native-thermal-printer package and i want to generate my app apk through eas build.Is there any special configurations i have to set for the non expo supported package or do i generete the apk as normal...I have already set up my eas.json.Also do i include the generated android folder while uploading to eas ?
Any help will be appreciated
I had exactly the same question. I wanted to use the EAS build with a non Expo friendly package. According to the documentation, the eas.json should look a little different on bare project, but it does not offer any example. According to the same documentation, there are no additional steps needed for bare projects, it should work with the same configuration as in managed projects.
You can find the official Expo documentation with this not here: Build configuration process: 2 Create eas.json
PS: I did not find time to test it yet, but it is definitely a starting point. I hope it helps!

Expo not publishing

When I try to publish my Expo apps, it seems to have problems with apps that have un-optimized assets. I try to run expo optimize on these but sometimes I can't get this to work so I try publishing anyway, from the browser console, and it never finishes. I tried this earlier today and it got through Optimizing assets... in the publish process, and then go stuck on Building Javascript Bundle. Right now I'm trying again and it appears to be stuck on Optimizing /Users/TuzMacbookPro2017/Development/QMG-local/APPS/ELECTRO/assets/electro-icon-1024.png.
Even with this un-optimized asset I can get through expo build:ios without any apparent problems.
Any solutions?
I had the same problem. Could not publish from the web console.
I am using: Expo SDK 35, expo-cli 3.1.0
I managed to publish the app from the command line at my project root.
first, run:
expo optimize
second run:
expo publish
When the process finishes, the cli will then output an URL that you can visit to check the published app.
Something like this:
https://exp.host/#profileUsername/appName
I hope this helps.

Converting project to react native init

Firstly I created my project with create-react-native-app and I'm developing my app with npm start and I have expo installed on my emulator. How can I convert these project into react native init, I don't want to use expo anymore...I don't neeed any api-es from them...
Thank you
The best resource for this is in the create-react-native-app repository. Try having a look here to get started.
The short answer is to use npm run eject
If you have experience generating signed APKs for Android and code signing with iOS then you shouldn't run into too much trouble.
If you don't, then take the time to go through the Android docs and also this guide should help you get up on running on iOS as well.
Good luck!
Instead of creating your project using the command create-react-native-app, you may create a react native project by following "Building Projects with Native Code" of the getting start guide: https://facebook.github.io/react-native/docs/getting-started.html.
Here you will find out how to:
1. Set up the environment.
2. Installation of phone emulator.
3. Connection of your phone via USB for testing.
4. Create a project using the react-native init command.

using fabric beta testing with react-native expo project

Is there a way I can use Fabric beta testing with react-native expo project ?
I searched all over the internet but didn't find an example of this.
Edit 1: The project has been already created using CRNA command.
PS: I know I can detach from expo then build each project with fabric separately, but detaching process is tedious.
You need to detach your app, once detached you can follow the crashlytics iOS guide with Objective-C, with a difference in the API key step, use the Info.list file inside the Supporting group, just make sure to delete the old Fabric keys already added inside that file.
After that you can use the beta like a normal iOS app, hope this helps you

React Native Expo building standalone app

I use Expo for development. I don't know how to build .apk for Android. I checked out Building Standalone Apps documentation. It says:
This will take a few minutes, you can check up on it by running exp
build:status. When it’s done, you’ll see the url of a .apk (Android)
or .ipa (iOS) file — this is your app.
exp build:android
I tried a few times. It's been a while. No errors, no links. Nothing on the web portal. Am I doing something wrong?
expo has it's integrated system if you are using their building structure.
The building takes a while as stated. (Around 5-10mins) your build process starts with the command;
exp build:android
After a while, check the status of your build with command;
exp build:status
If your build it done, this comman will give you your .apk file url. If not, it will say your build is still in progress and try in a little bit later again.
Expo build take some time (6-15min). You can see build progress log using link
https://expo.io/builds
Web link show all builds of your accounts. You can download old build or see log
or in short you can
exp build:status
Your options are
wait, until your build is completed
Note! If you get the following error:
Cannot start a new build, as there is already an in-progress build.
error Command failed with exit code 1.
then your Expo.io build is stuck. Please go to https://expo.io -> Builds and look for the latest (IOS/Android) build. If it's in "Queued" state (after 17 days as in my case), open the details and click Cancel Build.
Subscribe to the paid Expo.io account so you get priority in build queue.
Install turtle-cli and build the app locally, see https://docs.expo.io/distribution/turtle-cli/
If it normally takes from 15-30minutes for Expo.io to build the app, turtle-cli can do it in 2-3mins.