From dcd7591c6e8b7035711b381a4f41c5cfafaa40d6 Mon Sep 17 00:00:00 2001 From: Tao Meng Date: Fri, 29 Jul 2016 14:27:33 -0700 Subject: [PATCH] Update doc IntegrationWithExistingApps doc: Add activity theme Summary: Beause I found `Switch` can't work beause the app theme set `showText` to true. It works when the theme is sett to `Theme.AppCompat.Light.NoActionBar`. Maybe it is necessary to let users knows this and set the default theme to `Theme.AppCompat.Light.NoActionBar`. Closes https://github.com/facebook/react-native/pull/9086 Differential Revision: D3643082 Pulled By: JoelMarcey fbshipit-source-id: bcf6e5315753dcde6ce171018999334bcfe2c1ba --- docs/IntegrationWithExistingApps.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/IntegrationWithExistingApps.md b/docs/IntegrationWithExistingApps.md index a4e48997441..83f5b118618 100644 --- a/docs/IntegrationWithExistingApps.md +++ b/docs/IntegrationWithExistingApps.md @@ -630,6 +630,16 @@ public class MyReactActivity extends Activity implements DefaultHardwareBackBtnH } } ``` +We need set the theme of `MyReactActivity` to `Theme.AppCompat.Light.NoActionBar` beause some components rely on this theme. +```xml + + +``` + + > 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.