react-native-modalbox
react-native-modalbox copied to clipboard
set center relative to window height instead of relative to document height
I am using this plugin with react native web. I have issue when i have long page, the center position box is relative to document height. It cause a bug cause when the user should see the popup he stay on the bottom of the page. How can i set the popup to be relative to window height?
i have the same question , you can set position top , set marginTop 200
I have the same issue with long scroll view. So, i just check current screen offset then calculate marginTop and pass it in props to a Modal. It is not the best solution, but i dont see any other rigth now. If someone has better idea, please post it here =)