diff --git a/index.js b/index.js index d65bf4c0..1b353398 100644 --- a/index.js +++ b/index.js @@ -1,9 +1,7 @@ 'use strict'; -import React,{ - PropTypes -} from 'react'; - +import React from 'react'; +import PropTypes from 'prop-types'; import { View, StyleSheet, @@ -12,7 +10,8 @@ import { Text, ScrollView, TouchableOpacity, - Platform + Platform, + ViewPropTypes } from 'react-native'; import styles from './style'; @@ -24,15 +23,15 @@ const propTypes = { data: PropTypes.array, onChange: PropTypes.func, initValue: PropTypes.string, - style: View.propTypes.style, - selectStyle: View.propTypes.style, - optionStyle: View.propTypes.style, + style: ViewPropTypes.style, + selectStyle: ViewPropTypes.style, + optionStyle: ViewPropTypes.style, optionTextStyle: Text.propTypes.style, - sectionStyle: View.propTypes.style, + sectionStyle: ViewPropTypes.style, sectionTextStyle: Text.propTypes.style, - cancelStyle: View.propTypes.style, + cancelStyle: ViewPropTypes.style, cancelTextStyle: Text.propTypes.style, - overlayStyle: View.propTypes.style, + overlayStyle: ViewPropTypes.style, cancelText: PropTypes.string }; diff --git a/package.json b/package.json index 16e1eba7..8eb62891 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-modal-picker", - "version": "0.0.16", + "version": "0.0.18", "description": "", "main": "index.js", "scripts": {