Skip to content

Orientation setting in app.json does not fully lock orientation (ex: status bar) #3001

@baryla

Description

@baryla

I have a clean installation of an expo app and I noticed some weird behaviour. While testing the App on the Expo App on iOS 11, I turned the phone landscape and saw the status bar move with the orientation even though the orientation is set to portrait in app.json. Also because of this, the tab navigation shrinks too.

Environment

System:
    OS: macOS 10.14
    Shell: 3.2.57 - /bin/bash
Binaries:
    Node: 11.4.0 - ~/.nvm/versions/node/v11.4.0/bin/node
    npm: 6.5.0 - ~/.nvm/versions/node/v11.4.0/bin/npm
IDEs:
    Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
    expo: ^31.0.3 => 31.0.6 
    react: 16.6.3 => 16.6.3 
    react-native: ^0.57.8 => 0.57.8 
    react-navigation: ^3.0.8 => 3.0.8
App:
    iOS: 11

Steps to Reproduce

  1. Turn the device landscape

Expected Behavior

The status bar should stay in a portrait orientation if the device is moved into a landscape orientation.

Actual Behavior

The status bar changes orientation to landscape.

Reproducible Demo

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions