about summary refs log tree commit diff
path: root/app.config.js
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-12-24 20:05:54 +0000
committerGitHub <noreply@github.com>2024-12-24 20:05:54 +0000
commit6c9e1d4837e9e385da5ca0c89c28000ad25c70d8 (patch)
tree8de94bf059fc4065cf228b63f50f23840ceda4d8 /app.config.js
parentf05962a4928e5102e6abe773e938ae8ab941a2c4 (diff)
downloadvoidsky-6c9e1d4837e9e385da5ca0c89c28000ad25c70d8.tar.zst
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 <dan.abramov@gmail.com>
Diffstat (limited to 'app.config.js')
-rw-r--r--app.config.js2
1 files changed, 1 insertions, 1 deletions
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: {