You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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)
The text was updated successfully, but these errors were encountered: