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
This commit is contained in:
Kevin Gozali 2017-02-21 15:37:10 -08:00 committed by Facebook Github Bot
parent 724d89d7eb
commit fa34035def
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ function traverseOwnerTreeUp(hierarchy, instance) {
function findInstanceByNativeTag(nativeTag) { function findInstanceByNativeTag(nativeTag) {
var instance = ReactNativeComponentTree.getInstanceFromNode(nativeTag); var instance = ReactNativeComponentTree.getInstanceFromNode(nativeTag);
if (typeof instance.tag === 'number') { if (!instance || typeof instance.tag === 'number') {
// TODO(sema): We've disabled the inspector when using Fiber. Fix #15953531 // TODO(sema): We've disabled the inspector when using Fiber. Fix #15953531
return null; return null;
} }