Skip to content

Commit

Permalink
Remove setUseOldBridge from the documentation
Browse files Browse the repository at this point in the history
Summary:
This PR removes the `.setUseOldBridge(true)` from the documentation. The method was removed from the `ReactInstanceManager` class at [this](facebook@1a690d5#diff-dc0f3a09c238b372cb1c27aa5f7dcbce) commit and currently it is not available.
Closes facebook#10368

Differential Revision: D4016564

Pulled By: JoelMarcey

fbshipit-source-id: 0d9f83c1708dc85043d80a82ecd4fad6b9d42cf5
  • Loading branch information
SandroMachado authored and Facebook Github Bot committed Oct 13, 2016
1 parent 5f548e1 commit ae9cc00
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions docs/IntegrationWithExistingApps.md
Original file line number Diff line number Diff line change
Expand Up @@ -611,8 +611,6 @@ You need to add some native code in order to start the React Native runtime and

> If you are targetting Android version <5, use the `AppCompatActivity` class from the `com.android.support:appcompat` package instead of `Activity`.
> If you find out later that your app crashes due to `Didn't find class "com.facebook.jni.IteratorHelper"` exception, uncomment the `setUseOldBridge` line. [See related issue on GitHub.](https://github.com/facebook/react-native/issues/8701)
```java
public class MyReactActivity extends Activity implements DefaultHardwareBackBtnHandler {
private ReactRootView mReactRootView;
Expand All @@ -630,7 +628,6 @@ public class MyReactActivity extends Activity implements DefaultHardwareBackBtnH
.addPackage(new MainReactPackage())
.setUseDeveloperSupport(BuildConfig.DEBUG)
.setInitialLifecycleState(LifecycleState.RESUMED)
//.setUseOldBridge(true) // uncomment this line if your app crashes
.build();
mReactRootView.startReactApplication(mReactInstanceManager, "HelloWorld", null);

Expand Down

0 comments on commit ae9cc00

Please sign in to comment.