Android Orientation Handling API
Handle screen orientation changes using the WebToNative JavaScript API. Detect and control portrait and landscape modes in Android apps.
window.WTN.setOrientation({
orientation, //"protrait | landscape"
forceOrientation // true | false
})import { setOrientation } from "webtonative";
setOrientation({
orientation, //"protrait | landscape"
forceOrientation // true | false
})Last updated