react-native-iran-region-picker
IOS & Android.
a modal picker(wheel) of Iran province & city & region.
propTypes
isRtl: PropTypes.bool,
isVisible: PropTypes.bool,
isShowArea: PropTypes.bool,
selectedProvince: PropTypes.string,
selectedCity: PropTypes.string,
selectedArea: PropTypes.string,
navBtnColor: PropTypes.string,
animationType: PropTypes.string,
transparent: PropTypes.bool,
onSubmit: PropTypes.func,
onCancel: PropTypes.func,
androidPickerHeight: PropTypes.number
Install
npm install react-native-iran-region-picker --save
Usage
; // ios<IranRegionWheelPicker onSubmit= this onCancel= console> <TextInput editable=false placeholder="انتخاب منطقه" value=thisstateregion1 /></IranRegionWheelPicker> // android<IranRegionWheelPicker onSubmit= this onCancel= console> <Text style= backgroundColor: '#FFF' width: 200 paddingVertical: 20 textAlign: 'center' color: 'black' >thisstateregion1 || 'انتخاب منطقه'</Text></IranRegionWheelPicker> //Example:index.ios.js/android.ios.js<IranRegionWheelPicker isVisible=thisstateisPickerVisible navBtnColor='red' selectedProvince='تهران' selectedCity='تهران' selectedArea='تجریش' transparent animationType='fade' onSubmit=this_onPressSubmit onCancel=this_onPressCancel androidPickerHeight=100/> <TouchableOpacity onPress=this_onPress2Show> <Text style= color: 'white' >thisstateregion2 || 'انتخاب منطقه' </Text></TouchableOpacity>