akveo / react-native-ui-kitten

:boom: React Native UI Library based on Eva Design System :new_moon_with_face::sparkles:Dark Mode
https://akveo.github.io/react-native-ui-kitten/
MIT License
10.27k stars 951 forks source link

Modal layout is incorrect after Orientation change #1132

Closed lxzxl closed 3 years ago

lxzxl commented 4 years ago

🐛 Bug Report

the Modal content position is not correct after screen orientation is changed to landscape and back to portrait.

To Reproduce

Steps to reproduce the behavior:

Rotate the screen to landscape and then rotate back to portrait view. Open a modal, the modal is not centered.

Expected behavior

The modal should be centered in window with the correct left and top.

Link to runnable example or repository (highly encouraged)

UI Kitten and Eva version

Package Version
@eva-design/eva 5.0.0
@ui-kitten/components 5.0.0

Environment information

Xnip2020-06-07_00-19-24
artyorsh commented 4 years ago

Thanks for reporting! Please post a workaround on it if you have some, so the other users who stuck it may know the possible solution 👍