mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Inject DevTools integration for RN Fiber (#8930)
This commit is contained in:
1 parent
d42c285aa2
commit
fb1444c463
1 file changed
+8
@@ -33,6 +33,7 @@ const emptyObject = require('emptyObject');
|
||||
const findNodeHandle = require('findNodeHandle');
|
||||
const invariant = require('invariant');
|
||||
|
||||
const { injectInternals } = require('ReactFiberDevToolsHook');
|
||||
const {
|
||||
precacheFiberNode,
|
||||
uncacheFiberNode,
|
||||
@@ -416,4 +417,11 @@ const ReactNative = {
|
||||
|
||||
};
|
||||
|
||||
if (typeof injectInternals === 'function') {
|
||||
injectInternals({
|
||||
findFiberByHostInstance: ReactNativeComponentTree.getClosestInstanceFromNode,
|
||||
findHostInstanceByFiber: NativeRenderer.findHostInstance,
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = ReactNative;
|
||||
Reference in new issue
Block a user