Nativescript Get Device Orientation Util NativeScript utility to get device orientation on IOS and Android devices. How to use: Move this file to your project and use it :) import { getDeviceOrientation } from './deviceOrientationUtil'; getDeviceOrientation(); // landscape or portrait