Skip to content

[Android 8.0] React Native not loading JS bundle #16126

@kulmajaba

Description

@kulmajaba

Is this a bug report?

yes

Have you read the Contributing Guidelines?

yes

Environment

Environment:
OS: Windows 8.1
Node: 6.11.3
Yarn: 1.0.2
npm: 5.4.2
Watchman: Not Found
Android Studio: 2.3 AI-162.4069837

Packages: (wanted => installed)
react-native: 0.48.4 => 0.48.4
react: 16.0.0-alpha.12 => 16.0.0-alpha.12

Target Platform: Android Oreo (8.0)

Packager is running on port 8088

Steps to Reproduce

  1. Initialize a new RN project with react-native init
  2. Go to the project folder, start the development server and run react-native run-android

Expected Behavior

The app should install and load the JS bundle, displaying the welcome text.

Actual Behavior

The app installs correctly and starts, but doesn't load the JS bundle. Instead I get a white screen.

The packager is running on port 8088 so that gives an error on the first load. After running adb reverse I get the white screen. The packager does create a bundle.

Also tried with React Native 0.49.0-rc.6 and React 16.0.0-beta.5, same result. tested on Android emulator and Nexus 5X.

Logs from react-natice log-android (note: the last 2 lines are after running adb reverse tcp:8081 tcp:8088):

09-28 13:23:45.557 26358 26358 D ReactNative: ReactInstanceManager.ctor()
09-28 13:23:45.783 26358 26358 D ReactNative: ReactInstanceManager.createReactContextInBackground()
09-28 13:23:45.784 26358 26358 D ReactNative: ReactInstanceManager.recreateReactContextInBackgroundInner()
09-28 13:23:45.851 26358 26358 D ReactNative: ReactInstanceManager.recreateReactContextInBackgroundFromBundleLoader()
09-28 13:23:45.851 26358 26358 D ReactNative: ReactInstanceManager.recreateReactContextInBackground()
09-28 13:23:45.852 26358 26358 D ReactNative: ReactInstanceManager.runCreateReactContextOnNewThread()
09-28 13:23:45.887 26358 26417 D ReactNative: ReactInstanceManager.createReactContext()
09-28 13:23:46.138 26358 26417 D ReactNative: Initializing React Xplat Bridge.
09-28 13:23:46.140 26358 26417 D ReactNative: Initializing React Xplat Bridge before initializeBridge
09-28 13:23:46.161 26358 26417 D ReactNative: Initializing React Xplat Bridge after initializeBridge
09-28 13:23:46.161 26358 26417 D ReactNative: CatalystInstanceImpl.runJSBundle()
09-28 13:24:10.108 26358 26358 D ReactNative: ReactInstanceManager.onJSBundleLoadedFromServer()
09-28 13:24:10.114 26358 26358 D ReactNative: ReactInstanceManager.recreateReactContextInBackground()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions