https://github.com/jalalazimi/react-native-iran-region-picker
a modal picker(wheel) of Iran province & city & region.
https://github.com/jalalazimi/react-native-iran-region-picker
iran modal picker react-native region wheel
Last synced: about 2 months ago
JSON representation
a modal picker(wheel) of Iran province & city & region.
- Host: GitHub
- URL: https://github.com/jalalazimi/react-native-iran-region-picker
- Owner: jalalazimi
- License: mit
- Created: 2017-04-20T09:07:22.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-22T12:03:50.000Z (over 7 years ago)
- Last Synced: 2024-11-12T22:23:50.427Z (11 months ago)
- Topics: iran, modal, picker, react-native, region, wheel
- Language: JavaScript
- Homepage:
- Size: 339 KB
- Stars: 7
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```
yarn add react-native-iran-region-picker
```
or
```
npm install react-native-iran-region-picker --save
```## Usage
```javascript
import IranRegionWheelPicker from 'react-native-iran-region-picker';// ios
this.setState({ region1: `${params.province},${params.city},${params.area}` })}
onCancel={() => console.log('cancel')}
>
// android
this.setState({ region1: `${params.province},${params.city},${params.area}` })}
onCancel={() => console.log('cancel')}
>
{this.state.region1 || 'انتخاب منطقه'}//Example:index.ios.js/android.ios.js
{this.state.region2 || 'انتخاب منطقه' }
```