react-native/Libraries/ReactNative
Kevin Gozali 4530da87e2 make Modal pass rootTag to AppContainer
Summary:
Following up on fb7fe2d4e8: when <Modal> is used in dev mode, it renders `<AppContainer>` to wrap the children so that the element inspector can show up correctly. In that scenario, we need pass the `rootTag` over the `<AppContainer>` so that the children can read the rootTag correctly. Otherwise, the children of <Modal> will see it as undefined.

With this, AppContainer can then declare `rootTag` as a required prop, as it should have been.

Note that this only affects DEV build because there's no AppContainer wrapping otherwise.

Reviewed By: jingc

Differential Revision: D4204011

fbshipit-source-id: 80edbc8d351d983786e6fc3c68dfa65a71b1ed3c
2016-11-18 01:43:26 -08:00
..
AppContainer.js make Modal pass rootTag to AppContainer 2016-11-18 01:43:26 -08:00
AppRegistry.js RN: Require {react/lib/ => }ReactNative 2016-10-14 18:59:10 -07:00
I18nManager.js Reorganize core JS files 2016-10-11 10:14:28 -07:00
UIManager.js RN: Update React (2/2) 2016-11-04 05:43:44 -07:00
UIManagerStatTracker.js Wrapped UIManager native module for better abstraction 2015-11-27 07:00:32 -08:00
YellowBox.js Update fbsource 2016-11-08 12:43:48 -08:00
queryLayoutByID.js Reorganize core JS files 2016-10-11 10:14:28 -07:00
renderApplication.js Deploy v0.35.0 2016-11-14 20:45:17 -08:00
requireNativeComponent.js RN: Update React (2/2) 2016-11-04 05:43:44 -07:00
verifyPropTypes.js Reorganize core JS files 2016-10-11 10:14:28 -07:00