discussions-and-proposals
discussions-and-proposals copied to clipboard
Future Plans for Foldable Device Support in React Native
Hi React Native team,
I am currently developing applications targeting foldable devices, and I’ve noticed that React Native lacks native APIs or interfaces to handle foldable-specific features, such as determining whether a device is foldable or obtaining the fold region details.
Given the growing adoption of foldable devices, I’d like to ask:
Are there any plans to provide official support for foldable device interfaces in upcoming React Native iterations? If not, are there recommended best practices for the community to handle such scenarios effectively?
[https://github.com/react-native-community/discussions-and-proposals/issues/189]
Thanks for raising the issue. This is something we may look into during Q1 of 2025. If you have more detailed suggestions what is missing in RN, please let us know.
Note there's a W3C API on the web for that:
https://github.com/w3c/device-posture
https://x.com/jh3yy/status/1861453906196181187
Could be great if RN implemented exactly the same API (at least the JS part of it) to have good cross-platform support.
Is there any more information regarding this idea or at least an update?
Any update for foldable device support?