From 6c9e1d4837e9e385da5ca0c89c28000ad25c70d8 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Tue, 24 Dec 2024 20:05:54 +0000 Subject: Unlock orientation when lightbox is open (#7257) * unlock orientation when lightbox is open * rm outer safe area view, make sure alt text is safe * restore safe area view for android 14 and below * lock orientation on launch for android * set system ui background to black when lightbox is open * reset state on relayout * catch async functions with noops * rm superfluous catches * Delay unlock until after animation * Simplify how key is determined * Make landscape backdrop opaque --------- Co-authored-by: Dan Abramov --- app.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app.config.js') diff --git a/app.config.js b/app.config.js index 404f02dde..88a71a08e 100644 --- a/app.config.js +++ b/app.config.js @@ -50,7 +50,6 @@ module.exports = function (config) { runtimeVersion: { policy: 'appVersion', }, - orientation: 'portrait', icon: './assets/app-icons/ios_icon_default_light.png', userInterfaceStyle: 'automatic', primaryColor: '#1083fe', @@ -346,6 +345,7 @@ module.exports = function (config) { }, }, ], + ['expo-screen-orientation', {initialOrientation: 'PORTRAIT_UP'}], ].filter(Boolean), extra: { eas: { -- cgit 1.4.1