Skip to content

Commit

Permalink
Add renderer id to react-devtools injection (#10475)
Browse files Browse the repository at this point in the history
* add renderer id to react-devtools injection

* rename renderer id to rendererPackageName in react-dom injection

* add rendererPackageName to react-native entries
  • Loading branch information
chisler authored and gaearon committed Aug 21, 2017
1 parent e464cf2 commit ec77740
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/renderers/dom/ReactDOMStackEntry.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ if (
},
Mount: ReactMount,
Reconciler: ReactReconciler,
rendererPackageName: 'react-dom',
});
}

Expand Down
1 change: 1 addition & 0 deletions src/renderers/dom/fiber/ReactDOMFiberEntry.js
Original file line number Diff line number Diff line change
Expand Up @@ -813,6 +813,7 @@ const foundDevTools = injectInternals({
// This is an enum because we may add more (e.g. profiler build)
bundleType: __DEV__ ? 1 : 0,
version: ReactVersion,
rendererPackageName: 'react-dom',
});

if (__DEV__) {
Expand Down
1 change: 1 addition & 0 deletions src/renderers/native/ReactNativeFiberEntry.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ injectInternals({
// This is an enum because we may add more (e.g. profiler build)
bundleType: __DEV__ ? 1 : 0,
version: ReactVersion,
rendererPackageName: 'react-native',
});

module.exports = ReactNativeFiber;
1 change: 1 addition & 0 deletions src/renderers/native/ReactNativeStackEntry.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ if (
Mount: ReactNativeMount,
Reconciler: require('ReactReconciler'),
getInspectorDataForViewTag: ReactNativeStackInspector.getInspectorDataForViewTag,
rendererPackageName: 'react-native',
});
}

Expand Down

0 comments on commit ec77740

Please sign in to comment.