Skip to content

Commit bd68019

Browse files
authored
Upgrade to Expo48 (#413)
1 parent 569ba96 commit bd68019

100 files changed

Lines changed: 916 additions & 1588 deletions

File tree

Some content is hidden

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

blank/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"dependencies": {
3-
"expo": "^47.0.0",
4-
"react": "18.1.0",
5-
"react-dom": "18.1.0",
6-
"react-native": "0.70.5",
3+
"expo": "^48.0.7",
4+
"react": "18.2.0",
5+
"react-dom": "18.2.0",
6+
"react-native": "0.71.3",
77
"react-native-web": "~0.18.7"
88
},
99
"devDependencies": {

navigation/package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@
55
"@react-navigation/bottom-tabs": "^6.4.0",
66
"@react-navigation/native": "^6.0.13",
77
"@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",
8+
"expo": "^48.0.7",
9+
"expo-asset": "~8.9.1",
10+
"expo-constants": "~14.2.1",
11+
"expo-font": "~11.1.1",
12+
"expo-linking": "~4.0.1",
13+
"expo-splash-screen": "~0.18.1",
1414
"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",
15+
"expo-web-browser": "~12.1.1",
16+
"react": "18.2.0",
17+
"react-dom": "18.2.0",
18+
"react-native": "0.71.3",
19+
"react-native-gesture-handler": "~2.9.0",
20+
"react-native-reanimated": "~2.14.4",
21+
"react-native-safe-area-context": "4.5.0",
22+
"react-native-screens": "~3.20.0",
2323
"react-native-web": "~0.18.7"
2424
},
2525
"devDependencies": {

upgrade-dependencies.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
if [ "$1" == "" ] || [ "$1" == "--help" ]; then
44
echo "Available flags:"
55
echo "--help"
6-
echo "--run-expo-upgrade - run yarn and expo-cli upgrade to update to latest SDK on all examples"
6+
echo "--run-expo-upgrade - run yarn to add latest Expo and npx expo install --fix upgrade to update to latest SDK on all examples"
77
echo "--run-fix-dependencies - run npx expo install --fix on all repos"
88
exit 0
99
fi
1010

1111
if [ "$1" == "--run-expo-upgrade" ]; then
1212
echo "Upgrading all projects to the latest SDK..."
13-
echo "For each example, this will run `yarn` and then run `expo-cli upgrade`, accepting all defaults."
13+
echo "For each example, this will run `yarn` to add latest Expo and then run `npx expo install --fix`, accepting all defaults."
1414
echo "Upgrade logs will be written to .sdk-upgrade-logs."
1515

1616
mkdir ./.sdk-upgrade-logs
@@ -20,14 +20,14 @@ if [ "$1" == "--run-expo-upgrade" ]; then
2020
echo "• Run yarn"
2121
(cd $DIRNAME && yarn --silent) # If yarn fails spectacularly, we'll see evidence in the logs for expo upgrade
2222
echo "• Run expo upgrade"
23-
(cd $DIRNAME && echo y | expo-cli upgrade > ../.sdk-upgrade-logs/$DIRNAME.txt)
23+
(cd $DIRNAME && yarn add expo@latest && npx expo install --fix > ../.sdk-upgrade-logs/$DIRNAME.txt)
2424
done
2525

2626
# yarn workspaces has example(s) inside of app folder
2727
echo "• Run expo upgrade on apps inside with-yarn-workspaces"
2828
mkdir ./.sdk-upgrade-logs/with-yarn-workspaces
2929
for d in with-yarn-workspaces/apps/*/ ; do
30-
(cd $DIRNAME && echo y | expo-cli upgrade > ../.sdk-upgrade-logs/$DIRNAME.txt)
30+
(cd $DIRNAME && yarn add expo@latest && npx expo install --fix > ../.sdk-upgrade-logs/with-yarn-workspaces/$DIRNAME.txt)
3131
done
3232

3333
echo "Upgrades complete! Check .sdk-upgrade-logs for results. Be sure to correct any errors or warnings."

with-apollo/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
"@apollo/client": "^3.4.16",
44
"@apollo/link-context": "^2.0.0-beta.3",
55
"@react-native-picker/picker": "2.4.8",
6-
"expo": "^47.0.0",
6+
"expo": "^48.0.7",
77
"graphql": "^15.0.0",
8-
"react": "18.1.0",
9-
"react-dom": "18.1.0",
10-
"react-native": "0.70.5",
8+
"react": "18.2.0",
9+
"react-dom": "18.2.0",
10+
"react-native": "0.71.3",
1111
"react-native-web": "~0.18.7"
1212
},
1313
"devDependencies": {

with-auth0/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"dependencies": {
3-
"expo": "^47.0.0",
4-
"expo-auth-session": "~3.7.2",
5-
"expo-random": "~13.0.0",
3+
"expo": "^48.0.7",
4+
"expo-auth-session": "~4.0.3",
5+
"expo-random": "~13.1.1",
66
"jwt-decode": "2.2.0",
7-
"react": "18.1.0",
8-
"react-dom": "18.1.0",
9-
"react-native": "0.70.5",
7+
"react": "18.2.0",
8+
"react-dom": "18.2.0",
9+
"react-native": "0.71.3",
1010
"react-native-web": "~0.18.7"
1111
},
1212
"devDependencies": {

with-aws-storage-upload/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
"@aws-amplify/auth": "^4.3.11",
44
"@aws-amplify/core": "^4.3.3",
55
"@aws-amplify/storage": "^4.4.4",
6-
"@react-native-async-storage/async-storage": "~1.17.3",
7-
"@react-native-community/netinfo": "9.3.5",
6+
"@react-native-async-storage/async-storage": "1.17.11",
7+
"@react-native-community/netinfo": "9.3.7",
88
"aws-amplify": "^4.3.3",
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",
9+
"expo": "^48.0.7",
10+
"expo-clipboard": "~4.1.2",
11+
"expo-constants": "~14.2.1",
12+
"expo-image-picker": "~14.1.1",
13+
"react": "18.2.0",
14+
"react-dom": "18.2.0",
15+
"react-native": "0.71.3",
1616
"react-native-web": "~0.18.7"
1717
},
1818
"devDependencies": {

with-camera/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"dependencies": {
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",
3+
"expo": "^48.0.7",
4+
"expo-camera": "~13.2.1",
5+
"react": "18.2.0",
6+
"react-dom": "18.2.0",
7+
"react-native": "0.71.3",
88
"react-native-web": "~0.18.7"
99
},
1010
"devDependencies": {

with-custom-font/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"dependencies": {
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",
3+
"expo": "^48.0.7",
4+
"expo-font": "~11.1.1",
5+
"expo-splash-screen": "~0.18.1",
6+
"react": "18.2.0",
7+
"react-dom": "18.2.0",
8+
"react-native": "0.71.3",
99
"react-native-web": "~0.18.7"
1010
},
1111
"devDependencies": {

with-dev-client/android/.gitignore

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,5 @@ local.properties
1111
*.iml
1212
*.hprof
1313

14-
# BUCK
15-
buck-out/
16-
\.buckd/
17-
*.keystore
18-
!debug.keystore
19-
2014
# Bundle artifacts
2115
*.jsbundle

with-dev-client/android/app/BUCK

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

0 commit comments

Comments
 (0)