Open nsspl-india opened 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} />
Facing same issue, any update on this ?
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} />