react native expo building javascript bundle multiple times and fail - react-native

I'm currently developing react native app and kinda new to it. Sometimes when I open my app in expo(usually using my iPhone device to debug app) it building javascript bundle multiple times very rapidly and it's unavailable to open app in my phone while the expo bundler is keep building javascript.
Indeed I need to force server to stop and restart, sometimes it works but not always.
It's not a big issue since I restart the app It's okay but why is this happening?
this is my screenshot of building javascript in expo. green one is from terminal and white one is from expo...

Related

React Native: Bundle server build and client code build together to creare an IOS app

Context - I have the build folder of the server-side code as well in my react native frontend project. Due to the business side requirements, the server-side code should spin up locally as soon as the react-native ios app is launched.
Problem Statement - I have the builds of the client-side code as well as server-side code. I want to pack both the build together and deliver an ios app such that as soon as the ios app is launched it launches the server-side code as well locally. I was looking into metro but couldn't figure out how to exactly achieve this.

Expo Stopped ( expo client app is not working )

I had been working with react native for few days and I used to run my app in my own android phone through LAN. But recently the expo client app is not supporting. When I open it it shows all the recent project as well as working project. when I click on working once it shows all the normal stuffs like Dowloading javascript bundles and in metro bundler also it shows Building JavaScript bundle: finished in 5380ms. No problem there. But when it finishes a pop up came and show Expo stopped
like this :
I cleared the cashe and atlast reinstalled expo client app in android device and expo-cli in my system. Still the problem persisting. How to resolve it... :(

Is Expo able to build a production-ready iOS app without needing a Mac?

I'm about to start developing a React Native app. However, for iOS, my company is unable to provide me a physical Mac device for building/publishing the app.
So I'm planning to use Expo. But can Expo replace a physical Mac for building the app (I mean, getting the app ready for the App Store) ? Or is Expo only used to test the app on an iPhone (by flashing the QR code) ? I'm a bit confused.
Short answer: Yes, with a curve.
Long answer:
Before your app is released, react native needs to transpile your javascript to exo-native code (not sure of the real term for that). And this process may not run unless you 'eject' your code. This produces the android and ios folders that would be almost production ready except that you now have to build to generate apk in the case of Android or app in the case of iOS.
Now if you have added third party plugins, that have native codes, that expo does not already have a unimodule for, these won't work in expo because they need to really be compiled into native codes before being bundled into your app.
Edit:
Expos has evolved during these years and the former short answer I gave as No, no longer is as valid. You can now build without a Mac; expo does that for you.

Is it possible to compile a react-native app for android with an offline pc

Upon trying my first react-native android app with a win 10 pc, after entering the command react-native run-android, the compiler downloads a lot of files gradle-**-all and some *.pom files before finally deploying the app. i'm in a country with expensive data bundles so i want to ask:
Does this happen for every project, or every compile ?
If yes, are there workarounds ?
Because i need to be able to develop apps while offline.

React native fails to start watch mode or gets stuck while Building JavaScript bundle

I have been working with React native for a few days now. Everything seemed to be working fine until I installed Nativebase. Now either I would get this error:
OR it would get stuck at around 97% while Building JavaScript bundle after a couple of Project restarts and clearing cache. This happens regardless of whether I'm running on my phone or the emulator. I'm using the Expo XDE but its the same with the cmd.