Closed kirkegaard closed 11 months ago
The same problem. Temporarily fixed this by importing metadata and explicitly assigning it to PhoneInput.
import metadata from 'libphonenumber-js/min/metadata'
...
<PhoneInputWithCountry
international
metadata={metadata}
Experiencing the same as well.
Turns out that the previous refactoring that removed .defaultProps
has left .isRequired
on those props and those .isRequired
statements should've been removed too.
Published react-phone-number-input@3.3.2
.
When using
import PhoneInputWithCountry from "react-phone-number-input/react-hook-form";
im getting a warning: