File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
packages/react-native-renderer/src Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 99 * @flow strict
1010 */
1111
12- import type { ElementRef , ElementType , MixedElement } from 'react' ;
12+ import type {
13+ Component as ReactComponent ,
14+ ElementRef ,
15+ ElementType ,
16+ MixedElement ,
17+ RefSetter ,
18+ } from 'react' ;
1319
1420export type MeasureOnSuccessCallback = (
1521 x : number ,
@@ -133,7 +139,7 @@ declare const ensureNativeMethodsAreSynced: NativeMethods;
133139
134140export type HostInstance = NativeMethods ;
135141export type HostComponent < Config : { ...} > = component (
136- ref : React$ RefSetter< HostInstance > ,
142+ ref : RefSetter < HostInstance > ,
137143 ...Config
138144) ;
139145
@@ -185,7 +191,7 @@ export type RenderRootOptions = {
185191 errorInfo : {
186192 + componentStack ?: ?string ,
187193 // $FlowFixMe[unclear-type] unknown props and state.
188- + errorBoundary ?: ?React$Component < any , any > ,
194+ + errorBoundary ?: ?ReactComponent < any , any > ,
189195 } ,
190196 ) => void ,
191197 onRecoverableError ?: (
You can’t perform that action at this time.
0 commit comments