-
Notifications
You must be signed in to change notification settings - Fork 478
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
Wrong position calculation when modal is dropped down #231
Comments
I think the problem is here: https://github.com/sohobloo/react-native-modal-dropdown/blob/master/components/ModalDropdown.js#L217 Should be, |
@000xuandu You can solve it by subtracting from the <ModalDropdown
options={['option 1', 'option 2']}
adjustFrame={style => {
style.top = style.top - 15;
return style;
}}
/> |
Android function <ModalDropdown
options={['option 1', 'option 2']}
adjustFrame={style => {
style.top =(Platform.OS === 'ios' ? style.top : style.top - StatusBar.currentHeight);
return style;
}}
/> |
you save my life, many thanks |
I am using "react-native-modal-dropdown": "^ 0.7.0".
Currently, I encounter this problem on my android device (on IOS devices it does not happen), that is: When the modal is dropped down, the position between the "Select Topic" button and the modal is spaced apart.
�Code and error are posted in the image:
Expected: The position of this modal is right below the "Select Topic" button.
@ajonno Help me, pls
The text was updated successfully, but these errors were encountered: