New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

expo-screen-orientation

Package Overview
Dependencies
Maintainers
28
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expo-screen-orientation

Expo universal module for managing device's screen orientation

  • 8.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
92K
decreased by-9.42%
Maintainers
28
Weekly downloads
 
Created
Source

expo-screen-orientation

Allows you to manage the orientation of your app's interface.

API documentation

Installation in managed Expo projects

For managed Expo projects, please follow the installation instructions in the API documentation for the latest stable release. If you follow the link and there is no documentation available then this library is not yet usable within managed projects — it is likely to be included in an upcoming Expo SDK release.

Installation in bare React Native projects

For bare React Native projects, you must ensure that you have installed and configured the expo package before continuing.

Add the package to your npm dependencies

npm install expo-screen-orientation

Configure for Android

No additional set up necessary.

Configure for iOS

Run npx pod-install after installing the npm package.

The default UIInterfaceOrientationMask mask is UIInterfaceOrientationMaskPortrait. You can optionally add EXDefaultScreenOrientationMask key in your Info.plist to change the default orientation mask, e.g.

<key>EXDefaultScreenOrientationMask</key>
<string>UIInterfaceOrientationMaskAllButUpsideDown</string>

Contributing

Contributions are very welcome! Please refer to guidelines described in the contributing guide.

Keywords

FAQs

Package last updated on 10 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc