callstack / react-native-paper

Material Design for React Native (Android & iOS)
https://reactnativepaper.com
MIT License
13.04k stars 2.1k forks source link

React-navigation `presentation: modal` inner Component shift #3059

Open midrizi opened 2 years ago

midrizi commented 2 years ago

Current behaviour

I noticed this using <Menu>, when menu is visible it is like 8~10px below where it should be, this seems to be the case with all Components inside react-navigation presentation: modal on iOS.

Expected behaviour

Components to be where they are on the screen, if you try to use the onLayout you will get wrong position of the element

Code sample

https://snack.expo.dev/9cdSNjwzL

Screenshots (if applicable)

Presentation modal Normal page

What have you tried

This is what I mean by shift:

Your Environment

software version
ios or android 15.2
react-native 0.64.3
react-native-paper 4.9.2
node v12.22.7
npm or yarn yarn
expo sdk 5.0.3
github-actions[bot] commented 2 years ago

Couldn't find version numbers for the following packages in the issue:

Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3.

The versions mentioned in the issue for the following packages differ from the latest versions on npm:

Can you verify that the issue still exists after upgrading to the latest versions of these packages?

MathisBarre commented 1 year ago

Same issue here, i guess i will add an hard-coded transform to fix it. Not ideal

alesdvorakcz commented 9 months ago

Same issue here. Even bigger problem is with presentation: formsheet on ipads