Skip to content

Commit 1aa0996

Browse files
committed
chore: update to expo sdk 52
1 parent 4fb7257 commit 1aa0996

File tree

11 files changed

+6202
-6517
lines changed

11 files changed

+6202
-6517
lines changed

apps/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
},
5151
"dependencies": {
5252
"@antfu/ni": "^0.21.4",
53-
"@babel/core": "^7.22.1",
53+
"@babel/core": "^7.26.0",
5454
"@babel/parser": "^7.22.6",
5555
"@babel/plugin-transform-typescript": "^7.22.5",
5656
"chalk": "5.2.0",

apps/docs/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@
2121
"@radix-ui/react-dropdown-menu": "^2.0.6",
2222
"@radix-ui/react-slot": "^1.0.2",
2323
"@rnr/reusables": "workspace:*",
24-
"@types/react": "~18.2.79",
24+
"@types/react": "~18.3.12",
2525
"@types/react-dom": "^18.2.19",
2626
"astro": "^4.4.9",
2727
"class-variance-authority": "^0.7.0",
2828
"clsx": "^2.1.0",
2929
"lucide-react": "^0.334.0",
30-
"react": "^18.2.0",
31-
"react-dom": "^18.2.0",
30+
"react": "18.3.1",
31+
"react-dom": "18.3.1",
3232
"sharp": "^0.32.5",
3333
"tailwind-merge": "^2.2.1",
3434
"tailwindcss": "3.3.5",

apps/showcase/app/_layout.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { BottomSheetModalProvider } from '@gorhom/bottom-sheet';
22
import AsyncStorage from '@react-native-async-storage/async-storage';
3-
import { Theme, ThemeProvider } from '@react-navigation/native';
3+
import { Theme, ThemeProvider, DefaultTheme, DarkTheme } from '@react-navigation/native';
44
import { PortalHost } from '@rn-primitives/portal';
55
import { DeprecatedUi } from '@rnr/reusables';
66
import { SplashScreen, Stack } from 'expo-router';
@@ -17,11 +17,11 @@ import { useColorScheme } from '~/lib/useColorScheme';
1717
const { ToastProvider } = DeprecatedUi;
1818

1919
const LIGHT_THEME: Theme = {
20-
dark: false,
20+
...DefaultTheme,
2121
colors: NAV_THEME.light,
2222
};
2323
const DARK_THEME: Theme = {
24-
dark: true,
24+
...DarkTheme,
2525
colors: NAV_THEME.dark,
2626
};
2727

apps/showcase/nativewind-env.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/// <reference types="nativewind/types" />
2+
3+
// NOTE: This file should not be edited and should be committed with your source code. It is generated by NativeWind.

apps/showcase/package.json

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
"@gorhom/bottom-sheet": "^4.6.0",
1818
"@hookform/resolvers": "^3.3.4",
1919
"@react-native-async-storage/async-storage": "1.23.1",
20-
"@react-native-community/slider": "4.5.2",
21-
"@react-navigation/material-top-tabs": "^6.6.5",
22-
"@react-navigation/native": "^6.0.2",
20+
"@react-native-community/slider": "4.5.5",
21+
"@react-navigation/material-top-tabs": "^7.0.0",
22+
"@react-navigation/native": "^7.0.0",
2323
"@rn-primitives/aspect-ratio": "~1.1.0",
2424
"@rn-primitives/collapsible": "~1.1.0",
2525
"@rn-primitives/label": "~1.1.0",
@@ -29,47 +29,47 @@
2929
"@rn-primitives/toolbar": "~1.1.0",
3030
"@rn-primitives/types": "~1.1.0",
3131
"@rnr/reusables": "workspace:*",
32-
"@shopify/flash-list": "1.6.4",
32+
"@shopify/flash-list": "1.7.1",
3333
"@tanstack/react-table": "^8.11.7",
3434
"class-variance-authority": "^0.7.0",
3535
"clsx": "^2.1.0",
36-
"expo": "^51.0.24",
37-
"expo-blur": "~13.0.2",
38-
"expo-clipboard": "~6.0.3",
39-
"expo-font": "~12.0.9",
40-
"expo-haptics": "~13.0.1",
41-
"expo-image": "~1.12.13",
42-
"expo-linear-gradient": "~13.0.2",
43-
"expo-linking": "~6.3.1",
44-
"expo-navigation-bar": "~3.0.7",
45-
"expo-router": "~3.5.20",
46-
"expo-splash-screen": "~0.27.5",
47-
"expo-status-bar": "~1.12.1",
48-
"expo-system-ui": "~3.0.7",
36+
"expo": "^52.0.6",
37+
"expo-blur": "~14.0.1",
38+
"expo-clipboard": "~7.0.0",
39+
"expo-font": "~13.0.1",
40+
"expo-haptics": "~14.0.0",
41+
"expo-image": "~2.0.0",
42+
"expo-linear-gradient": "~14.0.1",
43+
"expo-linking": "~7.0.2",
44+
"expo-navigation-bar": "~4.0.2",
45+
"expo-router": "~4.0.5",
46+
"expo-splash-screen": "~0.29.9",
47+
"expo-status-bar": "~2.0.0",
48+
"expo-system-ui": "~4.0.2",
4949
"lucide-react-native": "^0.378.0",
5050
"nativewind": "^4.0.33",
51-
"react": "18.2.0",
52-
"react-dom": "18.2.0",
51+
"react": "18.3.1",
52+
"react-dom": "18.3.1",
5353
"react-hook-form": "^7.49.2",
54-
"react-native": "0.74.3",
54+
"react-native": "0.76.1",
5555
"react-native-calendars": "^1.1302.0",
56-
"react-native-gesture-handler": "~2.16.2",
57-
"react-native-pager-view": "6.3.0",
58-
"react-native-reanimated": "~3.10.1",
59-
"react-native-safe-area-context": "4.10.5",
60-
"react-native-screens": "~3.31.1",
61-
"react-native-svg": "15.2.0",
56+
"react-native-gesture-handler": "~2.20.2",
57+
"react-native-pager-view": "6.4.1",
58+
"react-native-reanimated": "~3.16.1",
59+
"react-native-safe-area-context": "4.12.0",
60+
"react-native-screens": "^4.0.0",
61+
"react-native-svg": "15.8.0",
6262
"react-native-tab-view": "^3.5.2",
6363
"react-native-toast-message": "^2.2.0",
64-
"react-native-web": "~0.19.6",
64+
"react-native-web": "~0.19.13",
6565
"tailwind-merge": "^2.2.1",
6666
"tailwindcss-animate": "^1.0.7",
6767
"zod": "^3.22.4",
6868
"zustand": "^4.4.7"
6969
},
7070
"devDependencies": {
71-
"@babel/core": "^7.20.0",
72-
"@types/react": "~18.2.79",
71+
"@babel/core": "^7.26.0",
72+
"@types/react": "~18.3.12",
7373
"tailwindcss": "3.3.5",
7474
"typescript": "^5.3.3"
7575
},

