Skip to content

Commit fe0b189

Browse files
committed
chore: RN nightly check 2025-07-15
1 parent 2de40c3 commit fe0b189

32 files changed

+326
-303
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
"jest": "^30.0.2",
8989
"prettier": "^2.8.8",
9090
"react": "19.1.0",
91-
"react-native": "0.80.1",
91+
"react-native": "0.82.0-nightly-20250715-7f224941b",
9292
"react-native-gesture-handler": "^2.27.1",
9393
"react-test-renderer": "19.1.0",
9494
"release-it": "^19.0.3",

src/__tests__/__snapshots__/render-debug.test.tsx.snap

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`debug 1`] = `
4-
"<View>
4+
"<View_withRef>
55
<Text>
66
Is the banana fresh?
77
</Text>
@@ -28,14 +28,14 @@ exports[`debug 1`] = `
2828
defaultValue="hello"
2929
value=""
3030
/>
31-
<View
31+
<View_withRef
3232
accessible={true}
3333
role="button"
3434
>
3535
<Text>
3636
Change freshness!
3737
</Text>
38-
</View>
38+
</View_withRef>
3939
<Text
4040
testID="duplicateText"
4141
>
@@ -49,11 +49,11 @@ exports[`debug 1`] = `
4949
<Text>
5050
0
5151
</Text>
52-
</View>"
52+
</View_withRef>"
5353
`;
5454

