To allow landscape view in a React Native app, you change your native project configuration first—iOS Info.plist keys and AndroidManifest activity attributes—then decide whether orientation should be free, locked, or app-controlled at runtime. The most common failure is editing JavaScript without editing these native files, because orientation support must exist at the OS and app-shell level before any JS setting matters. Two steps usually cause trouble: rebuilding the native app after configuration changes, and regenerating native folders if you use Expo with prebuild.
The rest of this guide walks through each platform, then covers Expo, runtime locking, common symptoms, and verification. The instructions assume React Native 0.7x-era projects and Expo SDK 50-plus as of November 2026. Version specifics can shift, so confirm the exact keys and plugin options against your installed version's documentation.
Prerequisites Before You Touch Orientation Settings
You need three things working before orientation tweaks make sense. First, a project you can build natively—either a bare React Native project with ios and android folders, or an Expo project with a development build or prebuild workflow. Expo Go has its own orientation behavior, so testing there proves almost nothing about your production app.
Second, a way to run the app on a physical device or a simulator that actually rotates. Some emulators are locked to portrait at the host level; a stuck simulator will make you chase a configuration bug that doesn't exist.
Third, a decision about scope. Do you want the whole app to rotate, specific screens only, or a media player that flips while everything else stays upright? That decision drives whether you touch native config only, or native config plus a runtime library. Changing your mind later means redoing the native step, so settle it now.
One more warning that saves hours: if you use expo prebuild or a managed workflow that regenerates native folders, any direct edits to Info.plist or AndroidManifest.xml get overwritten. In that case you must express orientation settings through app.json/app.config.js plugins instead—more on that below.
How Orientation Actually Works in React Native
It helps to know what's deciding your layout. On iOS, the operating system asks the app's root view controller which orientations it permits. That list comes from UISupportedInterfaceOrientations in Info.plist. If a screen's orientation isn't in that list, iOS won't rotate, no matter what JavaScript does. iPad adds a wrinkle: unless the app declares UIRequiresFullScreen or supports all four orientations, iPad can enter Slide Over and Split View, and Apple's guidelines expect iPad apps to support all orientations.
On Android, each Activity in the manifest can declare android:screenOrientation. The value unspecified lets the system honor the device sensor and user rotation lock. Values like portrait or sensorPortrait force a fixed behavior. By default, React Native's template sets the main activity to unspecified, but many teams pin it to portrait early and forget.
React Native's JS layer doesn't grant orientation permission—it only reads and requests changes. The built-in Dimensions API reports current width and height, which swap on rotation, but it can't unlock a screen Android or iOS has locked. That's why the native files are step one and runtime libraries are step two.
Step-by-Step for iOS: Info.plist and Screen Wrangling
iOS has the most traps, because rotation depends on the device family, the modal stack, and how your root view controller reports supported orientations.
1: Open ios/YourAppName/Info.plist in Xcode or a text editor. 2: Find or add the UISupportedInterfaceOrientations array. For full freedom, include UIInterfaceOrientationPortrait, UIInterfaceOrientationLandscapeLeft, and UIInterfaceOrientationLandscapeRight. 3: If you support iPad, also set UISupportedInterfaceOrientations~ipad to all four values, including UIInterfaceOrientationPortraitUpsideDown. Alternatively, set UIRequiresFullScreen to YES to opt out of multitasking, though that limits the app to full-screen presentation. 4: If you're restricting landscape on purpose, remove landscape values here rather than trying to disable them in JS. 5: Clean and rebuild: in Xcode, Product → Clean Build Folder, then rebuild. In a terminal workflow, cd ios && pod install, then rebuild from Xcode or your normal build task.
The success check: run on a device or simulator, rotate physically or with the simulator's rotation command, and confirm the app's root content reflows to landscape. If it stays locked while other apps rotate, the plist change didn't take or the build didn't pick it up.
The failure mode worth knowing: iOS uses the root view controller's supported-orientation method. If a library or custom navigation setup overrides that method and returns portrait only, your plist will look right and the app will still refuse to rotate. If you use React Navigation or React Native Screens, screen-level orientation options can be part of the fix—but they still can't grant an orientation the plist doesn't allow.
Step-by-Step for Android: Manifest Attributes and Activity Behavior
Android's config is smaller but has its own gotchas around which activity owns rotation.
1: Open android/app/src/main/AndroidManifest.xml. 2: Locate the for your main activity, usually .MainActivity. 3: Set or confirm android:screenOrientation="unspecified" for sensor-driven freedom. If you want only sideways, sensorLandscape limits it; landscape locks it outright. 4: Check the tag and any other activities with orientation attributes. A stray portrait on an activity that hosts your UI will override expectations. 5: Also check the device's own auto-rotate setting and the app's system settings—Android can lock rotation globally, and that behavior varies by manufacturer. 6: Rebuild and reinstall. Manifest changes don't hot-reload; a rebuild is required.
Success check: rotate the device and confirm the activity reflows. Then open Recents, tap a different app, and return. Developers sometimes find rotation works on first launch but the activity recreates and resets to a previous orientation—Android destroys and recreates activities on rotation by default. If your state resets, that's the activity recreation issue, not an orientation permission issue.
Failure modes to know: some Samsung and Xiaomi builds interpret unspecified differently under aggressive battery or rotation settings. If both plist and manifest look right but a single vendor device misbehaves, test another device before rewriting your config.
Expo Projects: app.json, app.config.js, and Prebuild Reality
Expo changes the workflow because native folders may be generated. Use the orientation key in app.json or app.config.js: "default" allows any orientation, "portrait" locks upright, and "landscape" locks sideways. On iOS, this translates to UISupportedInterfaceOrientations; on Android, it sets screenOrientation on the main activity.
The catch: in the managed workflow with Expo Go, the orientation key only takes effect in development builds or when you build for the store. In Expo Go, the host app's orientation settings apply. For anything beyond basic rotation, use a development build so your config is real.
If you need more granularity—say, portrait by default but a video screen that can flip—set orientation: "default" globally, then control per-screen in JS. Add the expo-screen-orientation package, call ScreenOrientation.lockAsync and unlockAsync around the relevant components. On iOS, you must add the screen orientation plugin to your config so the native plist gets the full orientation set; the plugin exists precisely because the runtime library can't grant orientations the plist doesn't list.
Success check for Expo: build a development or production build, not Expo Go, and rotate. Then navigate to a locked screen and confirm it holds orientation, and unlock on exit.
The failure mode: running expo prebuild, hand-editing the generated native files, then running prebuild again and losing the edits. Express all orientation changes in config or plugins, and re-run the build.
Runtime Control: Locking, Watching, and Per-Screen Orientation
Once native config allows the full orientation set, JS can decide when to use it. The common approaches are React Native's built-in Dimensions for reading, react-native-orientation-locker for bare projects, and expo-screen-orientation for Expo. They share a pattern: listen for changes to prevent layout glitches, and lock or unlock explicitly.
The mechanism matters here. When you lock orientation at runtime, the library typically calls native APIs that set the device's supported orientation for the current view controller or activity. That's why an orientation not listed in Info.plist or the manifest cannot be locked into at runtime—the library's request just fails or is ignored.
A worked scenario: you want portrait navigation but a landscape-only video screen. Set global config to allow all orientations, then in the video screen's mount, lock to landscape; on unmount, lock back to portrait or unlock. Also handle the intermediate state: if the user rotates the device while the video screen is loading, listen for dimensions change and reapply layout rather than assuming a fixed orientation.
Edge case: some teams lock orientation to prevent a modal from rotating, then forget to unlock when the modal closes, leaving the app stuck sideways on the next screen. The reversible fix is to always pair every lock call with a corresponding unlock in the cleanup function.
Common Symptoms and Their Likely Causes
When landscape "doesn't work," the symptom usually points at a specific layer. Use these checks in order, starting with the most reversible.
Works on Android, not iOS: the Info.plist orientation array is missing landscape values, or iOS's root view controller filters them out. Check plist first; check screen controller next. Works on iOS, not Android: the manifest's main activity still has portrait, or the device's system rotation lock is on. Toggle the device toggle to confirm. JS changes have no effect after rebuild: native folders are generated (Expo prebuild), so your direct edits were overwritten. Move the setting into config. Rotates but layout breaks or state resets: this is expected Android activity recreation. Handle state preservation or config changes. App rotates while the device is locked: android:screenOrientation="sensor" or sensorLandscape ignores the user's rotation lock on some devices—use unspecified if you want the user in control. iPad shows a small window or won't rotate in multitasking: the app lacks UISupportedInterfaceOrientations~ipad or UIRequiresFullScreen.
Stop condition: if both platform configs look correct, you've rebuilt, tested on two devices, and one platform still refuses to rotate, the issue is almost certainly in navigation library overrides or a custom native module. That's the point to bring in a colleague familiar with the navigation stack or the native project—debugging this from docs alone is unreliable.
Verifying Success Across Simulator and Device
Verification should be boringly methodical, because orientation bugs hide in test setup.
1: Rotate the physical device or use the simulator's rotation command. Confirm the root content reflows and the status bar indicator (Android) or layout swap (iOS) is obvious. 2: Rotate back. Confirm the app returns upright without freezing or dropping state unexpectedly. 3: Open a locked screen and rotate. Confirm it holds. Leave the screen and rotate again. Confirm it unlocks. 4: On Android, rotate with the Recents screen open and after returning. Check activity recreation. 5: On iOS, test a modal and a nested navigator screen, since presentation styles affect orientation. 6: Test on at least one physical Android device and one iPhone if possible. Emulator mismatches are common.
If all six pass, the configuration covers whole-app, runtime, and navigation-level behavior.
What to Watch When Live Testing on Older Devices
Two older behaviors still bite projects. First, Android's configuration change handling: by default the activity recreates on rotation. If your app registers listeners or holds volatile state, that recreation can drop data. The default recreation is usually the right choice; only override it if you have a specific reason and understand the lifecycle implications.
Second, iOS's modal presentations. Some presentation styles don't consult the parent's orientation, and a modal that presents from a landscape-locked screen can behave inconsistently. Test the presentation chain rather than assuming the root orientation applies everywhere.
If you're supporting Android foldables or tablets, test rotation alongside multi-window—orientation and window size interact, and a config that works on phones may behave differently in split-screen. The verification steps above still apply; just add a two-device scenario.
FAQ
Do I need to edit native files if I'm using React Navigation?
Not to grant permission—React Navigation's screen options can lock or unlock orientation per screen, but the allowed set still comes from Info.plist and the AndroidManifest. Edit native files first, then use screen options for behavior.
Does Expo Go rotate differently from a real build?
Yes. Expo Go is the host app, so it has its own orientation configuration. For anything beyond casual previews, use a development build so your orientation setting actually applies.
Can I allow landscape only for a video player?
Yes. Set the global orientation to allow all, then lock to portrait by default and unlock or lock landscape inside the video screen's lifecycle, including cleanup on unmount.
Why does the app rotate but my state reset on Android?
That's Android's default activity recreation on orientation change. It's normal; handle state preservation or configuration changes if you need to keep it.
Bottom Line
Landscape support in React Native is a native-configuration problem first and a JavaScript problem second. Set UISupportedInterfaceOrientations and the ~ipad variant on iOS, set screenOrientation="unspecified" on the main activity in Android, keep direct edits out of generated folders in Expo, then control timing with a runtime library. Rebuild after every native change, verify with a six-step check, and expect iPad multitasking and Android activity recreation to be the edge cases that surprise you.