File tree 4 files changed +11
-7
lines changed
packages/react-native/Libraries
ReactNative/ReactFabricPublicInstance
4 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import type {
12
12
AttributeConfiguration ,
13
13
HostComponent ,
14
14
INativeMethods ,
15
+ InternalInstanceHandle ,
15
16
MeasureInWindowOnSuccessCallback ,
16
17
MeasureLayoutOnSuccessCallback ,
17
18
MeasureOnSuccessCallback ,
@@ -41,14 +42,14 @@ const noop = () => {};
41
42
export default class ReactFabricHostComponent implements INativeMethods {
42
43
// These need to be accessible from `ReactFabricPublicInstanceUtils`.
43
44
__nativeTag : number ;
44
- __internalInstanceHandle : mixed ;
45
+ __internalInstanceHandle : InternalInstanceHandle ;
45
46
46
47
_viewConfig : ViewConfig ;
47
48
48
49
constructor (
49
50
tag : number ,
50
51
viewConfig : ViewConfig ,
51
- internalInstanceHandle : mixed ,
52
+ internalInstanceHandle : InternalInstanceHandle ,
52
53
) {
53
54
this . __nativeTag = tag ;
54
55
this . _viewConfig = viewConfig ;
Original file line number Diff line number Diff line change 9
9
*/
10
10
11
11
import typeof ReactFabricType from '../../Renderer/shims/ReactFabric' ;
12
- import type { ViewConfig } from '../../Renderer/shims/ReactNativeTypes' ;
12
+ import type {
13
+ InternalInstanceHandle ,
14
+ ViewConfig ,
15
+ } from '../../Renderer/shims/ReactNativeTypes' ;
13
16
import type ReactFabricHostComponentType from './ReactFabricHostComponent' ;
14
17
15
18
// Lazy loaded to avoid evaluating the module when using the legacy renderer.
@@ -20,7 +23,7 @@ let ReactFabric: ReactFabricType;
20
23
export function createPublicInstance (
21
24
tag : number ,
22
25
viewConfig : ViewConfig ,
23
- internalInstanceHandle : mixed ,
26
+ internalInstanceHandle : InternalInstanceHandle ,
24
27
) : ReactFabricHostComponentType {
25
28
if ( ReactFabricHostComponent == null ) {
26
29
ReactFabricHostComponent = require ( './ReactFabricHostComponent' ) . default ;
Original file line number Diff line number Diff line change 1
- 77ba1618a528787baaa8e007fadaff93a86fb675
1
+ ca01f359b9236292c749075bb2fd41bb7b569308
Original file line number Diff line number Diff line change 6
6
*
7
7
* @noformat
8
8
* @flow strict
9
- * @generated SignedSource<<7dc3ed81183377055bac08760fcd775b >>
9
+ * @generated SignedSource<<e35074dabf9cff3672b45eadd68af01e >>
10
10
*
11
11
* This file was sync'd from the facebook/react repository.
12
12
*/
@@ -216,7 +216,7 @@ export type ReactNativeType = {
216
216
} ;
217
217
218
218
export opaque type Node = mixed ;
219
- type InternalInstanceHandle = mixed ;
219
+ export opaque type InternalInstanceHandle = mixed ;
220
220
type PublicInstance = mixed ;
221
221
222
222
export type ReactFabricType = {
You can’t perform that action at this time.
0 commit comments