Skip to content
This repository has been archived by the owner on Oct 18, 2021. It is now read-only.

Orientation changes #4

Open
pistonsky opened this issue Oct 20, 2017 · 3 comments
Open

Orientation changes #4

pistonsky opened this issue Oct 20, 2017 · 3 comments

Comments

@pistonsky
Copy link

The camera preview should rotate itself when the layout switches to landscape.

@jesouhaite08
Copy link

jesouhaite08 commented Sep 18, 2018

Any update on this? If I take a picture in landscape using takePictureAsync it is saved to the Camera Roll as portrait. The photo.exif.Orientation returns 0 for photos taken in both landscape and portrait mode. I am on an Android phone.

@jesouhaite08
Copy link

Figured out this is happening because the app.json file locks orientation to portrait. I solved this by adding Expo.ScreenOrientation.allow(Expo.ScreenOrientation.Orientation.ALL_BUT_UPSIDE_DOWN) to componentWillMount.

@daveupress
Copy link

Figured out this is happening because the app.json file locks orientation to portrait. I solved this by adding Expo.ScreenOrientation.allow(Expo.ScreenOrientation.Orientation.ALL_BUT_UPSIDE_DOWN) to componentWillMount.

Thanks! it helps..

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants