Skip to content

faiqfarooq/react-phone-input-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

Follow these instructions to run project locally.

Prerequisites

Follow these commands to run project successfully.

  • npm

    npm install npm@latest -g
  • or if you want to add this into your project then install these

    npm install libphonenumber-js react-phone-input-2 formik

Installation

  1. Clone the repo

    git clone https://github.com/faiqfarooq/react-phone-input-2.git
  2. Install packages in root directory

    npm install
  3. All done 😄

Demo

Firstly it looks like this.

My Image

When we click on the dropdown, it shows the list of countries.

My Image

we also applied the validation

My Image

when valid number is added, the error message will be gone.

My Image

The input number we get in this format.

My Image

Live Demo

Click Here to see live