How to use the react-native-orientation-locker.addOrientationListener function in react-native-orientation-locker

To help you get started, we’ve selected a few react-native-orientation-locker examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wonday / react-native-pdf / example / PDFExample.js View on Github external
componentDidMount() {
        Orientation.addOrientationListener(this._onOrientationDidChange);
    }

react-native-orientation-locker

A react-native module that can listen on orientation changing of device, get current orientation, lock to preferred orientation.

MIT
Latest version published 6 months ago

Package Health Score

73 / 100
Full package analysis