about summary refs log tree commit diff
path: root/app.config.js
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2024-01-08 16:55:47 -0600
committerGitHub <noreply@github.com>2024-01-08 14:55:47 -0800
commitc1e8abfb77e2fa4b01e52855eec11f7fb53c32f5 (patch)
tree7d3661a13e4cd049ff3f23c2fc68fcaace66511d /app.config.js
parentcb9ed35cf6f66c8725061109a41eacf60e10a90a (diff)
downloadvoidsky-c1e8abfb77e2fa4b01e52855eec11f7fb53c32f5.tar.zst
Fix splash config (#2452)
* Don't use mask for android at all

* Handle reduced motion

* Add dark splash

* Add dark config

* Try more config

* Duplicate config

* Ensure splash config is applied
Diffstat (limited to 'app.config.js')
-rw-r--r--app.config.js29
1 files changed, 16 insertions, 13 deletions
diff --git a/app.config.js b/app.config.js
index 4f2780feb..afd6677ef 100644
--- a/app.config.js
+++ b/app.config.js
@@ -1,5 +1,16 @@
 const pkg = require('./package.json')
 
+const SPLASH_CONFIG = {
+  backgroundColor: '#ffffff',
+  image: './assets/splash.png',
+  resizeMode: 'cover',
+}
+const DARK_SPLASH_CONFIG = {
+  backgroundColor: '#001429',
+  image: './assets/splash-dark.png',
+  resizeMode: 'cover',
+}
+
 module.exports = function () {
   /**
    * App version number. Should be incremented as part of a release cycle.
@@ -42,11 +53,7 @@ module.exports = function () {
       orientation: 'portrait',
       icon: './assets/icon.png',
       userInterfaceStyle: 'automatic',
-      splash: {
-        image: './assets/splash.png',
-        resizeMode: 'cover',
-        backgroundColor: '#ffffff',
-      },
+      splash: SPLASH_CONFIG,
       ios: {
         buildNumber: IOS_BUILD_NUMBER,
         supportsTablet: false,
@@ -67,10 +74,8 @@ module.exports = function () {
         },
         associatedDomains: ['applinks:bsky.app', 'applinks:staging.bsky.app'],
         splash: {
-          dark: {
-            image: './assets/splash-dark.png',
-            backgroundColor: '#001429',
-          },
+          ...SPLASH_CONFIG,
+          dark: DARK_SPLASH_CONFIG,
         },
       },
       androidStatusBar: {
@@ -102,10 +107,8 @@ module.exports = function () {
           },
         ],
         splash: {
-          dark: {
-            image: './assets/splash-dark.png',
-            backgroundColor: '#001429',
-          },
+          ...SPLASH_CONFIG,
+          dark: DARK_SPLASH_CONFIG,
         },
       },
       web: {