[react-native] enable react devtools from JavascriptCore

This commit is contained in:
Jared Forsyth
2015-07-23 16:56:23 -07:00
parent 10ffe170c2
commit 9e4af68d91
4 changed files with 132 additions and 10 deletions

View File

@@ -69,6 +69,11 @@ function renderApplication<D, P, S>(
rootTag,
'Expect to have a valid rootTag, instead got ', rootTag
);
// not when debugging in chrome
if (__DEV__ && !window.document) {
var setupDevtools = require('setupDevtools');
setupDevtools();
}
React.render(
<AppContainer rootTag={rootTag}>
<RootComponent