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

Handle Hiding? #129

Open
KjellConnelly opened this issue Mar 2, 2017 · 1 comment
Open

Handle Hiding? #129

KjellConnelly opened this issue Mar 2, 2017 · 1 comment

Comments

@KjellConnelly
Copy link

How do we go about handling the situation where the picker hides the bottom of our content?

I did some state for marginBottom for a ScrollView that has the picker in it. When open, marginBottom:250. When closed:0. But setState({marginBottom:0}) does not update properly as the bottom of the scrollView still appears to be where the top of the Picker used to be.

Also, 250 is an arbitrary number (I just guessed 216 since this is the height of UIPicker in iOS, and 44 because they recommend 44pt buttons at a minimum). But this value may change in future versions. Some way to get the actual value?

Or another work around? I tried KeyboardAvoidingView, but this doesn't work with react-native-picker (and astonishingly has the same blank space at the bottom when closing the keyboard issue too)

@BingoDevil
Copy link

Picker.hide();

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

2 participants