@@ -66,7 +66,6 @@ import {getClosestInstanceFromNode} from './ReactFabricComponentTree';
6666import { compareDocumentPositionForEmptyFragment } from 'shared/ReactDOMFragmentRefShared' ;
6767
6868import {
69- getInspectorDataForViewTag ,
7069 getInspectorDataForViewAtPoint ,
7170 getInspectorDataForInstance ,
7271} from './ReactNativeFiberInspector' ;
@@ -79,7 +78,6 @@ export {default as rendererVersion} from 'shared/ReactVersion'; // TODO: Conside
7978export const rendererPackageName = 'react-native-renderer' ;
8079export const extraDevToolsConfig = {
8180 getInspectorDataForInstance,
82- getInspectorDataForViewTag,
8381 getInspectorDataForViewAtPoint,
8482} ;
8583
@@ -142,8 +140,6 @@ export type TransitionStatus = mixed;
142140
143141export type RendererInspectionConfig = $ReadOnly < {
144142 getInspectorDataForInstance ?: ( instance : Fiber | null ) => InspectorData ,
145- // Deprecated. Replaced with getInspectorDataForViewAtPoint.
146- getInspectorDataForViewTag ?: ( tag : number ) => Object ,
147143 getInspectorDataForViewAtPoint ?: (
148144 inspectedView : Object ,
149145 locationX : number ,
@@ -313,17 +309,7 @@ export function getPublicInstance(instance: Instance): null | PublicInstance {
313309
314310 // Handle root containers
315311 if ( instance . containerInfo != null ) {
316- if ( instance . containerInfo . publicInstance != null ) {
317- return instance . containerInfo . publicInstance ;
318- }
319- }
320-
321- // For compatibility with the legacy renderer, in case it's used with Fabric
322- // in the same app.
323- // $FlowExpectedError[prop-missing]
324- if ( instance . _nativeTag != null ) {
325- // $FlowExpectedError[incompatible-return]
326- return instance ;
312+ return instance . containerInfo . publicInstance ;
327313 }
328314
329315 return null ;
0 commit comments