mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-25 14:47:21 +08:00
Fixed: Move out setupDevtools call from renderApplication function
Reviewed By: sahrens Differential Revision: D2620876 fb-gh-sync-id: 8971a1c523c06966dd11280e19272429aa3f9c8d
This commit is contained in:
committed by
facebook-github-bot-3
parent
f5670f8ab5
commit
4e1f2f4e0f
@@ -69,10 +69,6 @@ function renderApplication<D, P, S>(
|
||||
rootTag,
|
||||
'Expect to have a valid rootTag, instead got ', rootTag
|
||||
);
|
||||
if (__DEV__ && !window.document) {
|
||||
var setupDevtools = require('setupDevtools');
|
||||
setupDevtools();
|
||||
}
|
||||
React.render(
|
||||
<AppContainer rootTag={rootTag}>
|
||||
<RootComponent
|
||||
|
||||
Reference in New Issue
Block a user