apps/showcase/tsconfig.json

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,20 @@
33
"compilerOptions": {
44
"baseUrl": ".",
55
"paths": {
6-
"~/*": ["./*"]
6+
"~/*": [
7+
"./*"
8+
]
79
},
810
"jsx": "react-native",
9-
"types": ["nativewind/types"],
11+
"types": [
12+
"nativewind/types"
13+
],
1014
"target": "ES2022",
11-
"lib": ["dom", "dom.iterable", "ES2022"],
15+
"lib": [
16+
"dom",
17+
"dom.iterable",
18+
"ES2022"
19+
],
1220
"allowJs": true,
1321
"skipLibCheck": true,
1422
"noEmit": true,
@@ -21,6 +29,18 @@
2129
"incremental": true,
2230
"noUncheckedIndexedAccess": true
2331
},
24-
"include": ["index.js", "**/*.ts", "**/*.tsx", ".expo/types/**/*.ts", "expo-env.d.ts"],
25-
"exclude": ["node_modules", "build", "dist", ".expo"]
26-
}
32+
"include": [
33+
"index.js",
34+
"**/*.ts",
35+
"**/*.tsx",
36+
".expo/types/**/*.ts",
37+
"expo-env.d.ts",
38+
"nativewind-env.d.ts"
39+
],
40+
"exclude": [
41+
"node_modules",
42+
"build",
43+
"dist",
44+
".expo"
45+
]
46+
}

