Skip to content

Commit 176ea28

Browse files
Merge pull request #55 from binarapps/feat/upgrade-expo-to-51
upgrade expo to version 51
2 parents b9408eb + 353f9bb commit 176ea28

18 files changed

Lines changed: 3690 additions & 3187 deletions

app.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
"softwareKeyboardLayoutMode": "pan",
77
"googleServicesFile": "./google-services.json"
88
},
9-
"assetBundlePatterns": ["**/*"],
9+
"assetBundlePatterns": [
10+
"**/*"
11+
],
1012
"ios": {
1113
"buildNumber": "20",
1214
"config": {
@@ -33,6 +35,7 @@
3335
"version": "2.3.0",
3436
"plugins": [
3537
"@react-native-google-signin/google-signin",
38+
"expo-asset",
3639
"expo-apple-authentication",
3740
"expo-font",
3841
"expo-localization",
@@ -52,4 +55,4 @@
5255
"bundler": "metro"
5356
}
5457
}
55-
}
58+
}

docs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"typecheck": "tsc"
1717
},
1818
"dependencies": {
19-
"@docusaurus/core": "3.1.0",
20-
"@docusaurus/preset-classic": "3.1.0",
19+
"@docusaurus/core": "^3.3.2",
20+
"@docusaurus/preset-classic": "^3.3.2",
2121
"@mdx-js/react": "^3.0.0",
2222
"clsx": "^2.0.0",
2323
"prism-react-renderer": "^2.3.0",

docs/yarn.lock

Lines changed: 1553 additions & 583 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 53 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -93,93 +93,90 @@
9393
},
9494
"dependencies": {
9595
"@bacons/react-views": "^1.1.3",
96-
"@expo/config-plugins": "~7.8.0",
97-
"@expo/prebuild-config": "~6.7.0",
96+
"@expo/config-plugins": "~8.0.0",
97+
"@expo/prebuild-config": "~7.0.0",
9898
"@expo/vector-icons": "^14.0.0",
9999
"@gorhom/bottom-sheet": "^4.6.0",
100100
"@motify/interactions": "^0.17.1",
101101
"@motify/skeleton": "^0.18.0",
102-
"@react-native-async-storage/async-storage": "1.21.0",
103-
"@react-native-community/netinfo": "11.1.0",
102+
"@react-native-async-storage/async-storage": "1.23.1",
103+
"@react-native-community/netinfo": "11.3.1",
104104
"@react-native-google-signin/google-signin": "^11.0.0",
105105
"@react-navigation/bottom-tabs": "^6.5.11",
106106
"@react-navigation/native": "^6.1.9",
107107
"@react-navigation/native-stack": "^6.9.17",
108108
"@react-navigation/stack": "^6.3.20",
109109
"@tanstack/react-query": "^4.29.19",
110-
"axios": "^1.6.7",
110+
"axios": "^1.7.2",
111111
"core-js": "^3.37.1",
112-
"expo": "~50.0.17",
113-
"expo-apple-authentication": "~6.3.0",
114-
"expo-application": "~5.8.4",
115-
"expo-asset": "~9.0.2",
116-
"expo-build-properties": "~0.11.1",
117-
"expo-clipboard": "~5.0.1",
118-
"expo-constants": "~15.4.6",
119-
"expo-crypto": "~12.8.1",
120-
"expo-dev-client": "~3.3.11",
121-
"expo-device": "~5.9.4",
122-
"expo-font": "~11.10.3",
123-
"expo-haptics": "~12.8.1",
124-
"expo-linear-gradient": "~12.7.2",
125-
"expo-linking": "~6.2.2",
126-
"expo-local-authentication": "~13.8.0",
127-
"expo-localization": "~14.8.4",
128-
"expo-network": "~5.8.0",
129-
"expo-notifications": "~0.27.7",
130-
"expo-router": "~3.4.10",
131-
"expo-screen-orientation": "~6.4.1",
132-
"expo-secure-store": "~12.8.1",
133-
"expo-splash-screen": "~0.26.5",
134-
"expo-status-bar": "~1.11.1",
135-
"expo-system-ui": "~2.9.4",
136-
"expo-updates": "~0.24.12",
137-
"expo-web-browser": "~12.8.2",
112+
"expo": "~51.0.8",
113+
"expo-apple-authentication": "~6.4.1",
114+
"expo-application": "~5.9.1",
115+
"expo-asset": "~10.0.6",
116+
"expo-build-properties": "~0.12.1",
117+
"expo-clipboard": "~6.0.3",
118+
"expo-constants": "~16.0.1",
119+
"expo-crypto": "~13.0.2",
120+
"expo-dev-client": "~4.0.14",
121+
"expo-device": "~6.0.2",
122+
"expo-font": "~12.0.5",
123+
"expo-haptics": "~13.0.1",
124+
"expo-linear-gradient": "~13.0.2",
125+
"expo-linking": "~6.3.1",
126+
"expo-local-authentication": "~14.0.1",
127+
"expo-localization": "~15.0.3",
128+
"expo-network": "~6.0.1",
129+
"expo-notifications": "~0.28.3",
130+
"expo-router": "~3.5.14",
131+
"expo-screen-orientation": "~7.0.5",
132+
"expo-secure-store": "~13.0.1",
133+
"expo-splash-screen": "~0.27.4",
134+
"expo-status-bar": "~1.12.1",
135+
"expo-system-ui": "~3.0.4",
136+
"expo-updates": "~0.25.14",
137+
"expo-web-browser": "~13.0.3",
138138
"i18next": "^23.7.20",
139-
"jotai": "^2.4.3",
139+
"jotai": "^2.8.1",
140140
"jwt-decode": "^4.0.0",
141141
"moti": "^0.25.3",
142142
"react": "18.2.0",
143143
"react-dom": "18.2.0",
144-
"react-hook-form": "^7.49.3",
145-
"react-i18next": "^14.0.1",
146-
"react-native": "0.73.6",
147-
"react-native-gesture-handler": "~2.14.0",
144+
"react-hook-form": "^7.51.5",
145+
"react-i18next": "^14.1.2",
146+
"react-native": "0.74.1",
147+
"react-native-gesture-handler": "~2.16.1",
148148
"react-native-keyboard-aware-scroll-view": "^0.9.5",
149149
"react-native-notificated": "^0.0.1-beta.2",
150-
"react-native-pager-view": "6.2.3",
151-
"react-native-reanimated": "~3.6.2",
152-
"react-native-safe-area-context": "4.8.2",
153-
"react-native-screens": "~3.29.0",
154-
"react-native-svg": "14.1.0",
150+
"react-native-pager-view": "6.3.0",
151+
"react-native-reanimated": "~3.10.1",
152+
"react-native-safe-area-context": "4.10.1",
153+
"react-native-screens": "3.31.1",
154+
"react-native-svg": "15.2.0",
155155
"react-native-web": "~0.19.6",
156-
"reactotron-react-native": "^5.1.3",
157-
"sass": "^1.70.0",
156+
"reactotron-react-native": "^5.1.7",
157+
"sass": "^1.77.2",
158158
"setimmediate": "^1.0.5",
159159
"use-debounce": "^9.0.4"
160160
},
161-
"resolutions": {
162-
"react-error-overlay": "6.0.9"
163-
},
164161
"devDependencies": {
165162
"@babel/core": "^7.20.0",
166163
"@babel/plugin-transform-export-namespace-from": "^7.23.4",
167164
"@babel/preset-react": "^7.23.3",
168-
"@expo/config": "~8.5.0",
165+
"@expo/config": "~9.0.0",
169166
"@expo/webpack-config": "~19.0.1",
170167
"@faker-js/faker": "^8.4.1",
171168
"@testing-library/jest-native": "^5.4.2",
172169
"@testing-library/react-native": "^12.4.3",
173170
"@types/jest": "^29.5.3",
174-
"@types/react": "~18.2.45",
171+
"@types/react": "~18.2.79",
175172
"@types/react-test-renderer": "^18.0.0",
176173
"@typescript-eslint/eslint-plugin": "^6.19.1",
177174
"@typescript-eslint/parser": "^6.19.1",
178175
"@welldone-software/why-did-you-render": "^7.0.1",
179176
"babel-loader": "^9.1.3",
180177
"babel-plugin-module-resolver": "^5.0.0",
181-
"babel-preset-expo": "^10.0.0",
182-
"commander": "^12.0.0",
178+
"babel-preset-expo": "^11.0.5",
179+
"commander": "^12.1.0",
183180
"cross-env": "^7.0.3",
184181
"dotenv": "^16.4.1",
185182
"enquirer": "^2.4.1",
@@ -188,24 +185,24 @@
188185
"eslint-config-universe": "^11.2.0",
189186
"eslint-plugin-prettier": "^4.2.1",
190187
"eslint-plugin-react": "^7.32.2",
191-
"eslint-plugin-react-hooks": "^4.6.0",
188+
"eslint-plugin-react-hooks": "^4.6.2",
192189
"eslint-plugin-react-native": "^4.0.0",
193190
"eslint-plugin-react-native-globals": "^0.1.2",
194191
"fast-text-encoding": "^1.0.6",
195192
"husky": "^8.0.3",
196193
"jest": "^29.6.1",
197-
"jest-expo": "~50.0.4",
194+
"jest-expo": "~51.0.2",
198195
"lint-staged": "^13.2.3",
199-
"msw": "^2.2.2",
200-
"orval": "^6.25.0",
196+
"msw": "^2.3.0",
197+
"orval": "^6.29.1",
201198
"patch-package": "^7.0.1",
202199
"prettier": "^2.8.8",
203200
"pretty-quick": "^4.0.0",
204201
"react-native-url-polyfill": "^2.0.0",
205-
"react-test-renderer": "^18.2.0",
202+
"react-test-renderer": "^18.3.1",
206203
"readline": "^1.3.0",
207204
"text-encoding-polyfill": "^0.6.7",
208-
"typescript": "^5.3.0",
205+
"typescript": "~5.3.3",
209206
"xmlhttprequest": "^1.8.0"
210207
},
211208
"browser": {
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
diff --git a/node_modules/expo-router/build/global-state/routing.js b/node_modules/expo-router/build/global-state/routing.js
2-
index 2fba9d1..9cce0c9 100644
2+
index 764db0b..3eae9d2 100644
33
--- a/node_modules/expo-router/build/global-state/routing.js
44
+++ b/node_modules/expo-router/build/global-state/routing.js
5-
@@ -173,6 +173,10 @@ function getNavigateAction(state, parentState, type = 'NAVIGATE') {
6-
else if (type === 'REPLACE' && parentState.type === 'tab') {
5+
@@ -226,6 +226,10 @@ function getNavigateAction(actionState, navigationState, type = 'NAVIGATE') {
6+
if (type === 'REPLACE' && navigationState.type === 'tab') {
77
type = 'JUMP_TO';
88
}
99
+
1010
+ // https://github.com/expo/expo/issues/26211
1111
+ params.initial = false
12-
+
12+
+
1313
return {
1414
type,
15-
target: parentState.key,
15+
target: navigationState.key,

patches/react-native-keyboard-aware-scroll-view+0.9.5.patch

Lines changed: 0 additions & 69 deletions
This file was deleted.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
diff --git a/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts b/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts
2-
index f634ac7..c734a34 100644
2+
index cf96941..04a5810 100644
33
--- a/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts
44
+++ b/node_modules/react-native-reanimated/src/reanimated2/animation/util.ts
5-
@@ -87,13 +87,9 @@ export function getReduceMotionFromConfig(config?: ReduceMotion) {
5+
@@ -121,13 +121,9 @@ export function getReduceMotionFromConfig(config?: ReduceMotion) {
66
*/
77
export function getReduceMotionForAnimation(config?: ReduceMotion) {
88
'worklet';
@@ -11,10 +11,10 @@ index f634ac7..c734a34 100644
1111
- if (!config) {
1212
- return undefined;
1313
- }
14-
14+
1515
- return getReduceMotionFromConfig(config);
1616
+ // we must always return false here in order to prevent bottomsheets from crash on devices with 'reduce motion/animation' setting turned on
1717
+ return false;
1818
}
1919

20-
function applyProgressToMatrix(
20+
function applyProgressToMatrix(

src/design-system/components/Button/__snapshots__/Button.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ exports[`Button renders correctly 1`] = `
6969
style={
7070
{
7171
"color": "#FFFFFF",
72-
"fontFamily": "Inter_SemiBold",
72+
"fontFamily": "Inter_Bold",
7373
"fontSize": 14,
7474
"fontStyle": "normal",
7575
"fontWeight": "400",

src/design-system/components/Text/Text.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ console.error = jest.fn()
99
console.warn = jest.fn()
1010

1111
const defaultTextStyles = {
12-
color: theme.light.colors.text.brand.primary,
12+
color: theme.light.colors.text.primary,
1313
fontFamily: 'Inter_Regular',
1414
fontSize: 16,
1515
fontWeight: '400',

0 commit comments

Comments
 (0)