Closed ManiTWIndia closed 1 week ago
Any updates here?
Any updates here?
Why are you asking? Are you having the same issue or would you like to take this one to fix it?
Any updates here?
Why are you asking? Are you having the same issue or would you like to take this one to fix it?
Yes I'm having the same issue
@Abdelaty-magdy @ManiTWIndia I'll be looking into this issues and any general issues that may come up related to Android 15. Will post an update when I have identified the issue and have a proposed fix
@Abdelaty-magdy @ManiTWIndia I'll be looking into this issues and any general issues that may come up related to Android 15. Will post an update when I have identified the issue and have a proposed fix
@alanleedev I did some investigation and I think the root cause is forcing the app to have edge-to-edge feature in Android 15.
@alanleedev I did some investigation and I think the root cause is forcing the app to have edge-to-edge feature in Android 15.
@Abdelaty-magdy Do you have more details around what you found?
My investigation lead me to believe it was an issue with ModalHostHelper.getModalHostSize()
. Specifically, display.getCurrentSizeRange(MIN_POINT, MAX_POINT) seems to have different results in Android 15 and the return value from the function is incorrect.
I also see some existing issues with the Modal
.
I don't have a solution for this issue yet.
We are also affected by this issue. Are there any updates, since Android 15 was just released?
We are also affected by this issue. Are there any updates, since Android 15 was just released?
@ieatfood There was a fix for this and will be included in the upcoming 0.76 release. Could you try to test with the latest RC to see if the problem was resolved?
The fix was merged here: https://github.com/facebook/react-native/pull/46359
@ManiTWIndia could you also check with latest 0.76 RC?
@alanleedev I am not facing the Modal truncation issue on React native version 0.76 with new architecture. Thanks.
@ManiTWIndia Thanks for verifying. Closing the issue.
@alanleedev Can we backport this fix for lower versions? We are using React native 0.74.3 and we cant upgrade to the latest version for now
@alanleedev Can we backport this fix for lower versions? We are using React native 0.74.3 and we cant upgrade to the latest version for now
@cortinico @cipolleschi Is this something we can do?
We are using React native 0.74.3 and we cant upgrade to the latest version for now
@ManiTWIndia why not? This change is included in 0.76.0
How do you test on Android 15 when React Native still doesn’t support 16 KB page sizes? @ManiTWIndia
How do you test on Android 15 when React Native still doesn’t support 16 KB page sizes? @ManiTWIndia
How is this related to 16K support
Description
When we use the React Native Modal and try to render the Modal content at the bottom, upto Android 14 new architecture it is working fine. But in Android 15 new architecture, the Modal rendered at the bottom is not entirely visible and we are only able to see a small section of the Modal rendered.
Please find the video attached below where the issue is happening on Android 15 new architecture
https://github.com/user-attachments/assets/32525bd9-2837-4ab3-9326-f878170b979b
Please find the video attached below with expected behaviour on Android 14 new architecture
https://github.com/user-attachments/assets/a4d0306c-fa30-4a1d-afb0-5093215681c7
Note: We have tested this issue on Pixel 7 Pro and Pixel 8 Pro (Emulator)
Steps to reproduce
npm install
andnpx react-native run-android
to run the project.React Native Version
0.74.3
Affected Platforms
Runtime - Android
Areas
Other (please specify)
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/ManiTWIndia/ReactNativeModalIssue
Screenshots and Videos
https://github.com/user-attachments/assets/b9e758e6-3895-4d12-9b1e-042caac15c20