Skip to content
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

Future Plans for Foldable Device Support in React Native #844

Open
quci2022 opened this issue Dec 12, 2024 · 3 comments
Open

Future Plans for Foldable Device Support in React Native #844

quci2022 opened this issue Dec 12, 2024 · 3 comments

Comments

@quci2022
Copy link

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?

@vksgautam1986
Copy link

vksgautam1986 commented Dec 12, 2024

[https://github.com//issues/189]

@alanleedev
Copy link
Collaborator

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.

@slorber
Copy link

slorber commented Dec 13, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants