Skip to content

Commit e7d28d9

Browse files
committed
chore: upgrade example app
1 parent d26c7e6 commit e7d28d9

File tree

11 files changed

+2533
-7483
lines changed

11 files changed

+2533
-7483
lines changed

example/.gitignore

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files
2+
3+
# dependencies
4+
node_modules/
5+
6+
# Expo
7+
.expo/
8+
dist/
9+
web-build/
10+
expo-env.d.ts
11+
12+
# Native
13+
.kotlin/
14+
*.orig.*
15+
*.jks
16+
*.p8
17+
*.p12
18+
*.key
19+
*.mobileprovision
20+
21+
# Metro
22+
.metro-health-check*
23+
24+
# debug
25+
npm-debug.*
26+
yarn-debug.*
27+
yarn-error.*
28+
29+
# macOS
30+
.DS_Store
31+
*.pem
32+
33+
# local env files
34+
.env*.local
35+
36+
# typescript
37+
*.tsbuildinfo

example/App.js

Lines changed: 0 additions & 1 deletion
This file was deleted.
File renamed without changes.

example/app.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,21 @@
66
"orientation": "portrait",
77
"icon": "./assets/icon.png",
88
"userInterfaceStyle": "light",
9+
"newArchEnabled": true,
910
"splash": {
10-
"image": "./assets/splash.png",
11+
"image": "./assets/splash-icon.png",
1112
"resizeMode": "contain",
1213
"backgroundColor": "#ffffff"
1314
},
14-
"assetBundlePatterns": ["**/*"],
1515
"ios": {
1616
"supportsTablet": true
1717
},
1818
"android": {
1919
"adaptiveIcon": {
2020
"foregroundImage": "./assets/adaptive-icon.png",
2121
"backgroundColor": "#ffffff"
22-
}
22+
},
23+
"edgeToEdgeEnabled": true
2324
},
2425
"web": {
2526
"favicon": "./assets/favicon.png"

example/assets/splash-icon.png

17.1 KB
Loading

example/assets/splash.png

-46.2 KB
Binary file not shown.

example/babel.config.js

Lines changed: 0 additions & 22 deletions
This file was deleted.

example/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { registerRootComponent } from "expo";
2+
3+
import App from "./App";
4+
5+
// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
6+
// It also ensures that whether you load the app in Expo Go or in a native build,
7+
// the environment is set up appropriately
8+
registerRootComponent(App);

example/package.json

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,28 @@
11
{
22
"name": "example",
33
"version": "1.0.0",
4-
"main": "node_modules/expo/AppEntry.js",
4+
"main": "index.ts",
55
"scripts": {
66
"start": "expo start",
77
"android": "expo start --android",
88
"ios": "expo start --ios",
99
"web": "expo start --web"
1010
},
1111
"dependencies": {
12-
"expo": "~48.0.15",
13-
"expo-status-bar": "~1.4.4",
14-
"react": "18.2.0",
15-
"react-dom": "18.2.0",
16-
"react-native": "0.71.8",
17-
"react-native-safe-area-context": "4.5.0",
18-
"react-native-web": "~0.18.10",
19-
"react-syntax-highlighter": "15.5.0",
20-
"webpack": "5.94.0"
12+
"@expo/metro-runtime": "~5.0.4",
13+
"expo": "~53.0.13",
14+
"expo-status-bar": "~2.2.3",
15+
"react": "19.0.0",
16+
"react-dom": "19.0.0",
17+
"react-native": "0.79.4",
18+
"react-native-safe-area-context": "5.4.0",
19+
"react-native-web": "^0.20.0",
20+
"react-syntax-highlighter": "^15.6.1"
2121
},
2222
"devDependencies": {
23-
"@babel/core": "7.22.1",
24-
"@babel/preset-env": "7.22.4",
25-
"@expo/webpack-config": "18.0.1",
26-
"@types/react": "18.2.8",
27-
"@types/react-native": "0.72.2",
28-
"@types/react-syntax-highlighter": "15.5.7",
29-
"babel-loader": "9.0.0",
30-
"babel-plugin-module-resolver": "5.0.0",
31-
"react-test-renderer": "18.2.0"
23+
"@babel/core": "^7.25.2",
24+
"@types/react": "~19.0.10",
25+
"typescript": "~5.8.3"
3226
},
3327
"private": true
3428
}

example/webpack.config.js

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)