You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have also faced the same problem.
but the solution below works for me.
use set your initial country code as initialValue props
for ex. if I want to set India as the default country
<PhoneInput
ref={phoneRef}
initialCountry={'in'} <---- not working in my case
initialValue="91" <--- I have do this
textProps={{
placeholder: 'Enter a phone number...'
}}
/>
I'm facing this problem : trying to pre-set
initialCountry
but it doesn't work. It shows US flag every time.Can anyone please share how can I achieve this or if this feature still needs to be developed.
thanks.
The text was updated successfully, but these errors were encountered: