Prefill with country code
JoymenOpoyi opened this issue · 1 comments
JoymenOpoyi commented
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 = #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
- Nodejs version: RECOMMENDED ONES
- React version: RECOMMENDED ONES
- React Native version: RECOMMENDED ONES
- react-native-country-picker-modal version: RECOMMENDED ONES
- Platform(s) (iOS, Android, web, or all?): all
- TypeScript version: NOT SURE
JoymenOpoyi commented
I also tried coveting that object using countrycode as CountryCode(type from library)
import { CountryCode } from "react-native-country-picker-modal";