Skip to content

Commit cbb7010

Browse files
authored
chore: 🤖 Upgrade Expo SDK 44 to 46 (#1525)
* chore: 🤖 Upgrade Expo SDK 44 to 45 * chore: 🤖 Migrate Expo SDK 45 to 46
1 parent 7d36ea5 commit cbb7010

File tree

6 files changed

+12306
-8713
lines changed

6 files changed

+12306
-8713
lines changed

front/app.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export default {
6969
name: "1000 jours",
7070
orientation: "portrait",
7171
plugins: [
72+
"sentry-expo",
7273
[
7374
"expo-notifications",
7475
{

front/package-lock.json

Lines changed: 8376 additions & 4011 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

front/package.json

Lines changed: 52 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"build-prod:ios": "expo build:ios",
1818
"upload:android": "expo upload:android --key ./api-key-play-store.json --latest --track internal",
1919
"upload:ios": "fastlane deliver --ipa app.ipa --api_key_path ./api-key-app-store.json --force true --fix-ios-deploy false",
20-
"publish-prod": "yarn upload:android && yarn upload:ios"
20+
"publish-prod": "yarn upload:android && yarn upload:ios",
21+
"postinstall": "patch-package"
2122
},
2223
"jest": {
2324
"preset": "jest-expo",
@@ -40,11 +41,11 @@
4041
"dependencies": {
4142
"@apollo/client": "^3.4.17",
4243
"@expo/metro-config": "^0.2.8",
43-
"@expo/vector-icons": "^12.0.0",
44+
"@expo/vector-icons": "^13.0.0",
4445
"@native-html/iframe-plugin": "^2.6.1",
4546
"@native-html/table-plugin": "^5.3.1",
46-
"@react-native-async-storage/async-storage": "~1.15.0",
47-
"@react-native-community/datetimepicker": "4.0.0",
47+
"@react-native-async-storage/async-storage": "~1.17.3",
48+
"@react-native-community/datetimepicker": "6.2.0",
4849
"@react-native-community/masked-view": "<=0.1.10",
4950
"@react-native-community/picker": "^1.8.1",
5051
"@react-navigation/bottom-tabs": "6.0.9",
@@ -53,80 +54,88 @@
5354
"@socialgouv/nos1000jours-lib": "1.2.1",
5455
"babel-plugin-inline-dotenv": "^1.6.0",
5556
"date-fns": "^2.25.0",
56-
"expo": "^44.0.0",
57-
"expo-analytics-segment": "~11.1.2",
58-
"expo-application": "~4.0.1",
59-
"expo-asset": "~8.4.6",
57+
"expo": "^46.0.0",
58+
"expo-analytics-segment": "~11.2.1",
59+
"expo-application": "~4.2.2",
60+
"expo-asset": "~8.6.1",
6061
"expo-asset-utils": "^2.0.0",
61-
"expo-calendar": "~10.1.0",
62-
"expo-cli": "^4.12.12",
63-
"expo-constants": "~13.0.1",
64-
"expo-device": "~4.1.0",
65-
"expo-file-system": "~13.1.4",
66-
"expo-font": "~10.0.4",
67-
"expo-linking": "~3.0.0",
68-
"expo-localization": "~12.0.0",
69-
"expo-location": "~14.0.1",
70-
"expo-notifications": "~0.14.0",
71-
"expo-splash-screen": "~0.14.1",
72-
"expo-status-bar": "~1.2.0",
73-
"expo-updates": "~0.11.7",
74-
"expo-web-browser": "~10.1.0",
62+
"expo-calendar": "~10.3.0",
63+
"expo-constants": "~13.2.4",
64+
"expo-device": "~4.3.0",
65+
"expo-file-system": "~14.1.0",
66+
"expo-font": "~10.2.0",
67+
"expo-linking": "~3.2.2",
68+
"expo-localization": "~13.1.0",
69+
"expo-location": "~14.3.0",
70+
"expo-notifications": "~0.16.1",
71+
"expo-splash-screen": "~0.16.2",
72+
"expo-status-bar": "~1.4.0",
73+
"expo-updates": "~0.14.7",
74+
"expo-web-browser": "~11.0.0",
7575
"graphql": "^15.7.2",
76-
"jest-expo": "^44.0.0",
76+
"jest-expo": "^46.0.0",
7777
"lodash": "^4.17.21",
7878
"matomo-tracker-react-native": "0.3.0",
79-
"react": "17.0.1",
80-
"react-dom": "17.0.1",
81-
"react-native": "0.64.3",
79+
"patch": "^0.0.1",
80+
"patch-package": "^6.5.0",
81+
"postinstall-postinstall": "^2.1.0",
82+
"react": "18.0.0",
83+
"react-dom": "18.0.0",
84+
"react-native": "0.69.6",
8285
"react-native-animatable": "^1.3.3",
8386
"react-native-calendars": "^1.1268.0",
8487
"react-native-confetti": "^0.1.0",
8588
"react-native-elements": "^3.4.2",
86-
"react-native-gesture-handler": "~2.1.0",
87-
"react-native-get-random-values": "~1.7.0",
89+
"react-native-gesture-handler": "~2.5.0",
90+
"react-native-get-random-values": "~1.8.0",
8891
"react-native-indicators": "^0.17.0",
89-
"react-native-maps": "0.29.4",
90-
"react-native-pager-view": "5.4.9",
92+
"react-native-maps": "0.31.1",
93+
"react-native-pager-view": "5.4.24",
9194
"react-native-paper": "^4.10.1",
92-
"react-native-reanimated": "~2.3.1",
93-
"react-native-reanimated-carousel": "^2.4.0",
95+
"react-native-reanimated": "~2.9.1",
96+
"react-native-reanimated-carousel": "^3.1.5",
9497
"react-native-render-html": "^6.2.0",
95-
"react-native-safe-area-context": "3.3.2",
96-
"react-native-screens": "~3.10.1",
98+
"react-native-safe-area-context": "4.3.1",
99+
"react-native-screens": "~3.15.0",
97100
"react-native-snap-carousel": "^3.9.1",
98-
"react-native-svg": "12.1.1",
101+
"react-native-svg": "12.3.0",
99102
"react-native-swiper-flatlist": "^3.0.16",
100103
"react-native-tab-view": "^3.1.1",
101104
"react-native-vector-icons": "^8.1.0",
102-
"react-native-web": "0.17.1",
103-
"react-native-webview": "11.15.0",
105+
"react-native-web": "~0.18.7",
106+
"react-native-webview": "11.23.0",
104107
"reanimated-bottom-sheet": "^1.0.0-alpha.22",
105-
"sentry-expo": "^4.0.0",
108+
"sentry-expo": "~5.0.0",
106109
"uuid": "^8.3.2"
107110
},
108111
"devDependencies": {
109-
"@babel/core": "^7.12.9",
112+
"@babel/core": "^7.18.6",
110113
"@babel/preset-typescript": "^7.16.0",
111114
"@socialgouv/eslint-config-react": "^1.104.0",
112115
"@socialgouv/eslint-config-typescript": "^1.88.0",
113116
"@testing-library/react-native": "^7.2.0",
114117
"@types/jest": "^26.0.24",
115118
"@types/lodash": "^4.14.177",
116119
"@types/matomo-tracker-react-native": "0.3.0",
117-
"@types/react": "~17.0.21",
118-
"@types/react-native": "~0.64.12",
120+
"@types/react": "~18.0.0",
121+
"@types/react-native": "~0.69.1",
119122
"@types/react-native-calendars": "^1.1264.3",
120123
"@types/react-native-confetti": "^0.1.0",
121124
"@types/react-native-indicators": "^0.16.1",
122125
"@types/react-native-snap-carousel": "^3.8.5",
123126
"@types/uuid": "^8.3.4",
124127
"babel-jest": "^26.6.3",
125128
"eslint": "^7.32.0",
129+
"expo-cli": "^6.0.8",
126130
"jest": "^26.6.3",
127131
"prettier": "^2.3.2",
128132
"react-native-svg-transformer": "^0.14.3",
129-
"typescript": "~4.3.5"
133+
"typescript": "^4.6.3"
130134
},
131-
"private": true
135+
"private": true,
136+
"resolutions": {
137+
"@expo/config-plugins": "~5.0.0",
138+
"@expo/prebuild-config": "~5.0.1",
139+
"expo-modules-autolinking": "0.10.1"
140+
}
132141
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
diff --git a/node_modules/react-native-snap-carousel/src/carousel/Carousel.js b/node_modules/react-native-snap-carousel/src/carousel/Carousel.js
2+
index dae71a3..8056cd4 100644
3+
--- a/node_modules/react-native-snap-carousel/src/carousel/Carousel.js
4+
+++ b/node_modules/react-native-snap-carousel/src/carousel/Carousel.js
5+
@@ -1,5 +1,6 @@
6+
import React, { Component } from 'react';
7+
-import { Animated, Easing, FlatList, I18nManager, Platform, ScrollView, View, ViewPropTypes } from 'react-native';
8+
+import { Animated, Easing, FlatList, I18nManager, Platform, ScrollView, View } from 'react-native';
9+
+import { ViewPropTypes } from 'deprecated-react-native-prop-types'
10+
import PropTypes from 'prop-types';
11+
import shallowCompare from 'react-addons-shallow-compare';
12+
import {
13+
diff --git a/node_modules/react-native-snap-carousel/src/pagination/Pagination.js b/node_modules/react-native-snap-carousel/src/pagination/Pagination.js
14+
index 5c021cf..4741489 100644
15+
--- a/node_modules/react-native-snap-carousel/src/pagination/Pagination.js
16+
+++ b/node_modules/react-native-snap-carousel/src/pagination/Pagination.js
17+
@@ -1,5 +1,6 @@
18+
import React, { PureComponent } from 'react';
19+
-import { I18nManager, Platform, View, ViewPropTypes } from 'react-native';
20+
+import { I18nManager, Platform, View } from 'react-native';
21+
+import { ViewPropTypes } from 'deprecated-react-native-prop-types'
22+
import PropTypes from 'prop-types';
23+
import PaginationDot from './PaginationDot';
24+
import styles from './Pagination.style';
25+
diff --git a/node_modules/react-native-snap-carousel/src/pagination/PaginationDot.js b/node_modules/react-native-snap-carousel/src/pagination/PaginationDot.js
26+
index e59d196..84821b5 100644
27+
--- a/node_modules/react-native-snap-carousel/src/pagination/PaginationDot.js
28+
+++ b/node_modules/react-native-snap-carousel/src/pagination/PaginationDot.js
29+
@@ -1,5 +1,6 @@
30+
import React, { PureComponent } from 'react';
31+
-import { View, Animated, Easing, TouchableOpacity, ViewPropTypes } from 'react-native';
32+
+import { View, Animated, Easing, TouchableOpacity } from 'react-native';
33+
+import { ViewPropTypes } from 'deprecated-react-native-prop-types'
34+
import PropTypes from 'prop-types';
35+
import styles from './Pagination.style';
36+
37+
diff --git a/node_modules/react-native-snap-carousel/src/parallaximage/ParallaxImage.js b/node_modules/react-native-snap-carousel/src/parallaximage/ParallaxImage.js
38+
index 8bc774a..8fc99b7 100644
39+
--- a/node_modules/react-native-snap-carousel/src/parallaximage/ParallaxImage.js
40+
+++ b/node_modules/react-native-snap-carousel/src/parallaximage/ParallaxImage.js
41+
@@ -1,7 +1,8 @@
42+
// Parallax effect inspired by https://github.com/oblador/react-native-parallax/
43+
44+
import React, { Component } from 'react';
45+
-import { View, ViewPropTypes, Image, Animated, Easing, ActivityIndicator, findNodeHandle } from 'react-native';
46+
+import { View, Image, Animated, Easing, ActivityIndicator, findNodeHandle } from 'react-native';
47+
+import { ViewPropTypes } from 'deprecated-react-native-prop-types'
48+
import PropTypes from 'prop-types';
49+
import styles from './ParallaxImage.style';
50+

front/src/navigation/navigation.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const RootNavigator: FC<RootNavigatorProps> = ({ onPressMenu }) => {
6060
onPressMenu(true);
6161
}, [onPressMenu]);
6262
return (
63-
<Stack.Navigator screenOptions={{ headerShown: false }}>
63+
<Stack.Navigator initialRouteName="loading" screenOptions={{ headerShown: false }}>
6464
<Stack.Screen name="loading" component={LoadingScreen} />
6565
<Stack.Screen name="onboarding" component={Onboarding} />
6666
<Stack.Screen name="profile" component={Profile} />

0 commit comments

Comments
 (0)