Permalink
Browse files

ReactNativeFiber findNodeHandle() bugfix

Reviewed By: sahrens

Differential Revision: D4762397

fbshipit-source-id: d047f5c77067dbf8b0331695bb661e04ce00913c
  • Loading branch information...
bvaughn authored and facebook-github-bot committed Mar 23, 2017
1 parent 123311c commit 333dd5953351db9cb7553af2dc4752c6098827bc
Showing with 4 additions and 1 deletion.
  1. +4 −1 Libraries/Renderer/src/renderers/native/ReactNativeFiber.js
@@ -382,7 +382,10 @@ const ReactNative = {
// See NativeMethodsMixin#setNativeProps for more info on why this is done.
findNodeHandle(componentOrHandle: any): ?number {
const instance: any = findNodeHandle(componentOrHandle);
return instance ? instance._nativeTag : null;
if (instance == null || typeof instance === 'number') {
return instance;
}
return instance._nativeTag;
},
render(element: Element<any>, containerTag: any, callback: ?Function) {

0 comments on commit 333dd59

Please sign in to comment.