Skip to content

Commit 4ce74dc

Browse files
committed
chore: update app-icon-badge to last version
1 parent d0d4a4a commit 4ce74dc

File tree

3 files changed

+26
-24
lines changed

3 files changed

+26
-24
lines changed

app.config.ts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,25 @@
11
/* eslint-disable max-lines-per-function */
22
import type { ConfigContext, ExpoConfig } from '@expo/config';
3+
import type { AppIconBadgeConfig } from 'app-icon-badge/types';
34

45
import { ClientEnv, Env } from './env';
56

7+
const appIconBadgeConfig: AppIconBadgeConfig = {
8+
enabled: Env.APP_ENV !== 'production',
9+
badges: [
10+
{
11+
text: Env.APP_ENV,
12+
type: 'banner',
13+
color: 'white',
14+
},
15+
{
16+
text: Env.VERSION.toString(),
17+
type: 'ribbon',
18+
color: 'white',
19+
},
20+
],
21+
};
22+
623
export default ({ config }: ConfigContext): ExpoConfig => ({
724
...config,
825
name: Env.NAME,
@@ -50,24 +67,7 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
5067
],
5168
'expo-localization',
5269
'expo-router',
53-
[
54-
'app-icon-badge',
55-
{
56-
enabled: Env.APP_ENV !== 'production',
57-
badges: [
58-
{
59-
text: Env.APP_ENV,
60-
type: 'banner',
61-
color: 'white',
62-
},
63-
{
64-
text: Env.VERSION.toString(),
65-
type: 'ribbon',
66-
color: 'white',
67-
},
68-
],
69-
},
70-
],
70+
['app-icon-badge', appIconBadgeConfig],
7171
],
7272
extra: {
7373
...ClientEnv,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"@hookform/resolvers": "^3.9.0",
4747
"@shopify/flash-list": "1.6.4",
4848
"@tanstack/react-query": "^5.52.1",
49-
"app-icon-badge": "^0.0.15",
49+
"app-icon-badge": "^0.1.1",
5050
"axios": "^1.7.5",
5151
"expo": "~51.0.38",
5252
"expo-constants": "~16.0.2",

pnpm-lock.yaml

Lines changed: 7 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)