Skip to content

Commit

Permalink
Fix splash config (#2452)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
estrattonbailey authored Jan 8, 2024
1 parent cb9ed35 commit c1e8abf
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions app.config.js
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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,
Expand All @@ -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: {
Expand Down Expand Up @@ -102,10 +107,8 @@ module.exports = function () {
},
],
splash: {
dark: {
image: './assets/splash-dark.png',
backgroundColor: '#001429',
},
...SPLASH_CONFIG,
dark: DARK_SPLASH_CONFIG,
},
},
web: {
Expand Down

0 comments on commit c1e8abf

Please sign in to comment.