Skip to content

Commit b135e10

Browse files
committed
chore(example): upgrade to Expo SDK 55
1 parent 5b2f966 commit b135e10

6 files changed

Lines changed: 3267 additions & 6763 deletions

File tree

Example/App.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { StatusBar } from "expo-status-bar";
2+
import { GestureHandlerRootView } from "react-native-gesture-handler";
23
import { SafeAreaProvider } from "react-native-safe-area-context";
34

45
import useCachedResources from "./hooks/useCachedResources";
@@ -13,10 +14,12 @@ export default function App() {
1314
return null;
1415
} else {
1516
return (
16-
<SafeAreaProvider>
17-
<Navigation colorScheme={colorScheme} />
18-
<StatusBar />
19-
</SafeAreaProvider>
17+
<GestureHandlerRootView style={{ flex: 1 }}>
18+
<SafeAreaProvider>
19+
<Navigation colorScheme={colorScheme} />
20+
<StatusBar />
21+
</SafeAreaProvider>
22+
</GestureHandlerRootView>
2023
);
2124
}
2225
}

Example/app.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
},
2828
"web": {
2929
"favicon": "./assets/images/favicon.png"
30-
}
30+
},
31+
"plugins": ["expo-asset", "expo-font", "expo-web-browser"]
3132
}
3233
}

Example/babel.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@ module.exports = function (api) {
22
api.cache(true);
33
return {
44
presets: ["babel-preset-expo"],
5-
plugins: ["react-native-reanimated/plugin"],
65
};
76
};

Example/navigation/LinkingConfiguration.ts

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,15 @@ import * as Linking from "expo-linking";
1010
import { RootStackParamList } from "../types";
1111

1212
const linking: LinkingOptions<RootStackParamList> = {
13-
prefixes: [Linking.makeUrl("/")],
13+
prefixes: [Linking.createURL("/")],
1414
config: {
1515
screens: {
1616
Root: {
1717
screens: {
18-
TabOne: {
19-
screens: {
20-
Basic: "basic",
21-
},
22-
},
23-
TabTwo: {
24-
screens: {
25-
Swipeable: "swipeable",
26-
},
27-
},
18+
Basic: "basic",
19+
Nested: "nested",
20+
Swipeable: "swipeable",
21+
Horizontal: "horizontal",
2822
},
2923
},
3024
NotFound: "*",

Example/package.json

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -14,37 +14,38 @@
1414
"preset": "jest-expo"
1515
},
1616
"dependencies": {
17-
"@expo/vector-icons": "^13.0.0",
17+
"@expo/vector-icons": "^15.0.2",
1818
"@react-navigation/bottom-tabs": "^6.0.5",
1919
"@react-navigation/native": "^6.0.2",
2020
"@react-navigation/native-stack": "^6.1.0",
21-
"expo": "^48.0.0",
22-
"expo-asset": "~8.9.1",
23-
"expo-constants": "~14.2.1",
24-
"expo-font": "~11.1.1",
25-
"expo-linking": "~4.0.1",
26-
"expo-splash-screen": "~0.18.1",
27-
"expo-status-bar": "~1.4.4",
28-
"expo-system-ui": "~2.2.1",
29-
"expo-web-browser": "~12.1.1",
30-
"react": "18.2.0",
31-
"react-dom": "18.2.0",
32-
"react-native": "0.71.3",
33-
"react-native-gesture-handler": "~2.9.0",
34-
"react-native-reanimated": "~2.14.4",
35-
"react-native-safe-area-context": "4.5.0",
36-
"react-native-screens": "~3.20.0",
21+
"expo": "^55.0.8",
22+
"expo-asset": "~55.0.10",
23+
"expo-constants": "~55.0.9",
24+
"expo-font": "~55.0.4",
25+
"expo-linking": "~55.0.8",
26+
"expo-splash-screen": "~55.0.12",
27+
"expo-status-bar": "~55.0.4",
28+
"expo-system-ui": "~55.0.10",
29+
"expo-web-browser": "~55.0.10",
30+
"react": "19.2.0",
31+
"react-dom": "19.2.0",
32+
"react-native": "0.83.2",
33+
"react-native-gesture-handler": "~2.30.0",
34+
"react-native-reanimated": "4.2.1",
35+
"react-native-safe-area-context": "~5.6.2",
36+
"react-native-screens": "~4.23.0",
3737
"react-native-swipeable-item": "^2.0.2",
38-
"react-native-web": "~0.18.11"
38+
"react-native-web": "^0.21.0",
39+
"react-native-worklets": "0.7.2"
3940
},
4041
"devDependencies": {
41-
"@babel/core": "^7.20.0",
42-
"@types/react": "~18.0.27",
42+
"@babel/core": "^7.29.0",
43+
"@types/react": "~19.2.10",
4344
"@types/react-native": "~0.66.13",
44-
"jest": "^29.2.1",
45-
"jest-expo": "^48.0.0",
45+
"jest": "~29.7.0",
46+
"jest-expo": "~55.0.11",
4647
"react-test-renderer": "17.0.2",
47-
"typescript": "^4.9.4"
48+
"typescript": "~5.9.2"
4849
},
4950
"private": true
5051
}

0 commit comments

Comments
 (0)