Skip to content

Commit fa34035

Browse files
fkgozalifacebook-github-bot
authored andcommitted
work around inspector redbox due to Fiber
Summary: This temporarily fixes redbox when using Inspector before Fiber is fully ready. Reviewed By: sebmarkbage Differential Revision: D4593324 fbshipit-source-id: 287df97f5ecf30c15890f7f7bca4646421bb41c8
1 parent 724d89d commit fa34035

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Libraries/Inspector/InspectorUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function traverseOwnerTreeUp(hierarchy, instance) {
2121

2222
function findInstanceByNativeTag(nativeTag) {
2323
var instance = ReactNativeComponentTree.getInstanceFromNode(nativeTag);
24-
if (typeof instance.tag === 'number') {
24+
if (!instance || typeof instance.tag === 'number') {
2525
// TODO(sema): We've disabled the inspector when using Fiber. Fix #15953531
2626
return null;
2727
}

0 commit comments

Comments
 (0)