Skip to content

Commit

Permalink
feat: integrate app icon and splash for each env (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsyirvo authored Jan 6, 2024
1 parent fa3f447 commit 79aefce
Show file tree
Hide file tree
Showing 6 changed files with 765 additions and 8 deletions.
25 changes: 23 additions & 2 deletions app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,27 @@ const plugins: ExpoConfig['plugins'] = [
},
},
],
[
'app-icon-badge',
{
enabled: !isProductionEnv,
badges: [
{
text: Env.APP_ENV,
type: 'banner',
position: 'bottom',
color: 'black',
background: '#FFFFFF',
},
{
text: `V${Env.VERSION.toString()}`,
type: 'ribbon',
color: 'black',
background: '#FFFFFF',
},
],
},
],
// TODO: Once on Expo SDK 50, update to load the fonts from the native side
// [
// 'expo-font',
Expand Down Expand Up @@ -51,7 +72,7 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
splash: {
image: './assets/splash.png',
resizeMode: 'contain',
backgroundColor: '#ffffff',
backgroundColor: '#000',
},
updates: {
fallbackToCacheTimeout: 0,
Expand All @@ -64,7 +85,7 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
android: {
adaptiveIcon: {
foregroundImage: './assets/adaptive-icon.png',
backgroundColor: '#FFFFFF',
backgroundColor: '#000',
},
package: Env.PACKAGE,
},
Expand Down
Binary file modified assets/adaptive-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@
"@types/react-navigation": "3.4.0",
"@types/semver": "7.5.6",
"@types/sharp": "0.31.0",
"app-icon-badge": "0.0.15",
"babel-plugin-root-import": "6.6.0",
"babel-plugin-transform-remove-console": "6.9.4",
"cross-env": "7.0.3",
Expand Down
Loading

0 comments on commit 79aefce

Please sign in to comment.