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 | 3 months ago
  1. 0

    Crash after RN31 update then starting app from background

    GitHub | 3 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

    Crash in LayoutEngine.java

    GitHub | 4 months ago | anuragdadheech
    java.lang.AssertionError: availableHeight is indefinite so heightMeasureMode must be CSSMeasureMode.UNDEFINED
  3. 0

    GitHub comment 87#146592418

    GitHub | 1 year ago | JorisM
    java.lang.AssertionError: Module RCTNetworking was already registered!
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Android React Native Module already registered

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

    AssertionError: This root view has already been attached to a catalyst instance manager

    Stack Overflow | 7 days ago | gittieatlas
    java.lang.AssertionError: This root view has already been attached to a catalyst instance manager

    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