react-native-modal-selector
Advanced tools
Comparing version 1.0.1 to 1.0.2
14
index.js
@@ -33,3 +33,3 @@ 'use strict'; | ||
initValue: PropTypes.string, | ||
animationType: Modal.propTypes.animationType, | ||
animationType: PropTypes.oneOf(['none', 'slide', 'fade']), | ||
style: ViewPropTypes.style, | ||
@@ -53,3 +53,11 @@ selectStyle: ViewPropTypes.style, | ||
disabled: PropTypes.bool, | ||
supportedOrientations: Modal.propTypes.supportedOrientations, | ||
supportedOrientations: PropTypes.arrayOf( | ||
PropTypes.oneOf([ | ||
'portrait', | ||
'portrait-upside-down', | ||
'landscape', | ||
'landscape-left', | ||
'landscape-right', | ||
]), | ||
), | ||
keyboardShouldPersistTaps: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]), | ||
@@ -146,3 +154,3 @@ backdropPressToClose: PropTypes.bool, | ||
onChange = (item) => { | ||
if (Platform.OS === 'android' || !Modal.propTypes.onDismiss) { | ||
if (Platform.OS === 'android' || (Modal.propTypes !== undefined && !Modal.propTypes.onDismiss)) { // don't know if this will work for previous version, please check! | ||
// RN >= 0.50 on iOS comes with the onDismiss prop for Modal which solves RN issue #10471 | ||
@@ -149,0 +157,0 @@ this.props.onChange(item); |
{ | ||
"name": "react-native-modal-selector", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A cross-platform (iOS / Android), selector/picker component for React Native that is highly customizable and supports sections.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -0,0 +0,0 @@ # react-native-modal-selector [](https://badge.fury.io/js/react-native-modal-selector) |
@@ -0,0 +0,0 @@ 'use strict'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
342
70709