From e9f65fdf1696656bbaa6756552bdbb9537909354 Mon Sep 17 00:00:00 2001 From: Website Deployment Script Date: Fri, 29 Jul 2016 22:50:24 +0000 Subject: [PATCH] Updated docs for next --- releases/next/docs/integration-with-existing-apps.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/releases/next/docs/integration-with-existing-apps.html b/releases/next/docs/integration-with-existing-apps.html index 1d085284258..99dd9533517 100644 --- a/releases/next/docs/integration-with-existing-apps.html +++ b/releases/next/docs/integration-with-existing-apps.html @@ -312,7 +312,11 @@ AppRegistry. public void invokeDefaultOnBackPressed() { super.onBackPressed(); } -}

A ReactInstanceManager can be shared amongst multiple activities and/or fragments. You will want to make your own ReactFragment or ReactActivity and have a singleton holder that holds a ReactInstanceManager. When you need the ReactInstanceManager (e.g., to hook up the ReactInstanceManager to the lifecycle of those Activities or Fragments) use the one provided by the singleton.

Next, we need to pass some activity lifecycle callbacks down to the ReactInstanceManager:

@Override +}

We need set the theme of MyReactActivity to Theme.AppCompat.Light.NoActionBar beause some components rely on this theme.

<activity + android:name=".MyReactActivity" + android:label="@string/app_name" + android:theme="@style/Theme.AppCompat.Light.NoActionBar"> +</activity>

A ReactInstanceManager can be shared amongst multiple activities and/or fragments. You will want to make your own ReactFragment or ReactActivity and have a singleton holder that holds a ReactInstanceManager. When you need the ReactInstanceManager (e.g., to hook up the ReactInstanceManager to the lifecycle of those Activities or Fragments) use the one provided by the singleton.

Next, we need to pass some activity lifecycle callbacks down to the ReactInstanceManager:

@Override protected void onPause() { super.onPause();