File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
packages/react-devtools-shared/src/backend Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ export function attach(
149
149
150
150
let getInternalIDForNative : GetFiberIDForNative = ( ( null : any ) : GetFiberIDForNative ) ;
151
151
let findNativeNodeForInternalID : ( id : number ) => ?NativeType ;
152
- let getFiberForNative : GetFiberForNative = ( node ) => {
152
+ let getFiberForNative : GetFiberForNative = node => {
153
153
// Not implemented.
154
154
return null ;
155
155
} ;
@@ -165,10 +165,8 @@ export function attach(
165
165
const internalInstance = idToInternalInstanceMap . get ( id ) ;
166
166
return renderer . ComponentTree . getNodeFromInstance ( internalInstance ) ;
167
167
} ;
168
- getFiberForNative = ( node ) => {
169
- return renderer . ComponentTree . getClosestInstanceFromNode (
170
- node ,
171
- ) ;
168
+ getFiberForNative = node => {
169
+ return renderer . ComponentTree . getClosestInstanceFromNode ( node ) ;
172
170
} ;
173
171
} else if ( renderer . Mount . getID && renderer . Mount . getNode ) {
174
172
getInternalIDForNative = ( node , findNearestUnfilteredAncestor ) => {
Original file line number Diff line number Diff line change @@ -81,9 +81,7 @@ export type GetFiberIDForNative = (
81
81
component : NativeType ,
82
82
findNearestUnfilteredAncestor ? : boolean ,
83
83
) => number | null ;
84
- export type GetFiberForNative = (
85
- component : NativeType ,
86
- ) => Fiber | null ;
84
+ export type GetFiberForNative = ( component : NativeType ) => Fiber | null ;
87
85
export type FindNativeNodesForFiberID = ( id : number ) => ?Array < NativeType > ;
88
86
89
87
export type ReactProviderType < T > = {
You can’t perform that action at this time.
0 commit comments