nativescript-orientation
nativescript-orientation copied to clipboard
A NativeScript plugin to deal with Declarative UI and Screen Orientation
I am building an app with Angular and TypeScript, starting with Nativescript's TabView template (created using Sidekick), using the orientation plugin, which is very useful except for this one issue....
I needed a solution to guess the device rotation, while the app is locked in Portrait. I saw the method `getOrientation(true)`, and the doc says it will infer the orientation...
Screens which have a background image set, flicker when using `orientation.disableRotation()` The background turns white for a moment and then gets the background image, and this keeps repeating every time...