Name Date Size #Lines LOC

..26-Sep-2023-

android/H26-Sep-2023-626477

build/H26-Sep-2023-729411

ios/H26-Sep-2023-775582

plugin/H26-Sep-2023-172147

src/H26-Sep-2023-728468

.eslintrc.jsH A D26-Sep-2023103 31

.npmignoreH A D26-Sep-2023183 128

CHANGELOG.mdH A D26-Sep-20239.2 KiB225119

README.mdH A D26-Sep-20232 KiB4931

app.plugin.jsH A D26-Sep-202366 21

babel.config.jsH A D26-Sep-2023104 31

expo-module.config.jsonH A D26-Sep-2023364 1312

package.jsonH A D26-Sep-20231.1 KiB4544

tsconfig.jsonH A D26-Sep-2023217 109

README.md

1<p>
2  <a href="https://docs.expo.dev/versions/latest/sdk/screen-orientation/">
3    <img
4      src="../../.github/resources/expo-screen-orientation.svg"
5      alt="expo-screen-orientation"
6      height="64" />
7  </a>
8</p>
9
10Allows you to manage the orientation of your app's interface.
11
12# API documentation
13
14- [Documentation for the main branch](https://github.com/expo/expo/blob/main/docs/pages/versions/unversioned/sdk/screen-orientation.mdx)
15- [Documentation for the latest stable release](https://docs.expo.dev/versions/latest/sdk/screen-orientation/)
16
17# Installation in managed Expo projects
18
19For [managed](https://docs.expo.dev/archive/managed-vs-bare/) Expo projects, please follow the installation instructions in the [API documentation for the latest stable release](https://docs.expo.dev/versions/latest/sdk/screen-orientation/). If you follow the link and there is no documentation available then this library is not yet usable within managed projects &mdash; it is likely to be included in an upcoming Expo SDK release.
20
21# Installation in bare React Native projects
22
23For bare React Native projects, you must ensure that you have [installed and configured the `expo` package](https://docs.expo.dev/bare/installing-expo-modules/) before continuing.
24
25### Add the package to your npm dependencies
26
27```
28npm install expo-screen-orientation
29```
30
31### Configure for iOS
32
33Run `npx pod-install` after installing the npm package.
34
35The default [UIInterfaceOrientationMask](https://developer.apple.com/documentation/uikit/uiinterfaceorientationmask?language=objc) mask is `UIInterfaceOrientationMaskPortrait`. You can optionally add `EXDefaultScreenOrientationMask` key in your `Info.plist` to change the default orientation mask, e.g.
36
37```xml
38<key>EXDefaultScreenOrientationMask</key>
39<string>UIInterfaceOrientationMaskAllButUpsideDown</string>
40```
41
42### Configure for Android
43
44No additional set up necessary.
45
46# Contributing
47
48Contributions are very welcome! Please refer to guidelines described in the [contributing guide](https://github.com/expo/expo#contributing).
49