xcarpentier/react-native-country-picker-modal

Filter applies to all countries (instead of only available countries)

ahdam opened this issue · 0 comments

ahdam commented

Issue Description

The search is done in all available countries.
It should only be done in the provided countries.

Steps to Reproduce / Code Snippets

<CountryPicker
    countryCode: selectedCountry.cca2,
    withFilter: true,
    withFlag: true,
    preferredCountries:  ["RO", "IT"],
    countryCodes: ["RO", "IT"],
    withCallingCode: true,
    withEmoji: true,
    onSelect: onCountrySelect
/>

IMG_6659
IMG_6660

Expected Results

When I filter countries, I expect the filter to apply only to available countries. (Not all available countries)

Additional Information

  • Nodejs version: 14.18.2
  • React version: 17.0.2
  • React Native version: 0.68.2
  • react-native-country-picker-modal version:2.0.0
  • Platform(s) (iOS, Android, web, or all?): all