n4kz / react-native-material-dropdown

Material dropdown with consistent behaviour on iOS and Android
Other
732 stars 597 forks source link

Prevent dropdown from going off screen #96

Open talon-himself opened 6 years ago

talon-himself commented 6 years ago

When I have a dropdown near the bottom or top of the screen and it contains many options, the dropdown options list goes off the screen. How do I prevent it from going off the screen? dropdownPosition would need to calculate the position because right now adding that prop will apply the same position to all dropdowns. I believe this dropdown has this functionality: https://github.com/sohobloo/react-native-modal-dropdown

dongawli commented 6 years ago

Any update here please? Here is the issue I am facing - image

dongawli commented 6 years ago

I've fixed the issue by adding dropdownPosition={0}..

Thank you.

tienping commented 5 years ago

thanks @dongawli for the answer, it work for me