Comments (2)
You can use addDeviceOrientationListener(function(deviceOrientation))
to listen the device orientation.
you can also use getDeviceOrientation(function(deviceOrientation))
to get current device orientation.
Device orientation will not be affected by lockToXXX
If you want to detect UI orientation, you can use getOrientation(function(orientation))
from react-native-orientation-locker.
Thank you. It worked really well
from react-native-orientation-locker.
Related Issues (20)
- Compatibility with React Native 0.71.1 HOT 7
- Getting null to all methods of Orientation class HOT 8
- Landscape mode on iPad.
- publish latest version - IE 1.6.0|2.0.0 to npm
- lockOrientation on ipad doesn't work HOT 3
- when will you upgrade your package 0.73
- IOS : app crash when orientation changed HOT 2
- OrientationType is not matching exported constants
- Feature-Suggestion: Migrate iOS Part to Swift
- Support new React Native new architecture (TurboModules/Fabric)
- Landscape mode on real device shows half screen but works well on emulator IOS HOT 1
- 横屏的时候,缺了一块儿 HOT 2
- Landscape orientaion is not working on iphone 7 HOT 4
- App was working normally, when I ran it again this error occurred, what would be a possible solution? HOT 7
- IOS 12 crashing when calling Orientation.lockToLandscape() HOT 2
- Here is Kotlin code for Android installation HOT 4
- package for RN 0.73.1 ? HOT 2
- Task: react-native-orientation-locker: compileDebugJavaWithJavac FAILED HOT 7
- getAutoRotateState always returning `true` on iOS and `false` on Android HOT 1
- Screen still rotates with Auto-Rotate Disabled on Android Devices Above SDK 30 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-orientation-locker.