Skip to content

Commit 19372e8

Browse files
authored
feat: upgrade to SDK 54 preview (#107)
1 parent 49f6ad2 commit 19372e8

File tree

6 files changed

+674
-500
lines changed

6 files changed

+674
-500
lines changed

example/example-env.d.ts

Lines changed: 57 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,57 @@
1-
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
2-
/// <reference path="../types.d.ts" />
1+
// This file is should be auto generated, you do not need to use this file
2+
3+
export * from "react-native";
4+
5+
declare module "react-native" {
6+
interface ScrollViewProps
7+
extends ViewProps,
8+
ScrollViewPropsIOS,
9+
ScrollViewPropsAndroid,
10+
Touchable {
11+
contentContainerClassName?: string;
12+
indicatorClassName?: string;
13+
}
14+
interface FlatListProps<ItemT> extends VirtualizedListProps<ItemT> {
15+
columnWrapperClassName?: string;
16+
}
17+
interface ImageBackgroundProps extends ImagePropsBase {
18+
imageClassName?: string;
19+
}
20+
interface ImagePropsBase {
21+
className?: string;
22+
cssInterop?: boolean;
23+
}
24+
interface ViewProps {
25+
className?: string;
26+
cssInterop?: boolean;
27+
}
28+
interface TextInputProps {
29+
placeholderClassName?: string;
30+
}
31+
interface TextProps {
32+
className?: string;
33+
cssInterop?: boolean;
34+
}
35+
interface SwitchProps {
36+
className?: string;
37+
cssInterop?: boolean;
38+
}
39+
interface InputAccessoryViewProps {
40+
className?: string;
41+
cssInterop?: boolean;
42+
}
43+
interface TouchableWithoutFeedbackProps {
44+
className?: string;
45+
cssInterop?: boolean;
46+
}
47+
interface StatusBarProps {
48+
className?: string;
49+
cssInterop?: boolean;
50+
}
51+
interface KeyboardAvoidingViewProps extends ViewProps {
52+
contentContainerClassName?: string;
53+
}
54+
interface ModalBaseProps {
55+
presentationClassName?: string;
56+
}
57+
}

example/package.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,15 @@
1111
"web": "expo start --web"
1212
},
1313
"dependencies": {
14-
"@expo/metro-runtime": "6.0.0-canary-20250713-8f814f8",
1514
"@tailwindcss/postcss": "^4.1.11",
16-
"expo": "54.0.0-canary-20250713-8f814f8",
15+
"expo": "54.0.0-preview.4",
1716
"expo-dev-client": "5.2.4",
1817
"expo-status-bar": "~2.2.3",
19-
"expo-system-ui": "5.0.11-canary-20250713-8f814f8",
20-
"metro-runtime": "^0.83.0",
18+
"expo-system-ui": "6.0.2",
2119
"react": "19.1.0",
2220
"react-dom": "19.1.0",
23-
"react-native": "0.80.1",
24-
"react-native-reanimated": "4.0.1",
21+
"react-native": "0.81.0",
22+
"react-native-reanimated": "4.0.2",
2523
"react-native-web": "~0.20.0",
2624
"react-native-worklets": "0.4.1",
2725
"react-refresh": "^0.17.0"

example/react-native-css-env.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
/// <reference types="../types" />
1+
// This file is different in the example, please use the auto generated file
2+
/// <reference types="./example-env" />
23

34
// NOTE: This file should not be edited and should be committed with your source code. It is generated by react-native-css. If you need to move or disable this file, please see the documentation.

example/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"src/**/*",
99
"index.js",
1010
"postcss.config.mjs",
11-
"react-native-css-env.d.ts"
11+
"react-native-css-env.d.ts",
12+
"../types.d.ts"
1213
]
1314
}

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,10 @@
147147
"debug": "^4.4.1"
148148
},
149149
"peerDependencies": {
150-
"expo": "54.0.0-canary-20250713-8f814f8",
150+
"expo": "54.0.0-preview.4",
151151
"lightningcss": ">=1.27.0",
152152
"react": "19.1.0",
153-
"react-native": "0.80.1"
153+
"react-native": "0.81.0"
154154
},
155155
"devDependencies": {
156156
"@babel/core": "^7.28.0",
@@ -164,36 +164,36 @@
164164
"@types/connect": "^3.4.38",
165165
"@types/debug": "^4.1.12",
166166
"@types/jest": "^30.0.0",
167-
"@types/react": "^19.1.8",
167+
"@types/react": "^19.1.10",
168168
"@types/react-refresh": "^0",
169169
"@types/react-test-renderer": "^19",
170170
"babel-plugin-tester": "^12.0.0",
171-
"babel-preset-expo": "13.3.0-canary-20250713-8f814f8",
171+
"babel-preset-expo": "14.0.2",
172172
"commitlint": "^19.8.1",
173173
"eas-build-cache-provider": "^16.4.2",
174174
"eslint": "^9.30.1",
175175
"eslint-config-prettier": "^10.1.5",
176176
"eslint-plugin-prettier": "^5.5.1",
177-
"expo": "54.0.0-canary-20250713-8f814f8",
177+
"expo": "54.0.0-preview.4",
178178
"jest": "^29.7.0",
179-
"jest-expo": "54.0.0-canary-20250713-8f814f8",
179+
"jest-expo": "54.0.1",
180180
"lefthook": "^1.12.2",
181181
"lightningcss": "^1.30.1",
182182
"metro-runtime": "^0.83.0",
183183
"postcss": "^8.5.6",
184184
"prettier": "^3.6.2",
185185
"react": "19.1.0",
186-
"react-native": "0.80.1",
186+
"react-native": "0.81.0",
187187
"react-native-builder-bob": "^0.40.13",
188-
"react-native-reanimated": "4.0.1",
189-
"react-native-safe-area-context": "5.4.0",
188+
"react-native-reanimated": "4.0.2",
189+
"react-native-safe-area-context": "5.6.0",
190190
"react-native-worklets": "0.4.1",
191191
"react-refresh": "^0.17.0",
192192
"react-test-renderer": "^19.1.0",
193193
"release-it": "^19.0.4",
194194
"tailwindcss": "^4.1.11",
195-
"typescript": "^5.8.3",
196-
"typescript-eslint": "^8.37.0"
195+
"typescript": "^5.9.2",
196+
"typescript-eslint": "^8.40.0"
197197
},
198198
"react-native-builder-bob": {
199199
"source": "src",

0 commit comments

Comments
 (0)