diff --git a/packages/react-native/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.js b/packages/react-native/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.js index 2502bab8692302..56de22d5ec276b 100644 --- a/packages/react-native/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.js +++ b/packages/react-native/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.js @@ -88,5 +88,11 @@ export function getNodeFromPublicInstance( export function getInternalInstanceHandleFromPublicInstance( publicInstance: ReactFabricHostComponent | ReactNativeElement, ): InternalInstanceHandle { - return publicInstance.__internalInstanceHandle; + if (publicInstance.__internalInstanceHandle != null) { + return publicInstance.__internalInstanceHandle; + } + + // TODO(T174762768): Remove this once OSS versions of renderers will be synced. + // $FlowExpectedError[prop-missing] Keeping this for backwards-compatibility with the renderers versions in open source. + return publicInstance._internalInstanceHandle; }