react-native-country-picker-modal
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -76,3 +76,2 @@ 'use strict'; | ||
return country.translations[translation] && country.translations[translation].common || country.name.common; | ||
xrg; | ||
} | ||
@@ -231,3 +230,8 @@ }, { | ||
_reactNative.Modal, | ||
{ visible: this.state.modalVisible }, | ||
{ | ||
visible: this.state.modalVisible, | ||
onRequestClose: function onRequestClose() { | ||
return _this6.setState({ modalVisible: false }); | ||
} | ||
}, | ||
_react2.default.createElement(_reactNative.ListView, { | ||
@@ -274,3 +278,3 @@ contentContainerStyle: styles.contentContainer, | ||
imgStyle: { | ||
resizeMode: 'stretch', | ||
resizeMode: 'contain', | ||
width: 25, | ||
@@ -277,0 +281,0 @@ height: 19, |
{ | ||
"name": "react-native-country-picker-modal", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Country picker", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -11,7 +11,7 @@ [**Support me with a Follow**](https://github.com/xcarpentier/followers) | ||
### Installation | ||
## Installation | ||
```bash | ||
$ npm i react-native-country-picker-modal --save | ||
``` | ||
### Basic Usage | ||
## Basic Usage | ||
- Install `react-native` first | ||
@@ -107,2 +107,8 @@ | ||
## FAQ | ||
### Is it supported and tested both on android and iOS? | ||
YES | ||
### Is the data that is populated inside the list saved offline once I install your package? | ||
YES : It used the world-countries package and image is stored into json and base64. | ||
## Contribution | ||
@@ -109,0 +115,0 @@ |
@@ -158,3 +158,6 @@ 'use strict'; | ||
</TouchableOpacity> | ||
<Modal visible={this.state.modalVisible}> | ||
<Modal | ||
visible={this.state.modalVisible} | ||
onRequestClose={() => this.setState({modalVisible: false})} | ||
> | ||
<ListView | ||
@@ -161,0 +164,0 @@ contentContainerStyle={styles.contentContainer} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1080289
2200
121