5555
exports[`debug changing component: bananaFresh button message should now be "fresh" 1`] = `
56-
"<View>
56+
"<View_withRef>
5757
<Text>
5858
Is the banana fresh?
5959
</Text>
@@ -80,7 +80,7 @@ exports[`debug changing component: bananaFresh button message should now be "fre
8080
defaultValue="hello"
8181
value=""
8282
/>
83-
<View
83+
<View_withRef
8484
accessibilityState={
8585
{
8686
"busy": undefined,
@@ -115,7 +115,7 @@ exports[`debug changing component: bananaFresh button message should now be "fre
115115
<Text>
116116
Change freshness!
117117
</Text>
118-
</View>
118+
</View_withRef>
119119
<Text
120120
testID="duplicateText"
121121
>
@@ -129,19 +129,19 @@ exports[`debug changing component: bananaFresh button message should now be "fre
129129
<Text>
130130
0
131131
</Text>
132-
</View>"
132+
</View_withRef>"
133133
`;
134134

135135
exports[`debug should use debugOptions from config when no option is specified 1`] = `
136-
"<View>
136+
"<View_withRef>
137137
<Text>
138138
hello
139139
</Text>
140-
</View>"
140+
</View_withRef>"
141141
`;
142142

143143
exports[`debug should use given options over config debugOptions 1`] = `
144-
"<View
144+
"<View_withRef
145145
style={
146146
{
147147
"backgroundColor": "red",
@@ -151,11 +151,11 @@ exports[`debug should use given options over config debugOptions 1`] = `
151151
<Text>
152152
hello
153153
</Text>
154-
</View>"
154+
</View_withRef>"
155155
`;
156156

157157
exports[`debug with only children prop 1`] = `
158-
"<View>
158+
"<View_withRef>
159159
<Text>
160160
Is the banana fresh?
161161
</Text>
@@ -166,11 +166,11 @@ exports[`debug with only children prop 1`] = `
166166
<TextInput />
167167
<TextInput />
168168
<TextInput />
169-
<View>
169+
<View_withRef>
170170
<Text>
171171
Change freshness!
172172
</Text>
173-
</View>
173+
</View_withRef>
174174
<Text>
175175
First Text
176176
</Text>
@@ -180,11 +180,11 @@ exports[`debug with only children prop 1`] = `
180180
<Text>
181181
0
182182
</Text>
183-
</View>"
183+
</View_withRef>"
184184
`;
185185

186186
exports[`debug with only prop whose value is bananaChef 1`] = `
187-
"<View>
187+
"<View_withRef>
188188
<Text>
189189
Is the banana fresh?
190190
</Text>
@@ -197,11 +197,11 @@ exports[`debug with only prop whose value is bananaChef 1`] = `
197197
/>
198198
<TextInput />
199199
<TextInput />
200-
<View>
200+
<View_withRef>
201201
<Text>
202202
Change freshness!
203203
</Text>
204-
</View>
204+
</View_withRef>
205205
<Text>
206206
First Text
207207
</Text>
@@ -211,11 +211,11 @@ exports[`debug with only prop whose value is bananaChef 1`] = `
211211
<Text>
212212
0
213213
</Text>
214-
</View>"
214+
</View_withRef>"
215215
`;
216216

217217
exports[`debug: All Props 1`] = `
218-
"<View>
218+
"<View_withRef>
219219
<Text>
220220
Is the banana fresh?
221221
</Text>
@@ -242,7 +242,7 @@ exports[`debug: All Props 1`] = `
242242
defaultValue="hello"
243243
value=""
244244
/>
245-
<View
245+
<View_withRef
246246
accessibilityState={
247247
{
248248
"busy": undefined,
@@ -277,7 +277,7 @@ exports[`debug: All Props 1`] = `
277277
<Text>
278278
Change freshness!
279279
</Text>
280-
</View>
280+
</View_withRef>
281281
<Text
282282
testID="duplicateText"
283283
>
@@ -291,15 +291,15 @@ exports[`debug: All Props 1`] = `
291291
<Text>
292292
0
293293
</Text>
294-
</View>
294+
</View_withRef>
295295
undefined"
296296
`;
297297

298298
exports[`debug: Option message 1`] = `
299299
"another custom message
300300
301301
302-
<View>
302+
<View_withRef>
303303
<Text>
304304
Is the banana fresh?
305305
</Text>
@@ -326,14 +326,14 @@ exports[`debug: Option message 1`] = `
326326
defaultValue="hello"
327327
value=""
328328
/>
329-
<View
329+
<View_withRef
330330
accessible={true}
331331
role="button"
332332
>
333333
<Text>
334334
Change freshness!
335335
</Text>
336-
</View>
336+
</View_withRef>
337337
<Text
338338
testID="duplicateText"
339339
>
@@ -347,5 +347,5 @@ exports[`debug: Option message 1`] = `
347347
<Text>
348348
0
349349
</Text>
350-
</View>"
350+
</View_withRef>"
351351
`;

src/__tests__/__snapshots__/render.test.tsx.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`toJSON renders host output 1`] = `
4-
<View
4+
<View_withRef
55
accessibilityState={
66
{
77
"busy": undefined,
@@ -35,5 +35,5 @@ exports[`toJSON renders host output 1`] = `
3535
<Text>
3636
press me
3737
</Text>
38-
</View>
38+
</View_withRef>
3939
`;

src/__tests__/react-native-api.test.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ test('React Native API assumption: <View> renders a single host element', () =>
1515
render(<View testID="test" />);
1616

1717
expect(screen.toJSON()).toMatchInlineSnapshot(`
18-
<View
18+
<View_withRef
1919
testID="test"
2020
/>
2121
`);
@@ -154,11 +154,11 @@ test('React Native API assumption: <ScrollView> renders a single host element',
154154
<RCTScrollView
155155
testID="scrollView"
156156
>
157-
<View>
158-
<View
157+
<View_withRef>
158+
<View_withRef
159159
testID="view"
160160
/>
161-
</View>
161+
</View_withRef>
162162
</RCTScrollView>
163163
`);
164164
});
@@ -193,26 +193,26 @@ test('React Native API assumption: <FlatList> renders a single host <ScrollView>
193193
testID="flatList"
194194
viewabilityConfigCallbackPairs={[]}
195195
>
196-
<View>
197-
<View
196+
<View_withRef>
197+
<View_withRef
198198
onFocusCapture={[Function]}
199199
onLayout={[Function]}
200200
style={null}
201201
>
202202
<Text>
203203
1
204204
</Text>
205-
</View>
206-
<View
205+
</View_withRef>
206+
<View_withRef
207207
onFocusCapture={[Function]}
208208
onLayout={[Function]}
209209
style={null}
210210
>
211211
<Text>
212212
2
213213
</Text>
214-
</View>
215-
</View>
214+
</View_withRef>
215+
</View_withRef>
216216
</RCTScrollView>
217217
`);
218218
});
@@ -260,7 +260,7 @@ test('React Native API assumption: aria-* props render directly on host View', (
260260
);
261261

262262
expect(screen.toJSON()).toMatchInlineSnapshot(`
263-
<View
263+
<View_withRef
264264
aria-busy={true}
265265
aria-checked={true}
266266
aria-disabled={true}

src/__tests__/render.test.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,13 @@ test('renders options.wrapper around node', () => {
160160

161161
expect(screen.getByTestId('wrapper')).toBeTruthy();
162162
expect(screen.toJSON()).toMatchInlineSnapshot(`
163-
<View
163+
<View_withRef
164164
testID="wrapper"
165165
>
166-
<View
166+
<View_withRef
167167
testID="inner"
168168
/>
169-
</View>
169+
</View_withRef>
170170
`);
171171
});
172172

@@ -184,15 +184,15 @@ test('renders options.wrapper around updated node', () => {
184184

185185
expect(screen.getByTestId('wrapper')).toBeTruthy();
186186
expect(screen.toJSON()).toMatchInlineSnapshot(`
187-
<View
187+
<View_withRef
188188
testID="wrapper"
189189
>
190-
<View
190+
<View_withRef
191191
accessibilityHint="test"
192192
accessibilityLabel="test"
193193
testID="inner"
194194
/>
195-
</View>
195+
</View_withRef>
196196
`);
197197
});
198198

src/helpers/__tests__/format-element.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ test('formatElement', () => {
1313
);
1414

1515
expect(formatElement(screen.getByTestId('view'), { mapProps: null })).toMatchInlineSnapshot(`
16-
"<View
16+
"<View_withRef
1717
testID="view"
1818
/>"
1919
`);

src/helpers/__tests__/text-input.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ test('getTextInputValue basic test', () => {
1818

1919
const view = screen.getByTestId('view');
2020
expect(() => getTextInputValue(view)).toThrowErrorMatchingInlineSnapshot(
21-
`"Element is not a "TextInput", but it has type "View"."`,
21+
`"Element is not a "TextInput", but it has type "View_withRef"."`,
2222
);
2323
});
2424

0 commit comments

Comments
 (0)