0.9.16 • Published 4 years ago
react-native-region-picker-modal v0.9.16
Description
This is a fork of react-native-country-picker-modal by Xavier Carpentier. It works fundamentally the same way as the Country Picker with the necessary tweaks to actually be a Region Picker.
Installation
$ npm install react-native-region-picker-modal
or
$ yarn add react-native-region-picker-modal
Basic Usage
WORK IN PROGRESS
import React from 'react';
import RegionPicker from 'react-native-region-picker-modal';
export default class Example extends React.Component {
constructor() {
this.state = {
cca2: 'US',
selectedRegion: 'NY'
};
}
render() {
return (
<RegionPicker
onChange={value => {
this.setState({selectedRegion: value.selectedRegion});
this.props.navigation.navigate('Step2', {countryCode: this.state.cca2, regionCode: value.selectedRegion})
}}
showRegionNameWithFlag
hideFlag
transparent
cca2={this.state.cca2}
selectedRegion={this.state.selectedRegion}
translation="eng"
/>
)
}
}
License
0.9.16
4 years ago
0.9.15
4 years ago
0.9.14
4 years ago
0.9.13
4 years ago
0.9.12
4 years ago
0.9.11
4 years ago
0.9.10
4 years ago
0.9.9
4 years ago
0.9.8
4 years ago
0.9.7
4 years ago
0.9.4
4 years ago
0.9.6
4 years ago
0.9.3
4 years ago
0.9.2
4 years ago
0.9.0
4 years ago
0.9.1
4 years ago
0.8.4
5 years ago
0.8.3
5 years ago
0.8.2
5 years ago
0.8.1
5 years ago
0.8.0
5 years ago