Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No search box is visible #90

Open
thegrandpoobah opened this issue May 31, 2024 · 3 comments
Open

No search box is visible #90

thegrandpoobah opened this issue May 31, 2024 · 3 comments

Comments

@thegrandpoobah
Copy link

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)

@Abubakarraza
Copy link

Any Update here i also face same issue

@redcodemohammed
Copy link

I had the same issue, the problem is that the search box is hidden under the system bar, I ended up adding some top margin to the modal to make the search bar show. But I don't think this is the best solution.

@AlixH
Copy link

AlixH commented Jun 27, 2024

Adjust the height of the modal
e.g. style={{modal: {height: '80%'}}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants