Skip to content

Commit fe2d26f

Browse files
committed
chore: upgrade to react native 0.85
1 parent 3e8bc07 commit fe2d26f

7 files changed

Lines changed: 360 additions & 282 deletions

File tree

.github/actions/setup-deps-rn-latest/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,7 @@ runs:
2828

2929
- name: Switch to React Native Latest
3030
run: |
31-
yarn add -D react-native@latest @react-native/babel-preset@latest
31+
yarn add -D react-native@latest \
32+
@react-native/babel-preset@latest \
33+
@react-native/jest-preset@latest
3234
shell: bash

.github/actions/setup-deps/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ runs:
3737
- name: Switch to React and React Native versions
3838
if: inputs.react-version != '' && inputs.react-native-version != ''
3939
run: |
40-
yarn add -D react@${{ inputs.react-version }} @types/react@${{ inputs.react-version }} react-native@${{ inputs.react-native-version }} @react-native/babel-preset@${{ inputs.react-native-version }}
40+
yarn add -D react@${{ inputs.react-version }} @types/react@${{ inputs.react-version }} react-native@${{ inputs.react-native-version }} @react-native/babel-preset@${{ inputs.react-native-version }} @react-native/jest-preset@${{ inputs.react-native-version }}
4141
shell: bash

.github/workflows/ci.yml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,25 @@ jobs:
4343
- name: Typecheck
4444
run: yarn typecheck
4545

46+
typecheck-rn-0-85-0:
47+
runs-on: ubuntu-latest
48+
name: Typecheck RN 0.85.0
49+
steps:
50+
- name: Checkout
51+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
52+
53+
- name: Setup Node.js and deps
54+
uses: ./.github/actions/setup-deps
55+
with:
56+
react-version: 19.2.3
57+
react-native-version: 0.85.0
58+
59+
- name: Typecheck
60+
run: yarn typecheck
61+
4662
typecheck-rn-0-84-0:
4763
runs-on: ubuntu-latest
48-
name: Typecheck RN 0.83.1
64+
name: Typecheck RN 0.84.0
4965
steps:
5066
- name: Checkout
5167
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -225,6 +241,22 @@ jobs:
225241
- name: Test
226242
run: yarn test:codemods
227243

244+
test-rn-0-85-0:
245+
runs-on: ubuntu-latest
246+
name: Test RN 0.85.0
247+
steps:
248+
- name: Checkout
249+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
250+
251+
- name: Setup Node.js and deps
252+
uses: ./.github/actions/setup-deps
253+
with:
254+
react-version: 19.2.3
255+
react-native-version: 0.85.0
256+
257+
- name: Test
258+
run: yarn test:ci
259+
228260
test-rn-0-84-0:
229261
runs-on: ubuntu-latest
230262
name: Test RN 0.84.0

.github/workflows/nightly.yaml

Lines changed: 78 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,77 +16,140 @@ concurrency:
1616
jobs:
1717
lint:
1818
runs-on: ubuntu-latest
19-
name: Lint - ${{ matrix.rn-version }}
19+
name: Lint - ${{ matrix.name }}
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
rn-version: [latest, next, nightly]
23+
include:
24+
- name: RN 0.84.0
25+
react-version: 19.2.3
26+
react-native-version: 0.84.0
27+
setup: stable
28+
- name: RN 0.85.0
29+
react-version: 19.2.3
30+
react-native-version: 0.85.0
31+
setup: stable
32+
- name: RN Latest
33+
setup: latest
34+
- name: RN Next
35+
setup: next
36+
- name: RN Nightly
37+
setup: nightly
2438
steps:
2539
- name: Checkout
2640
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2741

42+
- name: Setup Node.js and deps (stable)
43+
if: matrix.setup == 'stable'
44+
uses: ./.github/actions/setup-deps
45+
with:
46+
react-version: ${{ matrix.react-version }}
47+
react-native-version: ${{ matrix.react-native-version }}
48+
2849
- name: Setup Node.js and deps (latest)
29-
if: matrix.rn-version == 'latest'
50+
if: matrix.setup == 'latest'
3051
uses: ./.github/actions/setup-deps-rn-latest
3152

3253
- name: Setup Node.js and deps (next)
33-
if: matrix.rn-version == 'next'
54+
if: matrix.setup == 'next'
3455
uses: ./.github/actions/setup-deps-rn-next
3556

3657
- name: Setup Node.js and deps (nightly)
37-
if: matrix.rn-version == 'nightly'
58+
if: matrix.setup == 'nightly'
3859
uses: ./.github/actions/setup-deps-rn-nightly
3960

4061
- name: Lint
4162
run: yarn lint
4263

