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

Country picker closes immediately after pressing on it #483

Open mstricagnoli-va opened 2 years ago

mstricagnoli-va commented 2 years ago

Issue Description

I just created a new view and just placed on it, but I noticed when the picker is right at the top of the screen, when you press over the "Select Country" it immediately closes it with no reason and you can't select anything else. But, if I put it on the middle of the screen (or a marginTop of 400) it works just fine. Any clue what is it?

Steps to Reproduce / Code Snippets

Create a screen with only Country picker at the top:

return (
    <View>
      <CountryPicker />
    </View>
  );
};

Expected Results

Country picker opens and I can choose a country

Additional Information