BabylonReactNativeSample does not show on Android Emulator

I did see the bundle message on the emulator. And the console states that is running:
LOG Running “BabylonReactNativeSample” with {“rootTag”:1}

But how do I actually see the app? When using Android Studio, I can see the apps on the emulator, and I have three installed. So I know the emulators work within the IDE.

BUILD SUCCESSFUL in 8s
73 actionable tasks: 2 executed, 71 up-to-date
info Connecting to the development server…
8081
info Starting the app on “emulator-5554”…
Starting: Intent { cmp=com.babylonreactnativesample/.MainActivity }

It starts to run then exits:

i experience multiple issues on borh iOS and Android sinulator when testing my app. Things get even worse when you are doing some voodoo magic with WeGL. The solution is to use a physical device for testing. Connect it via a data csble to your computer and you are good to go.

Thank you for letting me know. Normally, I develop with a physical device so little can hide. Sadly, I cannot find my USB 3 cable I use for debugging. I have one that is slightly short, does not quite reach my Android TV (have NVIDIA Shield too) but a cable short. From desktop to shield to TV. And misplaced cables for my Android Phone and/or tablet. Anxious to give this a try.

On a different question - does BabylonJS use the Havoc physics engine completely? I hope so.

1 Like

Life sucks bro :joy::see_no_evil_monkey:

I might be too excited. But I do like the fact that Havoc Physics engine is used in BabylonJS. I did get the demo working on my Google tablet. The geometry flipping over and falling back in. Now test on my Android TV.

And getting React Native working came down to two terminals:

    Terminal 1:
        npm uninstall -g react-native-cli @react-native-community/cli
        npx @react-native-community/cli@latest init <ProjectName>
        cd <ProjectName>
        npm start

    Terminal 2:
        cd <ProjectName>
        npm run android
        code .

A few links:

React Native Tools

VSCode React Native Tools

1 Like

So, were you able to sort it out?

1 Like

Sort it out. . . not sure, new to these tools. We’ll see later as my tests progress. . .

Please mark an answer as the solution and create a new topic when you need help. Thanks!

1 Like