How to use the react-native-orientation-locker.removeOrientationListener 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
componentWillUnmount() {
        Orientation.removeOrientationListener(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 10 months ago

Package Health Score

71 / 100
Full package analysis