4364
typecheck:
4465
runs-on: ubuntu-latest
45-
name: Typecheck - ${{ matrix.rn-version }}
66+
name: Typecheck - ${{ matrix.name }}
4667
strategy:
4768
fail-fast: false
4869
matrix:
49-
rn-version: [latest, next, nightly]
70+
include:
71+
- name: RN 0.84.0
72+
react-version: 19.2.3
73+
react-native-version: 0.84.0
74+
setup: stable
75+
- name: RN 0.85.0
76+
react-version: 19.2.3
77+
react-native-version: 0.85.0
78+
setup: stable
79+
- name: RN Latest
80+
setup: latest
81+
- name: RN Next
82+
setup: next
83+
- name: RN Nightly
84+
setup: nightly
5085
steps:
5186
- name: Checkout
5287
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5388

89+
- name: Setup Node.js and deps (stable)
90+
if: matrix.setup == 'stable'
91+
uses: ./.github/actions/setup-deps
92+
with:
93+
react-version: ${{ matrix.react-version }}
94+
react-native-version: ${{ matrix.react-native-version }}
95+
5496
- name: Setup Node.js and deps (latest)
55-
if: matrix.rn-version == 'latest'
97+
if: matrix.setup == 'latest'
5698
uses: ./.github/actions/setup-deps-rn-latest
5799

58100
- name: Setup Node.js and deps (next)
59-
if: matrix.rn-version == 'next'
101+
if: matrix.setup == 'next'
60102
uses: ./.github/actions/setup-deps-rn-next
61103

62104
- name: Setup Node.js and deps (nightly)
63-
if: matrix.rn-version == 'nightly'
105+
if: matrix.setup == 'nightly'
64106
uses: ./.github/actions/setup-deps-rn-nightly
65107

66108
- name: Typecheck
67109
run: yarn typecheck
68110

69111
test:
70112
runs-on: ubuntu-latest
71-
name: Test - ${{ matrix.rn-version }}
113+
name: Test - ${{ matrix.name }}
72114
strategy:
73115
fail-fast: false
74116
matrix:
75-
rn-version: [latest, next, nightly]
117+
include:
118+
- name: RN 0.84.0
119+
react-version: 19.2.3
120+
react-native-version: 0.84.0
121+
setup: stable
122+
- name: RN 0.85.0
123+
react-version: 19.2.3
124+
react-native-version: 0.85.0
125+
setup: stable
126+
- name: RN Latest
127+
setup: latest
128+
- name: RN Next
129+
setup: next
130+
- name: RN Nightly
131+
setup: nightly
76132
steps:
77133
- name: Checkout
78134
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
79135

136+
- name: Setup Node.js and deps (stable)
137+
if: matrix.setup == 'stable'
138+
uses: ./.github/actions/setup-deps
139+
with:
140+
react-version: ${{ matrix.react-version }}
141+
react-native-version: ${{ matrix.react-native-version }}
142+
80143
- name: Setup Node.js and deps (latest)
81-
if: matrix.rn-version == 'latest'
144+
if: matrix.setup == 'latest'
82145
uses: ./.github/actions/setup-deps-rn-latest
83146

84147
- name: Setup Node.js and deps (next)
85-
if: matrix.rn-version == 'next'
148+
if: matrix.setup == 'next'
86149
uses: ./.github/actions/setup-deps-rn-next
87150

88151
- name: Setup Node.js and deps (nightly)
89-
if: matrix.rn-version == 'nightly'
152+
if: matrix.setup == 'nightly'
90153
uses: ./.github/actions/setup-deps-rn-nightly
91154

92155
- name: Test

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
preset: 'react-native',
2+
preset: '@react-native/jest-preset',
33
setupFilesAfterEnv: ['./jest-setup.ts'],
44
testPathIgnorePatterns: ['build/', 'examples/', 'experiments-app/', 'codemods/'],
55
testTimeout: 60000,

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@
7575
"@babel/preset-react": "^7.28.5",
7676
"@babel/preset-typescript": "^7.28.5",
7777
"@callstack/eslint-config": "^15.0.0",
78-
"@react-native/babel-preset": "0.84.0",
78+
"@react-native/babel-preset": "0.85.0",
79+
"@react-native/jest-preset": "0.85.0",
7980
"@release-it/conventional-changelog": "^10.0.2",
8081
"@relmify/jest-serializer-strip-ansi": "^1.0.2",
8182
"@types/jest": "^30.0.0",
@@ -89,7 +90,7 @@
8990
"jest": "^30.2.0",
9091
"prettier": "^3.6.2",
9192
"react": "19.2.3",
92-
"react-native": "0.84.0",
93+
"react-native": "0.85.0",
9394
"react-native-gesture-handler": "^2.30.0",
9495
"release-it": "^19.0.6",
9596
"test-renderer": "0.14.0",

0 commit comments

Comments
 (0)