Error with "BatchedBridge" while running expo start command - android

I'm trying to run my React-native app with the command expo start from my terminal and when I'm trying to access my app from my Android phone, here's the error I get :
Could not get BatchedBridge make sure your bundle is packaged correctly
It seems the error appears from time to time (I saw some topics over there) but none of the solutions worked for me.
Here the versions of expo and react :
"expo": "~46.0.7",
"react": "^18.0.0",
"react-native": "^0.69.6",
A lot of answers concerned the upgrade of react-native package but I can't do that because of my expo version.
Does someone ever faced a similar problem using expo and react-native ?
Thanks :)
From my MacOS terminal, I tried :
expo start
Then, from my Android mobile, I scanned the QR code which launched the app.
The splash screen appeared for a second and the error message appeared.

Related

Android Bundling failed error In my react native App

Why Expo go app not working. But in my browser it works.
Again I create with "npm init" and again did same process .This time no errors .I used Expo App from started instead of Web as a emulator. The reason for this problem is in web Emulator not showing some errors
related to the real emulators.

IOS and Android simulator cannot load expo project or Metro bundler in browser

I am new to React development and I have been trying to run my application locally. Any advice for the following problems is greatly appreciated! I have been trying to fix this for weeks with no success.
Version context:
Versions of node, yarn, npm, and expo that I am using
When I run yarn IOS or expo start IOS/android, Metro Bundler does not open in browser. While there are critical dependency issues with expo-cli, the simulators themselves open correctly.
Metro bundler starts and does not open in browser
Opening the web simulation works perfectly fine; however, the IOS and Android simulators do not open. Here are the following errors.
justifyContent error
Main not registered error
All was resolved. I was unable to find justifyContent error in the past but I used VS Code to find it in one of my src files.

expo-payments-stripe doesn't work on real android device

I try to use https://docs.expo.io/versions/v40.0.0/sdk/payments/ in my project. It is stated that "Stripe is supported in the managed workflow for Android" however it crashes for me on a real device. It works perfectly on the emulator and on the device with Expo Go but it doesn't work as a standalone installed apk created by "expo build:android -t apk". I have uploaded my reproducer here https://bitbucket.org/zahoranszky/stripe/src/master/ If you run it crashes all the time. It is the setOptionsAsync method. I found many complaints about it on the net but none of the suggested solutions worked for me.
Any idea how to fix this issue?
Thx
Stripe will work on Expo go out of the box, but to build standalone app ios/android you must use EAS build to compile native code.
CHeck https://docs.expo.dev/versions/latest/sdk/stripe/#standalone-apps

Could not run react-native app android. Getting syntax error in the metro bundler which are related to react-native-wheel-picker

I have been trying to run a react native app on my windows laptop. Whenever I use npx react-native run-android I am getting some syntax error as shown below which suggests some error in react-native-wheel-picker package. I tried to debug my going through the library documentation, but everything looks fine. Can anyone help me through this?
I did some digging into it a bit and compared the old code which is working and new setup which I am trying to do with npm install and I compared the package-lock.json files of both. It is the culprit.
In the old one there are some inter dependencies of prop-types which are not properly installed with new setup using npm install. So, I copied the old package-lock.json and did the package installation and it worked like a charm :)

ionic android build succeeded but app stopped working

When I am trying to run app on android device using ionic run android, it is showing the build and launch as successful.
On device, it is showing
app_name stopped working
I searched a lot and tried installing plugins again, not working. I'm not using ionic-keyboard plugin. Any help would be appreciated.
UPDATE: When I'm using ionic serve --lab, it is showing perfectly on browser with some of the plugins not working because browser doesn't support all the cordova plugins. That's fine.
ionic platform add android shows at the end
saving platform to package.json file
believe something to do with ionic-keyboard. can you try installing keyboard plugin once and checking the app if it works or not. Thus we will have some RCA.
Can't run Ionic on Android: class not found exception IonicKeyboard

Categories

Resources