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 795 forks source link

Alpha Filter not lined up with flatlist #498

Open rdemar333 opened 1 year ago

rdemar333 commented 1 year ago

Issue Description

The alpha filter is not lined up wit the FlatList current location.

Steps to Reproduce / Code Snippets

<CountryPicker withFilter withAlphaFilter withCountryNameButton onSelect={(selected) => [ setNewField(selected.name), setNewCountryCode(selected.cca2), ]} countryCode={newCountryCode} containerButtonStyle={ newField ? styles.flagSelection : styles.flagSelectionPlaceHolder } placeholder={ <Text style={{ fontSize: 14, color: "gray" }}> {user && user.country} </Text> } />

Expected Results

40585272-094f817a-61b0-11e8-9668-abff0aeddb0e

Dark mode not necessary

Additional Information