discussions-and-proposals icon indicating copy to clipboard operation
discussions-and-proposals copied to clipboard

Future Plans for Foldable Device Support in React Native

Open quci2022 opened this issue 11 months ago • 5 comments

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?

quci2022 avatar Dec 12 '24 09:12 quci2022

[https://github.com/react-native-community/discussions-and-proposals/issues/189]

vksgautam1986 avatar Dec 12 '24 09:12 vksgautam1986

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.

alanleedev avatar Dec 12 '24 16:12 alanleedev

Note there's a W3C API on the web for that:

https://github.com/w3c/device-posture

https://x.com/jh3yy/status/1861453906196181187

image

Could be great if RN implemented exactly the same API (at least the JS part of it) to have good cross-platform support.

slorber avatar Dec 13 '24 15:12 slorber

Is there any more information regarding this idea or at least an update?

thomasdierickx avatar Mar 11 '25 16:03 thomasdierickx

Any update for foldable device support?

eyupdogan avatar Jun 02 '25 14:06 eyupdogan