Closed mingxin-yang closed 4 years ago
Yeah, i also got this problem. For now i just using a Text component to show the callingcode
`<CountryPicker countryCode={this.state.countryCode} theme="black" withCallingCode onSelect={country => { this.setState({ countryCode: country.cca2, callingCode: country.callingCode, }); }} />
I have TypeError: undefined is not an object (evaluating 'countries[countryCode].callingCode') when withCallingCodeButton is true
when I change country, the callingCodeButton can't change the code