File tree Expand file tree Collapse file tree 3 files changed +18
-20
lines changed Expand file tree Collapse file tree 3 files changed +18
-20
lines changed Original file line number Diff line number Diff line change 9
9
10
10
'use strict' ;
11
11
12
- const React = require ( 'React' ) ;
13
- const StyleSheet = require ( 'StyleSheet' ) ;
14
- const Text = require ( 'Text' ) ;
15
- const View = require ( 'View' ) ;
12
+ import * as React from 'react' ;
13
+ import { Text , View , StyleSheet } from 'react-native' ;
16
14
17
15
class DummyProgressViewIOS extends React . Component {
18
16
render ( ) {
@@ -43,4 +41,4 @@ const styles = StyleSheet.create({
43
41
} ,
44
42
} ) ;
45
43
46
- module . exports = DummyProgressViewIOS ;
44
+ export default DummyProgressViewIOS ;
Original file line number Diff line number Diff line change 10
10
11
11
'use strict' ;
12
12
13
- const React = require ( 'React' ) ;
14
- const StyleSheet = require ( 'StyleSheet' ) ;
13
+ import * as React from 'react' ;
14
+ import { StyleSheet , ColorValue } from 'react-native' ;
15
15
16
- const RNCProgressViewNativeComponent = require ( 'RNCProgressViewNativeComponent' ) ;
16
+ import RNCProgressViewNativeComponent from 'RNCProgressViewNativeComponent' ;
17
17
18
- import type { ImageSource } from 'ImageSource' ;
19
- import type { ColorValue } from 'StyleSheetTypes' ;
20
- import type { ViewProps } from 'ViewPropTypes' ;
18
+ import type { ImageSource } from 'react-native/Libraries/Image/ ImageSource' ;
19
+ import type { ColorValue } from 'react-native/Libraries/StyleSheet/ StyleSheetTypes' ;
20
+ import type { ViewProps } from 'react-native/Libraries/Components/View/ ViewPropTypes' ;
21
21
22
22
type Props = $ReadOnly < { |
23
23
...ViewProps ,
@@ -73,9 +73,9 @@ const styles = StyleSheet.create({
73
73
} ,
74
74
} ) ;
75
75
76
- const ProgressViewIOSWithRef = React . forwardRef ( ProgressViewIOS ) ;
76
+ const ProgressViewIOSWithRef = forwardRef ( ProgressViewIOS ) ;
77
77
78
78
/* $FlowFixMe(>=0.89.0 site=react_native_ios_fb) This comment suppresses an
79
79
* error found when Flow v0.89 was deployed. To see the error, delete this
80
80
* comment and run Flow. */
81
- module . exports = ( ProgressViewIOSWithRef : RNCProgressViewNativeComponent ) ;
81
+ export default ( ProgressViewIOSWithRef : RNCProgressViewNativeComponent ) ;
Original file line number Diff line number Diff line change 10
10
11
11
'use strict' ;
12
12
13
- const requireNativeComponent = require ( 'requireNativeComponent' ) ;
13
+ import { requireNativeComponent } from 'react-native' ;
14
14
15
- import type { NativeComponent } from 'ReactNative' ;
16
- import type { ImageSource } from 'ImageSource' ;
17
- import type { ColorValue } from 'StyleSheetTypes' ;
18
- import type { ViewProps } from 'ViewPropTypes' ;
15
+ import type { NativeComponent } from 'react-native/Libraries/Renderer/shims/ ReactNative' ;
16
+ import type { ImageSource } from 'react-native/Libraries/Image/ ImageSource' ;
17
+ import type { ColorValue } from 'react-native/Libraries/StyleSheet/ StyleSheetTypes' ;
18
+ import type { ViewProps } from 'react-native/Libraries/Components/View/ ViewPropTypes' ;
19
19
20
20
type NativeProps = $ReadOnly < { |
21
21
...ViewProps ,
@@ -29,6 +29,6 @@ type NativeProps = $ReadOnly<{|
29
29
30
30
type NativeProgressViewIOS = Class < NativeComponent < NativeProps >> ;
31
31
32
- module . exports = ( ( requireNativeComponent (
32
+ export default ( ( requireNativeComponent (
33
33
'RNCProgressView' ,
34
- ) : any ) : NativeProgressViewIOS ) ;
34
+ ) : any ) : NativeProgressViewIOS ) ;
You can’t perform that action at this time.
0 commit comments