java.lang.AssertionError: createReactContextInBackground should only be called when creating the react application for the first time. When reloading JS, e.g. from a new file, explicitlyuse recreateReactContextInBackground

GitHub | MattDavies | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Crash after RN31 update then starting app from background

    GitHub | 7 months ago | MattDavies
    java.lang.AssertionError: createReactContextInBackground should only be called when creating the react application for the first time. When reloading JS, e.g. from a new file, explicitlyuse recreateReactContextInBackground
  2. 0

    GitHub comment 280#273475330

    GitHub | 2 months ago | SudoPlz
    java.lang.AssertionError: createReactContextInBackground should only be called when creating the react application for the first time. When reloading JS, e.g. from a new file, explicitlyuse recreateReactContextInBackground
  3. 0

    Crash in LayoutEngine.java

    GitHub | 7 months ago | anuragdadheech
    java.lang.AssertionError: availableHeight is indefinite so heightMeasureMode must be CSSMeasureMode.UNDEFINED
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 87#146592418

    GitHub | 1 year ago | JorisM
    java.lang.AssertionError: Module RCTNetworking was already registered!
  6. 0

    Android React Native Module already registered

    Stack Overflow | 1 year ago | Leena
    java.lang.AssertionError: Module ToastAndroid was already registered!

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.AssertionError

      createReactContextInBackground should only be called when creating the react application for the first time. When reloading JS, e.g. from a new file, explicitlyuse recreateReactContextInBackground

      at com.facebook.infer.annotation.Assertions.assertCondition()
    2. com.facebook.infer
      Assertions.assertCondition
      1. com.facebook.infer.annotation.Assertions.assertCondition(Assertions.java:65)
      1 frame
    3. com.facebook.react
      XReactInstanceManagerImpl.createReactContextInBackground
      1. com.facebook.react.XReactInstanceManagerImpl.createReactContextInBackground(XReactInstanceManagerImpl.java:348)
      1 frame
    4. com.reactnativenavigation.react
      NavigationReactGateway.startReactContextOnceInBackgroundAndExecuteJS
      1. com.reactnativenavigation.react.NavigationReactGateway.startReactContextOnceInBackgroundAndExecuteJS(NavigationReactGateway.java:33)
      1 frame
    5. com.reactnativenavigation
      NavigationApplication.startReactContext
      1. com.reactnativenavigation.NavigationApplication.startReactContext(NavigationApplication.java:35)
      1 frame
    6. com.reactnativenavigation.controllers
      SplashActivity.onCreate
      1. com.reactnativenavigation.controllers.SplashActivity.onCreate(SplashActivity.java:18)
      1 frame