React Native/Typescrip Phone Number Input Validation

Job ID: 32736744

Budget: €30 – €250 EUR

Hello. I need an input for the Phone number for a project that is written in React Native/Typescript. The files with the project and the screenshot how the input should looks like I will upload. The todo task is in the component login/components/Phoneinput. There is also the description how it should looks like:

// TODO: add a PhoneInput field that looks like the one in the screenshot
// add validation to only allow phone numbers in the follwing format:
// +[CountryCode][Rest] eg. +4915735260650
// These should not be allowed:
// 015735260650
// +49015735260650
// 004915735260650

// If a phone number is not valid just delete the unvalid parts
Related categories: Mobile App Development React.js React Native