react-native-country-codes-picker icon indicating copy to clipboard operation
react-native-country-codes-picker copied to clipboard

No search box is visible

Open thegrandpoobah opened this issue 8 months ago • 3 comments

I use the component with the following code:

<View>
        <CountryPicker
          lang={i18n.language}
          show={countryCodePickerVisible}
          pickerButtonOnPress={item => {
            setCountryCode(item)
            setCountryCodePickerVisible(false)
          }}
          style={{
            dialCode: { color: theme.colors?.primary },
            countryName: { color: theme.colors?.primary },
          }}
        />
</View>

(there is of course more around this, but I tried to limit it to the minimum, can add more if necessary)

But when I set countryCodePickerVisible to true, I get the following screenshot:

image

i.e. the search bar is not visible. I don't see any props to make the search bar visible, so I'm not sure what the issue is. Looked through the code as well and it looks like it should just work by default... Any hints on where to start looking?

(Loving this library btw. super simple to use)

thegrandpoobah avatar May 31 '24 20:05 thegrandpoobah