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

The excluded countries are shown when the filter is active. #407

Closed alpereryurt closed 3 years ago

alpereryurt commented 3 years ago

Issue Description

The excluded countries are shown when the filter is active and something is typed in the search box.

Steps to Reproduce / Code Snippets

<CountryPicker
            withCallingCodeButton={true}
            withCallingCode={true}
            excludeCountries={["AQ","BV","DO","TF","HM","SH","PR","UM"]}
            withCloseButton={true}
            withFilter={true}
            visible={countryCodePicker}
            withEmoji={false}
          />

Type Antarctica in the search box, it will be shown with the filter, but it will be excluded in the main list.

Expected Results

The filtered result should also exclude the countries set by excludeCountries prop.

Additional Information

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.

icecapp commented 3 years ago

Definitely a bug

hryacosta commented 3 years ago

this issue is happening on ios

KristinaHus commented 2 years ago

I'm also experiencing this bug. Did anyone found a solution?