Closed ChrisJamesC closed 10 months ago
When using the library, the following warning is displayed in react-native:
Warning: Failed prop type: The prop `metadata` is marked as required in `ForwardRef(PhoneInput)`, but its value is `undefined`. at PhoneInput
The metadata prop is set by default to defaultMetadata
metadata
defaultMetadata
I dunno why does it show .isRequired in that file. I don't see that in the source files of the project. The main repo is at gitlab btw.
.isRequired
Thx, merged: https://gitlab.com/catamphetamine/react-phone-number-input/-/commit/5956e2bef03de3d511637e209311a00bdad5b1b9
When using the library, the following warning is displayed in react-native:
The
metadata
prop is set by default todefaultMetadata