Define window dimensions of React Native app #11050
-
There's probably an easy answer to this but I can't seem to find it in the docs. Is there a way to define the dimensions of the app window? And perhaps even lock the window size i.e. disable resizing (see another question asking this here)? In Proton Native they solved this by introducing a component called |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
There isn't going to be any direct JS access to this native functionality (since most of React Native core is from mobile applications where this sort of thing isn't relevant), but when you drop into native code you should be able to do these things. I'd search around for "UWP disable window resize" and see what you find. Responses like this for example: https://stackoverflow.com/questions/32212301/is-it-possible-to-restrict-the-user-from-re-sizing-a-uwp-app |
Beta Was this translation helpful? Give feedback.
-
hey @tmrk , did you succeed? |
Beta Was this translation helpful? Give feedback.
There isn't going to be any direct JS access to this native functionality (since most of React Native core is from mobile applications where this sort of thing isn't relevant), but when you drop into native code you should be able to do these things. I'd search around for "UWP disable window resize" and see what you find. Responses like this for example: https://stackoverflow.com/questions/32212301/is-it-possible-to-restrict-the-user-from-re-sizing-a-uwp-app