Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[Android] modal cannot work if ReactRootView is created and cached in previous activity #9496
When I do pre-load of ReactRootView in previous Activity (in a hybrid app):
ReactRootView rootView = new ReactRootView(activity); rootView.startReactApplication( ((ReactApplication) activity.getApplication()).getReactNativeHost().getReactInstanceManager(), reactInfo.getMainComponentName(), reactInfo.getLaunchOptions());
and later use the created view in ReactActivity directly
Modal cannot show in this case then (works fine if I do not do this pre-load), I guess this is due to Android window issue as it is using the previous native activity to add window.
Any ideas on this? TimePickerAndroid works just fine.
react-native 0.31, Mac, Android.