Skip to content

Commit

Permalink
maybe this
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyok committed Dec 3, 2024
1 parent 7da20b5 commit 67c7204
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions app.config.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
const pkg = require('./package.json')

const SPLASH_CONFIG = {
enableFullScreenImage_legacy: true,
}

const SPLASH_CONFIG_IOS = {
backgroundColor: '#ffffff',
image: './assets/splash.png',
resizeMode: 'cover',
enableFullScreenImage_legacy: true,
dark: DARK_SPLASH_CONFIG_IOS,
}
const DARK_SPLASH_CONFIG = {
const DARK_SPLASH_CONFIG_IOS = {
backgroundColor: '#001429',
image: './assets/splash-dark.png',
resizeMode: 'cover',
enableFullScreenImage_legacy: true,
}

const SPLASH_CONFIG_ANDROID = {
backgroundColor: '#0c7cff',
image: './assets/splash.png',
resizeMode: 'cover',
dark: DARK_SPLASH_CONFIG_ANDROID,
}
const DARK_SPLASH_CONFIG_ANDROID = {
backgroundColor: '#0f141b',
Expand Down Expand Up @@ -273,7 +277,8 @@ module.exports = function (config) {
'expo-splash-screen',
{
...SPLASH_CONFIG,
dark: DARK_SPLASH_CONFIG,
ios: SPLASH_CONFIG_IOS,
android: SPLASH_CONFIG_ANDROID,
},
],
[
Expand Down

0 comments on commit 67c7204

Please sign in to comment.