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
zio/stable
Eric Bailey 2024-01-08 16:55:47 -06:00 committed by GitHub
parent cb9ed35cf6
commit c1e8abfb77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 13 deletions

View File

@ -1,5 +1,16 @@
const pkg = require('./package.json') 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 () { module.exports = function () {
/** /**
* App version number. Should be incremented as part of a release cycle. * App version number. Should be incremented as part of a release cycle.
@ -42,11 +53,7 @@ module.exports = function () {
orientation: 'portrait', orientation: 'portrait',
icon: './assets/icon.png', icon: './assets/icon.png',
userInterfaceStyle: 'automatic', userInterfaceStyle: 'automatic',
splash: { splash: SPLASH_CONFIG,
image: './assets/splash.png',
resizeMode: 'cover',
backgroundColor: '#ffffff',
},
ios: { ios: {
buildNumber: IOS_BUILD_NUMBER, buildNumber: IOS_BUILD_NUMBER,
supportsTablet: false, supportsTablet: false,
@ -67,10 +74,8 @@ module.exports = function () {
}, },
associatedDomains: ['applinks:bsky.app', 'applinks:staging.bsky.app'], associatedDomains: ['applinks:bsky.app', 'applinks:staging.bsky.app'],
splash: { splash: {
dark: { ...SPLASH_CONFIG,
image: './assets/splash-dark.png', dark: DARK_SPLASH_CONFIG,
backgroundColor: '#001429',
},
}, },
}, },
androidStatusBar: { androidStatusBar: {
@ -102,10 +107,8 @@ module.exports = function () {
}, },
], ],
splash: { splash: {
dark: { ...SPLASH_CONFIG,
image: './assets/splash-dark.png', dark: DARK_SPLASH_CONFIG,
backgroundColor: '#001429',
},
}, },
}, },
web: { web: {