react-native-phone-input icon indicating copy to clipboard operation
react-native-phone-input copied to clipboard

InitialCountry is not working properly

Open nsspl-india opened this issue 4 years ago • 1 comments

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} />

nsspl-india avatar Nov 05 '20 10:11 nsspl-india

Facing same issue, any update on this ?

sajjadjaved01 avatar Jan 21 '21 16:01 sajjadjaved01