|
@@ -7,7 +7,6 @@
|
7
|
7
|
|
8
|
8
|
import React, {
|
9
|
9
|
Component,
|
10
|
|
- PropTypes,
|
11
|
10
|
} from 'react'
|
12
|
11
|
import {
|
13
|
12
|
View,
|
|
@@ -19,8 +18,10 @@ import {
|
19
|
18
|
ActivityIndicator,
|
20
|
19
|
ActivityIndicatorIOS,
|
21
|
20
|
ProgressBarAndroid,
|
|
21
|
+ ViewPropTypes
|
22
|
22
|
} from 'react-native'
|
23
|
23
|
|
|
24
|
+import PropTypes from 'prop-types';
|
24
|
25
|
import TimerEnhance from 'react-native-smart-timer-enhance'
|
25
|
26
|
|
26
|
27
|
const styles = StyleSheet.create({
|
|
@@ -52,8 +53,8 @@ class LoadingSpinnerOverlay extends Component {
|
52
|
53
|
}
|
53
|
54
|
|
54
|
55
|
static propTypes = {
|
55
|
|
- overlayStyle: View.propTypes.style,
|
56
|
|
- style: View.propTypes.style,
|
|
56
|
+ overlayStyle: ViewPropTypes.style,
|
|
57
|
+ style: ViewPropTypes.style,
|
57
|
58
|
duration: PropTypes.number,
|
58
|
59
|
delay: PropTypes.number,
|
59
|
60
|
marginTop: PropTypes.number,
|