diff --git a/LoadingSpinnerOverlay.js b/LoadingSpinnerOverlay.js index d7d1260..a1a9257 100644 --- a/LoadingSpinnerOverlay.js +++ b/LoadingSpinnerOverlay.js @@ -6,8 +6,8 @@ */ import React, { - Component, - PropTypes, + Component + } from 'react' import { View, @@ -19,8 +19,9 @@ import { ActivityIndicator, ActivityIndicatorIOS, ProgressBarAndroid, + ViewPropTypes } from 'react-native' - +import PropTypes from 'prop-types' import TimerEnhance from 'react-native-smart-timer-enhance' const styles = StyleSheet.create({ @@ -52,8 +53,8 @@ class LoadingSpinnerOverlay extends Component { } static propTypes = { - overlayStyle: View.propTypes.style, - style: View.propTypes.style, + overlayStyle: ViewPropTypes.style, + style: ViewPropTypes.style, duration: PropTypes.number, delay: PropTypes.number, marginTop: PropTypes.number, diff --git a/package.json b/package.json index 36274c3..36f5c46 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "@react-native-component/react-native-smart-loading-spinner-overlay", - "version": "1.0.2", + "name": "react-native-smart-loading-spinner-overlay", + "version": "1.0.4", "description": "A smart loading spinner overlay for React Native apps, written in JS for cross-platform support. It works on iOS and Android.", "main": "LoadingSpinnerOverlay.js", "scripts": {