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

Feature - Android expose autorotation status to js #9

Merged
merged 4 commits into from
May 25, 2024

Conversation

gladiuscode
Copy link
Owner

This PR adds a new ReactMethod: isAutoRotationEnabled and updates the JS side to implement it for Android.
The RNOrientationDirector class leverages the AutoRotation enum to return a UNKNOWN in iOS, since we can't access this kind of value.

@gladiuscode gladiuscode linked an issue May 25, 2024 that may be closed by this pull request
@gladiuscode gladiuscode self-assigned this May 25, 2024
@gladiuscode gladiuscode added enhancement New feature or request Android Android only labels May 25, 2024
@gladiuscode gladiuscode merged commit 3815b4d into main May 25, 2024
5 checks passed
@gladiuscode gladiuscode deleted the features/android-expose-autorotation-status-to-js branch May 25, 2024 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android Android only enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Android - Expose autoRotation status to js
1 participant