-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Insets on iOS are not calculated correctly #389
Comments
Thanks for the PR-issue Do you have any repo where I can also debug it? Maybe I can port it to 3.x too. By the way, I will have more time to review it during the weekend. |
https://github.com/yousefelgoharyx/unistyles-insets |
Many thanks! Will get back to you later this week |
Awesome |
Hey. The same behavior is observed on Android. |
Hey @yousefelgoharyx I've tried your demo and I can't reproduce 🥹 My steps:
Result: Do I need to do anything else? |
Sorry for late response |
I'll try it out on other iPhones we I can, maybe something is wrong with my device since I can't reproduce it on simulator |
Let me try with real device. Maybe that's the case! |
ooh yes, i mentioned that in the original comment but probably i should've stressed on the issue being related to real devices haha |
Description
on iOS on a real device, using the old arch and expo-video causes the insets to become zero when the app goes in the background or actually when any layout change happens
Changing the implementation of getInsets function to this solves the issue
However, I'm not an iOS expert so I decided to just open an issue not a PR
Steps to Reproduce
once the app gets in the foreground, the insets will become 0
Snack or Repository Link (Optional)
No response
Unistyles Version
2.20.0
React Native Version
0.76.3
Platforms
iOS
Expo
Yes
The text was updated successfully, but these errors were encountered: