How to use the react-native-orientation-locker.lockToLandscape 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 experiment322 / controlloid-client / js / interface / screens / EditorScreen.jsx View on Github external
componentDidMount() {
    const { layouts, navigation } = this.props;
    KeepAwake.activate();
    StatusBar.setHidden(true);
    Orientation.lockToLandscape();
    this.setState({ layout: _.cloneDeep(layouts[navigation.getParam("editedLayout")]) });
  }
github experiment322 / controlloid-client / js / interface / screens / ControllerScreen.jsx View on Github external
componentDidMount() {
    KeepAwake.activate();
    StatusBar.setHidden(true);
    Orientation.lockToLandscape();
  }

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 days ago

Package Health Score

80 / 100
Full package analysis