mirror of
https://github.com/status-im/react-native.git
synced 2025-01-14 19:44:13 +00:00
ReactNativeFiber findNodeHandle() bugfix
Reviewed By: sahrens Differential Revision: D4762397 fbshipit-source-id: d047f5c77067dbf8b0331695bb661e04ce00913c
This commit is contained in:
parent
123311cad2
commit
333dd59533
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user