packages/reusables/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@
140140
"dependencies": {
141141
"@gorhom/bottom-sheet": "^4.6.0",
142142
"@hookform/resolvers": "^3.3.4",
143-
"@react-native-community/slider": "4.4.2",
144-
"@react-navigation/native": "^6.0.2",
143+
"@react-native-community/slider": "4.5.5",
144+
"@react-navigation/native": "^7.0.0",
145145
"@rn-primitives/accordion": "~1.1.0",
146146
"@rn-primitives/alert-dialog": "~1.1.0",
147147
"@rn-primitives/aspect-ratio": "~1.1.0",
@@ -172,25 +172,25 @@
172172
"@rn-primitives/toolbar": "~1.1.0",
173173
"@rn-primitives/tooltip": "~1.1.0",
174174
"@rn-primitives/types": "~1.1.0",
175-
"@shopify/flash-list": "1.6.4",
175+
"@shopify/flash-list": "1.7.1",
176176
"@tanstack/react-table": "^8.11.7",
177177
"class-variance-authority": "^0.7.0",
178178
"clsx": "^2.1.0",
179179
"lucide-react-native": "^0.378.0",
180180
"nativewind": "^4.0.33",
181181
"react-hook-form": "^7.49.2",
182182
"react-native-calendars": "^1.1302.0",
183-
"react-native-reanimated": "~3.10.1",
184-
"react-native-safe-area-context": "4.10.5",
185-
"react-native-svg": "15.2.0",
183+
"react-native-reanimated": "~3.16.1",
184+
"react-native-safe-area-context": "4.12.0",
185+
"react-native-svg": "15.8.0",
186186
"react-native-toast-message": "^2.2.0",
187187
"tailwind-merge": "^2.2.1"
188188
},
189189
"devDependencies": {
190190
"@tsconfig/recommended": "^1.0.1",
191-
"@types/react": "~18.2.79",
192-
"react": "18.2.0",
193-
"react-native": "0.74.3"
191+
"@types/react": "~18.3.12",
192+
"react": "18.3.1",
193+
"react-native": "0.76.1"
194194
},
195195
"peerDependencies": {
196196
"react": "*",

packages/templates/starter-base/app/_layout.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import '~/global.css';
22

33
import AsyncStorage from '@react-native-async-storage/async-storage';
4-
import { Theme, ThemeProvider } from '@react-navigation/native';
4+
import { DarkTheme, DefaultTheme, Theme, ThemeProvider } from '@react-navigation/native';
55
import { SplashScreen, Stack } from 'expo-router';
66
import { StatusBar } from 'expo-status-bar';
77
import * as React from 'react';
@@ -13,11 +13,11 @@ import { ThemeToggle } from '~/components/ThemeToggle';
1313
import { setAndroidNavigationBar } from '~/lib/android-navigation-bar';
1414

1515
const LIGHT_THEME: Theme = {
16-
dark: false,
16+
...DefaultTheme,
1717
colors: NAV_THEME.light,
1818
};
1919
const DARK_THEME: Theme = {
20-
dark: true,
20+
...DarkTheme,
2121
colors: NAV_THEME.dark,
2222
};
2323

packages/templates/starter-base/package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
"dependencies": {
1616
"@react-native-async-storage/async-storage": "1.23.1",
17-
"@react-navigation/native": "^6.0.2",
17+
"@react-navigation/native": "^7.0.0",
1818
"@rn-primitives/avatar": "~1.1.0",
1919
"@rn-primitives/portal": "~1.1.0",
2020
"@rn-primitives/progress": "~1.1.0",
@@ -23,31 +23,31 @@
2323
"@rn-primitives/types": "~1.1.0",
2424
"class-variance-authority": "^0.7.0",
2525
"clsx": "^2.1.0",
26-
"expo": "^51.0.24",
27-
"expo-linking": "~6.3.1",
28-
"expo-navigation-bar": "~3.0.7",
29-
"expo-router": "~3.5.20",
30-
"expo-splash-screen": "~0.27.5",
31-
"expo-status-bar": "~1.12.1",
32-
"expo-system-ui": "~3.0.7",
26+
"expo": "^52.0.6",
27+
"expo-linking": "~7.0.2",
28+
"expo-navigation-bar": "~4.0.2",
29+
"expo-router": "~4.0.5",
30+
"expo-splash-screen": "~0.29.9",
31+
"expo-status-bar": "~2.0.0",
32+
"expo-system-ui": "~4.0.2",
3333
"lucide-react-native": "^0.378.0",
3434
"nativewind": "^4.0.33",
35-
"react": "18.2.0",
36-
"react-dom": "18.2.0",
37-
"react-native": "0.74.3",
38-
"react-native-reanimated": "~3.10.1",
39-
"react-native-safe-area-context": "4.10.5",
40-
"react-native-screens": "~3.31.1",
41-
"react-native-svg": "15.2.0",
42-
"react-native-web": "~0.19.6",
35+
"react": "18.3.1",
36+
"react-dom": "18.3.1",
37+
"react-native": "0.76.1",
38+
"react-native-reanimated": "~3.16.1",
39+
"react-native-safe-area-context": "4.12.0",
40+
"react-native-screens": "^4.0.0",
41+
"react-native-svg": "15.8.0",
42+
"react-native-web": "~0.19.13",
4343
"tailwind-merge": "^2.2.1",
4444
"tailwindcss": "3.3.5",
4545
"tailwindcss-animate": "^1.0.7",
4646
"zustand": "^4.4.7"
4747
},
4848
"devDependencies": {
49-
"@babel/core": "^7.20.0",
50-
"@types/react": "~18.2.79",
49+
"@babel/core": "^7.26.0",
50+
"@types/react": "~18.3.12",
5151
"typescript": "^5.3.3"
5252
},
5353
"private": true

packages/templates/starter-base/tsconfig.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,16 @@
44
"strict": true,
55
"baseUrl": ".",
66
"paths": {
7-
"~/*": ["*"]
7+
"~/*": [
8+
"*"
9+
]
810
}
911
},
10-
"include": ["**/*.ts", "**/*.tsx", ".expo/types/**/*.ts", "expo-env.d.ts"]
11-
}
12+
"include": [
13+
"**/*.ts",
14+
"**/*.tsx",
15+
".expo/types/**/*.ts",
16+
"expo-env.d.ts",
17+
"nativewind-env.d.ts"
18+
]
19+
}

0 commit comments

Comments
 (0)