in the phone number text field if you want to give more than 12 digit 10 digit and 2 digit with a country code ,how to make it possible, because some country have 5-6 digit of country code so in that case they are not able to give the proper number. How to disable the restriction in react phone input 2.as for example if i want to give like phone number 919002007804567.how can I achieve in react phone input-2
import React, { useState } from "react";
import PhoneInput from "react-phone-input-2";
import "react-phone-input-2/lib/material.css";
export default function DropDown() {
const [fields1, setFields1] = useState([{ value: null }]);
function handleChange(i, event) {
if (event) {
let values = [...fields1];
values[i].value = event;
setFields1((v) => values);
}
}
return (
<div className="App">
{fields1.map((field, idx) => (
<PhoneInput
country={"in"}
key={idx}
value={field.value || ""}
onChange={(e) => handleChange(idx, e)}
/>
))}
</div>
);
}