-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Full size modals (including LogBox) not respecting window size on Catalyst #30741
Comments
@jnpdx Thanks for the issue! I am not sure about the work put into Catalyst other than basic build support. Escalating the issue because I do not believe the capabilities of each component is documented |
It looks like LogBox uses Stylesheet.absoluteFill, which looks like this:
Which is basically exactly the same as react-native-modal's approach:
So, although this obviously isn't the cause of the bug, it's definitely a hint to what's causing it to appear. Regarding the work put in on Catalyst, FWIW, this is the only issue my app seemed to encounter when running as Catalyst (except for some minor non-runtime build issues), which was a pleasant surprise! |
I've submitted a pull request fixing these issues (+RCTDevLoadingView width) |
Any updates on this? Seems worse in React Native 0.68 - like the React Native root view is never updating after the initial size of the window. |
I'll try to publish some fixes used by our team as a new PR this or next week, hope it will be merged this time. |
@robertherber this issue is really weird.
Then set flipper_configuration in Podfile to FlipperConfiguration.disabled and mac_catalyst_enabled to true, I don't have any issues (on Monterey 12.5 and Ventura beta 5), LogBox respects the size of the windows and keeps updating dynamically on resize or going to full screen mode. |
The Dimensions object does NOT update when resizing windows in Catalyst. Using rn 0.70 |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been stalled for 7 days with no activity. |
When launched in Catalyst on the Mac, certain React Native modal components (including the LogBox) don't seem to respect the size of the window. Instead of being full screen (a la iOS) modal, it gets stuck at ~740x395. Resizing the window, although it affects the bottom bar LogBox notification, does not resize the modal dialog itself.
This is inconsequential for a non-user-facing feature like LogBox, but it affects other elements as well (like react-native-modal).
React Native version:
0.63.3, 0.63.4, 0.64.0-rc2
Steps To Reproduce
yarn install
and thencd ios && pod install
Expected Results
LogBox should be a full screen modal and respect window resizing
Snack, code example, screenshot, or link to a repository:
0.64.0-rc2 (https://github.com/jnpdx/RN-CatalystTest-64)
0.63.4 (https://github.com/jnpdx/RN-CatalystTest)
The text was updated successfully, but these errors were encountered: