File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change 5
5
* LICENSE file in the root directory of this source tree.
6
6
*
7
7
* @format
8
- * @flow strict-local
8
+ * @flow
9
9
*/
10
10
11
11
'use strict' ;
12
12
13
+ import type { SyntheticEvent } from 'CoreEventTypes' ;
14
+ import type { ViewProps } from 'ViewPropTypes' ;
15
+ import type { NativeComponent } from 'ReactNative' ;
16
+
17
+ type SnapshotReadyEvent = SyntheticEvent <
18
+ $ReadOnly < {
19
+ testIdentifier : string ,
20
+ } > ,
21
+ > ;
22
+
23
+ type NativeProps = $ReadOnly < { |
24
+ ...ViewProps ,
25
+ onSnapshotReady ?: ?( event : SnapshotReadyEvent ) => mixed ,
26
+ testIdentifier ?: ?string ,
27
+ | } > ;
28
+
29
+ type SnapshotViewNativeType = Class < NativeComponent < NativeProps >> ;
30
+
13
31
const requireNativeComponent = require ( 'requireNativeComponent' ) ;
14
32
15
- module . exports = requireNativeComponent ( 'RCTSnapshot' ) ;
33
+ module . exports = ( ( requireNativeComponent ( 'RCTSnapshot' ) : any ) : SnapshotViewNativeType ) ;
You can’t perform that action at this time.
0 commit comments