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

added method to check if system auto-rotate is enabled #30

Merged
merged 2 commits into from
Nov 26, 2018
Merged

added method to check if system auto-rotate is enabled #30

merged 2 commits into from
Nov 26, 2018

Conversation

mtshrmn
Copy link
Contributor

@mtshrmn mtshrmn commented Nov 26, 2018

This PR aims to implement the feature request that is discussed in issue #25
I have implemented it on Android only.

Here's the usage of the new method:
Returns true if rotation is enabled, otherwise false.

Orientation.getAutoRotateState((state) => console.log(state));

Other than that, I have deleted unnecessary out-of-place spaces

@wonday
Copy link
Owner

wonday commented Nov 26, 2018

thank you, it is great.
and can you also add some description in readme.MD?

@mtshrmn
Copy link
Contributor Author

mtshrmn commented Nov 26, 2018

Done 😄

@wonday
Copy link
Owner

wonday commented Nov 26, 2018

thx.

@wonday wonday merged commit 1e09490 into wonday:master Nov 26, 2018
@gp3gp3gp3
Copy link
Contributor

Thank you! Just waiting on this to get published and I'll be integrating it into our project

@gp3gp3gp3
Copy link
Contributor

@wonday Any update on getting this latest version published to NPM?

@wonday
Copy link
Owner

wonday commented Nov 28, 2018

released to v1.0.22

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

Successfully merging this pull request may close these issues.

None yet

3 participants