Skip to content

Commit f97e135

Browse files
yjoseasdolo
authored andcommitted
chore: update app-icon-badge to last version
1 parent 99c09ba commit f97e135

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,
@@ -58,24 +75,7 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
5875
'expo-dev-client',
5976
'expo-localization',
6077
'expo-router',
61-
[
62-
'app-icon-badge',
63-
{
64-
enabled: Env.APP_ENV !== 'production',
65-
badges: [
66-
{
67-
text: Env.APP_ENV,
68-
type: 'banner',
69-
color: 'white',
70-
},
71-
{
72-
text: Env.VERSION.toString(),
73-
type: 'ribbon',
74-
color: 'white',
75-
},
76-
],
77-
},
78-
],
78+
['app-icon-badge', appIconBadgeConfig],
7979
],
8080
extra: {
8181
...ClientEnv,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"@shopify/flash-list": "1.6.4",
6969
"@tanstack/react-query": "^5.52.1",
7070
"@testing-library/react-hooks": "^8.0.1",
71-
"app-icon-badge": "^0.0.15",
71+
"app-icon-badge": "^0.1.1",
7272
"axios": "^1.7.5",
7373
"dayjs": "^1.11.13",
7474
"expo": "~51.0.39",

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)