Mark Petrosyan
Mark Petrosyan

Reputation: 1

I'm getting two errors on start react native project

error 1

"Could not get BatchedBridge, make sure your bundle is packaged properly"

error 2

after error 1 press Reload(R,R)

error 2

Upvotes: 0

Views: 140

Answers (1)

Eran
Eran

Reputation: 133

Try running these inside project directory for the BundleBridge issue:

  1. react-native start > /dev/null 2>&1 &

  2. mkdir android/app/src/main/assets

  3. curl "http://localhost:8081/index.android.bundle?platform=android" -o "android/app/src/main/assets/index.android.bundle"

For error 2, try

adb reverse tcp:8081 tcp:8081

After the react-native run-android command has completed, then retry R+R

Upvotes: 1

Related Questions