HomeOur TeamContact

Country Selector

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

Table Of Contents

01
Introduction
02
Installation
03
Example
04
Tutorial

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


Previous Article
Basic Snap Carousel
Utkarsh Lubal

Utkarsh Lubal

Full Stack Developer

Related Posts

Exploring Alternative Emulators for React Native Development
Exploring Alternative Emulators for React Native Development
January 20, 2024
1 min

Quick Links

Advertise with usAbout UsContact Us

Social Media