Follow these instructions to run project locally.
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
-
Clone the repo
git clone https://github.com/faiqfarooq/react-phone-input-2.git
-
Install packages in root directory
npm install
-
All done 😄
Firstly it looks like this.
When we click on the dropdown, it shows the list of countries.
we also applied the validation
when valid number is added, the error message will be gone.
The input number we get in this format.