Country Selector

Published in Others
July 20, 2022
1 min read
Country Selector

Introduction

React Native Countries v1.0.2 will provide you directly native countries list. The names of the countries come with their flags.

Installation

npm install --save react-native-country-picker-modal

Example

import * as React from 'react';
import { View, StyleSheet } from 'react-native';
import Constants from 'expo-constants';
import CountryPicker from 'react-native-country-picker-modal';
export default class App extends React.Component {
render() {
return (
<View style={styles.container}>
<CountryPicker
withEmoji
/>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
paddingTop: Constants.statusBarHeight,
backgroundColor: '#ecf0f1',
padding: 8,
},
});

Tutorial


Share


Awesome React Native
© 2025, All Rights Reserved.

Social Media