diff --git a/examples/CustomPicker/ModalPickerImage/index.js b/examples/CustomPicker/ModalPickerImage/index.js index 3386ee23..ae94f345 100644 --- a/examples/CustomPicker/ModalPickerImage/index.js +++ b/examples/CustomPicker/ModalPickerImage/index.js @@ -1,7 +1,7 @@ import React from 'react'; -import { View, Modal, Text, ScrollView, TouchableOpacity, Image } from 'react-native'; +import { View, Modal, Text, ScrollView, TouchableOpacity, Image, ViewPropTypes } from 'react-native'; import PropTypes from 'prop-types'; @@ -14,15 +14,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 ? ViewPropTypes.style : View.propTypes.style, + selectStyle: ViewPropTypes ? ViewPropTypes.style : View.propTypes.style, + optionStyle: ViewPropTypes ? ViewPropTypes.style : View.propTypes.style, optionTextStyle: Text.propTypes.style, - sectionStyle: View.propTypes.style, + sectionStyle: ViewPropTypes ? ViewPropTypes.style : View.propTypes.style, sectionTextStyle: Text.propTypes.style, - cancelStyle: View.propTypes.style, + cancelStyle: ViewPropTypes ? ViewPropTypes.style : View.propTypes.style, cancelTextStyle: Text.propTypes.style, - overlayStyle: View.propTypes.style, + overlayStyle: ViewPropTypes ? ViewPropTypes.style : View.propTypes.style, cancelText: PropTypes.string, };