Skip to content

Commit b7413cb

Browse files
committed
Upgrade to Expo SDK 54
1 parent 63ef983 commit b7413cb

4 files changed

Lines changed: 22 additions & 18 deletions

File tree

templates/boilerplate/app.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
},
2424
"web": {
2525
"favicon": "./assets/favicon.png"
26-
}
26+
},
27+
"plugins": ["expo-font"]
2728
}
2829
}

templates/boilerplate/jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module.exports = {
33
collectCoverageFrom: ['src/**/*.{js,jsx,ts,tsx}'],
44
coveragePathIgnorePatterns: ['/node_modules', 'src/test'],
55
transformIgnorePatterns: [
6-
'node_modules/(?!((jest-)?react-native|@react-native-community|@react-native|react-native|@react-navigation)|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@unimodules/.*|unimodules|sentry-expo|native-base|react-native-svg)',
6+
'node_modules/(?!((jest-)?react-native|@react-native-community|@react-native|react-native|@react-navigation)|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@unimodules/.*|unimodules|sentry-expo|native-base|react-native-svg|until-async)',
77
],
88
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
99
moduleNameMapper: {

templates/boilerplate/jest.setup.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import '@testing-library/jest-native/extend-expect';
22
import { configure } from '@testing-library/react-native';
33
import mockSafeAreaContext from 'react-native-safe-area-context/jest/mock';
4-
import mockBackHandler from 'react-native/Libraries/Utilities/__mocks__/BackHandler';
54
import server from 'src/test/server';
65
import queryClient from 'src/util/api/queryClient';
76

@@ -28,7 +27,10 @@ jest.mock('react-native/Libraries/LogBox/LogBox', () => ({
2827

2928
jest.mock('react-native/Libraries/Utilities/BackHandler', () => ({
3029
__esModule: true,
31-
default: mockBackHandler,
30+
default: {
31+
addEventListener: jest.fn(() => ({ remove: jest.fn() })),
32+
removeEventListener: jest.fn(),
33+
},
3234
}));
3335

3436
jest.mock('@react-native-async-storage/async-storage', () =>

templates/boilerplate/package.json

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,39 +18,40 @@
1818
"test:all": "npm run lint && npm run test:cov"
1919
},
2020
"dependencies": {
21-
"@expo/vector-icons": "^14.0.2",
22-
"@react-native-async-storage/async-storage": "2.1.2",
21+
"@expo/vector-icons": "^15.0.3",
22+
"@react-native-async-storage/async-storage": "2.2.0",
2323
"@react-navigation/bottom-tabs": "^6.5.20",
2424
"@react-navigation/native": "^6.1.10",
2525
"@react-navigation/native-stack": "^6.9.18",
2626
"@tanstack/react-query": "^5.32.1",
2727
"axios": "^1.6.8",
28-
"expo": "^53.0.11",
29-
"expo-status-bar": "~2.2.3",
30-
"react": "19.0.0",
31-
"react-native": "0.79.3",
28+
"expo": "^54.0.0",
29+
"expo-font": "~14.0.9",
30+
"expo-status-bar": "~3.0.8",
31+
"react": "19.1.0",
32+
"react-native": "0.81.5",
3233
"react-native-keyboard-aware-scroll-view": "^0.9.5",
33-
"react-native-safe-area-context": "5.4.0",
34-
"react-native-screens": "~4.11.1"
34+
"react-native-safe-area-context": "~5.6.0",
35+
"react-native-screens": "~4.16.0"
3536
},
3637
"devDependencies": {
3738
"@babel/core": "^7.20.0",
3839
"@testing-library/jest-native": "^5.4.3",
3940
"@testing-library/react-native": "^13.2.0",
4041
"@thoughtbot/eslint-config": "^1.0.2",
4142
"@types/jest": "^29.5.14",
42-
"@types/react": "~19.0.0",
43-
"@types/react-test-renderer": "^19.0.0",
43+
"@types/react": "~19.1.10",
44+
"@types/react-test-renderer": "^19.1.0",
4445
"babel-jest": "^29.7.0",
4546
"create-belt-app": "^0.7.3",
4647
"eslint": "^8.56.0",
47-
"msw": "^2.2.14",
4848
"jest": "~29.7.0",
49-
"jest-expo": "~53.0.7",
49+
"jest-expo": "~54.0.13",
50+
"msw": "^2.2.14",
5051
"npm-run-all": "^4.1.5",
5152
"prettier": "^3.2.5",
52-
"react-test-renderer": "19.0.0",
53-
"typescript": "~5.8.3"
53+
"react-test-renderer": "19.1.0",
54+
"typescript": "~5.9.2"
5455
},
5556
"peerDependencies": {
5657
"react": "^19.0.0"

0 commit comments

Comments
 (0)