colorfy-software / react-native-modalfy

🥞 Modal citizen of React Native.
https://colorfy-software.gitbook.io/react-native-modalfy
MIT License
1.06k stars 42 forks source link

[Web] Container height in mobile browsers #90

Closed vsnaichuk closed 1 year ago

vsnaichuk commented 1 year ago

Hello, thank you for the great library! I've noticed that ModalStack which is fixed by 100vh, is having issues on the mobile browser, as shown in the screenshot below (iOS Safari). It also happens in Android Chrome with navigation bar. It seams that using window.innerHeight instead of 100vh should fix this issue.

Screenshot 2023-01-10 at 11 49 13

Steps to reproduce:

instantiate an Expo app run expo start copy over the code from the sample app open in mobile browser Any help would be greatly appreciated.