xcarpentier / react-native-country-picker-modal

🇦🇶 Country picker provides a modal allowing a user to select a country from a list. It display a flag next to each country name.
https://reactnative.gallery/xcarpentier/country-picker
MIT License
1.07k stars 797 forks source link

different colors when countries listed and selected. #417

Closed enesdumanli closed 3 years ago

enesdumanli commented 3 years ago

Issue Description

I set listed countries color to gray. onBackgroundTextColor: '#575A89', with this code. but after i choose a country. i want that country name to look white. but it still looks gray. is there anyway to change color after select ?

Steps to Reproduce / Code Snippets

const myTheme = { ...DEFAULT_THEME, fontSize: 16, fontFamily: 'SourceSansPro-Regular', onBackgroundTextColor: '#575A89', backgroundColor: 'white', };

<CountryPicker onSelect={(item) => { setSelectedCountry(item) }} withModal withCountryNameButton countryCode={selectedCountry.cca2} placeholder={<Text style={{ fontSize: 16, fontFamily: 'SourceSansPro-Regular', color: 'white' }}>{selectedCountry}} theme={myTheme} />

Expected Results

i want country names to be gray when they are listed. but when i choose, chosen country name should be white.

Additional Information

Nodejs version: 14.15.5 React version: 17.0.1 React Native version: 0.64.1 react-native-country-picker-modal version: 2.0.0 Platform(s) (iOS, Android, web, or all?): Android

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.