Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[image-picker] Fix ImagePicker ignoring app's orientation (#5946)
# Why Resolve #2020. # How I've changed the` modal presentation style` for `ImagePicker` modal. Sadly, I'm not sure if it what we want. For some reason, we put there `UIModalPresentationOverFullScreen` earlier. On iOS 13 `UIModalPresentationOverFullScreen` matches to app's orientation. However, on earlier systems, it forces portrait orientation. Also, I've done some research and checked what was used in `react-native-image-picker`. They used `UIModalPresentationCurrentContext` (https://github.com/react-native-community/react-native-image-picker/blob/085d0b7d087f603bea530be2cb94cf3c1719f036/ios/ImagePickerManager.m#L185). # Test Plan - https://snack.expo.io/@lukaszkosmaty/github---image-picker---fix-landscape-orientation - now ImagePicker can be shown in landscape orientation.
- Loading branch information