Closed JoymenOpoyi closed 2 years ago
If the value for default code is dynamic it doesn't accept it
Used this function for conversion = https://github.com/xcarpentier/react-native-country-picker-modal/issues/392
I tried this function, it returns the country code properly but that object is not accepted by defaultCode prop, pls help @RamijM [FILL THIS OUT]
Should change default country code automatically(prefill)
[FILL THIS OUT]
I also tried coveting that object using countrycode as CountryCode(type from library) import { CountryCode } from "react-native-country-picker-modal";
Issue Description
If the value for default code is dynamic it doesn't accept it
Steps to Reproduce / Code Snippets
Used this function for conversion = https://github.com/xcarpentier/react-native-country-picker-modal/issues/392
I tried this function, it returns the country code properly but that object is not accepted by defaultCode prop, pls help @RamijM [FILL THIS OUT]
Expected Results
Should change default country code automatically(prefill)
[FILL THIS OUT]
Additional Information