1.0.5 • Published 2 years ago

@lyrahealth-inc/react-native-orientation-plugin v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

react-native-orientation-plugin

An expo config plugin created to insert native code into the compiled ios/android app and allow react-native-orientation to work with EAS build

Setup

npm install react-native-orientation

npm install @lyrahealth-inc/react-native-orientation-plugin

Add the config plugin to the plugins array of your app.json or app.config.js:

{
  "expo": {
    "plugins": ["@lyrahealth-inc/react-native-orientation-plugin"]
  }
}

Usage:

import Orientation from 'react-native-orientation';

Orientation.lockToPortrait();

Reference react-native-orientation library for more documentation.