Skip to content

Commit 027677b

Browse files
authored
Update Examples to SDK 47 (expo#396)
* add warning to upgrade script * ran upgrade script on all examples * remove electron example per https://linear.app/expo/issue/ENG-6088/upgrade-expo-electron-adapter-to-work-with-recent-sdks * upgrade nav deps, fix double header * update next, three examples * upgrade more deps * regenerate dev client example native files
1 parent caaca79 commit 027677b

File tree

136 files changed

+2032
-1301
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+2032
-1301
lines changed

blank/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"dependencies": {
3-
"expo": "^46.0.0",
4-
"react": "18.0.0",
5-
"react-dom": "18.0.0",
6-
"react-native": "0.69.4",
3+
"expo": "^47.0.0",
4+
"react": "18.1.0",
5+
"react-dom": "18.1.0",
6+
"react-native": "0.70.5",
77
"react-native-web": "~0.18.7"
88
},
99
"devDependencies": {
10-
"@babel/core": "^7.18.6"
10+
"@babel/core": "^7.19.3"
1111
}
1212
}

navigation/navigation/BottomTabNavigator.js

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export default function BottomTabNavigator() {
2323
name="TabOne"
2424
component={TabOneNavigator}
2525
options={{
26+
headerShown: false,
2627
tabBarIcon: ({ color }) => (
2728
<TabBarIcon name="ios-code" color={color} />
2829
),
@@ -32,6 +33,7 @@ export default function BottomTabNavigator() {
3233
name="TabTwo"
3334
component={TabTwoNavigator}
3435
options={{
36+
headerShown: false,
3537
tabBarIcon: ({ color }) => (
3638
<TabBarIcon name="ios-code" color={color} />
3739
),

navigation/package.json

+20-20
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
{
22
"dependencies": {
33
"@expo/vector-icons": "^13.0.0",
4-
"@react-native-community/masked-view": "0.1.10",
5-
"@react-navigation/bottom-tabs": "~6.0.9",
6-
"@react-navigation/native": "~6.0.6",
7-
"@react-navigation/stack": "~6.0.11",
8-
"expo": "^46.0.0",
9-
"expo-asset": "~8.6.1",
10-
"expo-constants": "~13.2.3",
11-
"expo-font": "~10.2.0",
12-
"expo-linking": "~3.2.2",
13-
"expo-splash-screen": "~0.16.1",
14-
"expo-status-bar": "~1.4.0",
15-
"expo-web-browser": "~11.0.0",
16-
"react": "18.0.0",
17-
"react-dom": "18.0.0",
18-
"react-native": "0.69.4",
19-
"react-native-gesture-handler": "~2.5.0",
20-
"react-native-reanimated": "~2.9.1",
21-
"react-native-safe-area-context": "4.3.1",
22-
"react-native-screens": "~3.15.0",
4+
"@react-native-community/masked-view": "^0.1.11",
5+
"@react-navigation/bottom-tabs": "^6.4.0",
6+
"@react-navigation/native": "^6.0.13",
7+
"@react-navigation/stack": "^6.3.4",
8+
"expo": "^47.0.0",
9+
"expo-asset": "~8.6.2",
10+
"expo-constants": "~14.0.2",
11+
"expo-font": "~11.0.1",
12+
"expo-linking": "~3.2.3",
13+
"expo-splash-screen": "~0.17.4",
14+
"expo-status-bar": "~1.4.2",
15+
"expo-web-browser": "~12.0.0",
16+
"react": "18.1.0",
17+
"react-dom": "18.1.0",
18+
"react-native": "0.70.5",
19+
"react-native-gesture-handler": "~2.8.0",
20+
"react-native-reanimated": "~2.12.0",
21+
"react-native-safe-area-context": "4.4.1",
22+
"react-native-screens": "~3.18.0",
2323
"react-native-web": "~0.18.7"
2424
},
2525
"devDependencies": {
26-
"@babel/core": "^7.18.6"
26+
"@babel/core": "^7.19.3"
2727
}
2828
}

upgrade-dependencies.sh

+3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ if [ "$1" == "--run-expo-upgrade" ]; then
3131
done
3232

3333
echo "Upgrades complete! Check .sdk-upgrade-logs for results. Be sure to correct any errors or warnings."
34+
echo "WARNING: with-dev-client has native project files that need to be upgraded manually!"
35+
echo "Deleting ios/android folders and running prebuild will regenerate them, applying the proper URL schemes."
36+
echo "https://docs.expo.dev/development/installation/ has more info on how a bare dev client project is setup."
3437
exit 0
3538
fi
3639

with-apollo/package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
"dependencies": {
33
"@apollo/client": "^3.4.16",
44
"@apollo/link-context": "^2.0.0-beta.3",
5-
"@react-native-picker/picker": "2.4.2",
6-
"expo": "^46.0.0",
5+
"@react-native-picker/picker": "2.4.8",
6+
"expo": "^47.0.0",
77
"graphql": "^15.0.0",
8-
"react": "18.0.0",
9-
"react-dom": "18.0.0",
10-
"react-native": "0.69.4",
8+
"react": "18.1.0",
9+
"react-dom": "18.1.0",
10+
"react-native": "0.70.5",
1111
"react-native-web": "~0.18.7"
1212
},
1313
"devDependencies": {
14-
"@babel/core": "^7.18.6"
14+
"@babel/core": "^7.19.3"
1515
}
1616
}

with-auth0/package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"dependencies": {
3-
"expo": "^46.0.0",
4-
"expo-auth-session": "~3.7.1",
5-
"expo-random": "~12.3.0",
3+
"expo": "^47.0.0",
4+
"expo-auth-session": "~3.7.2",
5+
"expo-random": "~13.0.0",
66
"jwt-decode": "2.2.0",
7-
"react": "18.0.0",
8-
"react-dom": "18.0.0",
9-
"react-native": "0.69.4",
7+
"react": "18.1.0",
8+
"react-dom": "18.1.0",
9+
"react-native": "0.70.5",
1010
"react-native-web": "~0.18.7"
1111
},
1212
"devDependencies": {
13-
"@babel/core": "^7.18.6"
13+
"@babel/core": "^7.19.3"
1414
}
1515
}

with-aws-storage-upload/package.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@
44
"@aws-amplify/core": "^4.3.3",
55
"@aws-amplify/storage": "^4.4.4",
66
"@react-native-async-storage/async-storage": "~1.17.3",
7-
"@react-native-community/netinfo": "9.3.0",
7+
"@react-native-community/netinfo": "9.3.5",
88
"aws-amplify": "^4.3.3",
9-
"expo": "^46.0.0",
10-
"expo-clipboard": "~3.1.0",
11-
"expo-constants": "~13.2.3",
12-
"expo-image-picker": "~13.3.1",
13-
"react": "18.0.0",
14-
"react-dom": "18.0.0",
15-
"react-native": "0.69.4",
9+
"expo": "^47.0.0",
10+
"expo-clipboard": "~4.0.1",
11+
"expo-constants": "~14.0.2",
12+
"expo-image-picker": "~14.0.1",
13+
"react": "18.1.0",
14+
"react-dom": "18.1.0",
15+
"react-native": "0.70.5",
1616
"react-native-web": "~0.18.7"
1717
},
1818
"devDependencies": {
19-
"@babel/core": "^7.18.6"
19+
"@babel/core": "^7.19.3"
2020
}
2121
}

with-camera/package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"dependencies": {
3-
"expo": "^46.0.0",
4-
"expo-camera": "~12.3.0",
5-
"react": "18.0.0",
6-
"react-dom": "18.0.0",
7-
"react-native": "0.69.4",
3+
"expo": "^47.0.0",
4+
"expo-camera": "~13.0.0",
5+
"react": "18.1.0",
6+
"react-dom": "18.1.0",
7+
"react-native": "0.70.5",
88
"react-native-web": "~0.18.7"
99
},
1010
"devDependencies": {
11-
"@babel/core": "^7.18.6"
11+
"@babel/core": "^7.19.3"
1212
}
1313
}

with-custom-font/package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"dependencies": {
3-
"expo": "^46.0.0",
4-
"expo-font": "~10.2.0",
5-
"expo-splash-screen": "~0.16.1",
6-
"react": "18.0.0",
7-
"react-dom": "18.0.0",
8-
"react-native": "0.69.4",
3+
"expo": "^47.0.0",
4+
"expo-font": "~11.0.1",
5+
"expo-splash-screen": "~0.17.4",
6+
"react": "18.1.0",
7+
"react-dom": "18.1.0",
8+
"react-native": "0.70.5",
99
"react-native-web": "~0.18.7"
1010
},
1111
"devDependencies": {
12-
"@babel/core": "^7.18.6"
12+
"@babel/core": "^7.19.3"
1313
}
1414
}

with-dev-client/android/.gitignore

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# OSX
2+
#
3+
.DS_Store
4+
5+
# Android/IntelliJ
6+
#
7+
build/
8+
.idea
9+
.gradle
10+
local.properties
11+
*.iml
12+
*.hprof
13+
14+
# BUCK
15+
buck-out/
16+
\.buckd/
17+
*.keystore
18+
!debug.keystore
19+
20+
# Bundle artifacts
21+
*.jsbundle

0 commit comments

Comments
 (0)