Reputation: 71
I am developing an iOS app using React Native with Expo, and the app is primarily designed for iPhone and iPad. However, when running the app on macOS with an M chip, users can resize the window, which causes UI issues since the app is not designed to adapt to arbitrary window sizes.
My question is how can I restrict the window resizing when my app is running on macOS under iOS emulation?
I want to ensure that the app maintains a consistent size, similar to how it would appear on an iPad, without allowing the user to resize the window arbitrarily on macOS.
Any suggestions or best practices would be greatly appreciated!
I have tried using Platform.OS === 'macos'
to adjust the views accordingly, but it doesn't seem to work as expected since the app recognizes the OS as running on an iPad not macOS.
Upvotes: 0
Views: 77