thegamenicorus / react-native-phone-input

Phone input box for React Native
https://www.npmjs.com/package/react-native-phone-input
MIT License
396 stars 452 forks source link

InitialCountry is not working properly #156

Open nsspl-india opened 4 years ago

nsspl-india commented 4 years ago

I try to set the country from state value but I didn't work well but When I set the value as initialCountry={"in"} then it works.

Currently I am using the react-native version: "react-native-phone-input": "^0.2.4", <PhoneInput textProps={{placeholder: 'Primary Phone'}} ref={ref => { this.phone = ref; }} style={Styles.phoneField} disabled={this.state.disabledFields} value={this.abc(this.state.phone} autoFormat={true} onChangePhoneNumber={(number) => this.setState({phone: number})} initialCountry={this.state.countryName} />

sajjadjaved01 commented 3 years ago

Facing same issue, any update on this ?