An open API service indexing awesome lists of open source software.

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.

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 || 'انتخاب منطقه' }

```