Skip to content

Commit 06a52c2

Browse files
authored
Update lock file to only bring in @types/react 19 - fix a few type errors from 18=>19 bump (#14726)
* Update to @types/react 19 * Change files
1 parent 2805c1e commit 06a52c2

File tree

27 files changed

+75
-154
lines changed

27 files changed

+75
-154
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "prerelease",
3+
"comment": "Update to @types/react 19",
4+
"packageName": "@office-iss/react-native-win32",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "prerelease",
3+
"comment": "Update to @types/react 19",
4+
"packageName": "react-native-windows",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}

packages/@office-iss/react-native-win32-tester/src/js/components/TextWin32Test.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,56 +121,56 @@ export const examples = [
121121
{
122122
title: 'Text Runs Example',
123123
description: 'text runs in action',
124-
render(): JSX.Element {
124+
render() {
125125
return (<TextRunsTest />);
126126
},
127127
},
128128
{
129129
title: 'Focusable Example',
130130
description: 'focusable in action',
131-
render(): JSX.Element {
131+
render() {
132132
return (<FocusableTextTest />);
133133
},
134134
},
135135
{
136136
title: 'Selectable Example',
137137
description: 'selectable in action',
138-
render(): JSX.Element {
138+
render() {
139139
return (<SelectableTextTest />);
140140
},
141141
},
142142
{
143143
title: 'TextStyle Example',
144144
description: 'TextStyles in action',
145-
render(): JSX.Element {
145+
render() {
146146
return (<TextStyleTest />);
147147
},
148148
},
149149
{
150150
title: 'Acessibility Example',
151151
description: 'Acessibility on Text in action',
152-
render(): JSX.Element {
152+
render() {
153153
return (<TextAcessibilityTest />);
154154
},
155155
},
156156
{
157157
title: 'Tooltip Example',
158158
description: 'tooltips in action',
159-
render(): JSX.Element {
159+
render() {
160160
return (<TooltipTextTest />);
161161
},
162162
},
163163
{
164164
title: 'TextPromotion Example',
165165
description: 'dynamic increases in focusability in action',
166-
render(): JSX.Element {
166+
render() {
167167
return (<TextPromotionTest />);
168168
},
169169
},
170170
{
171171
title: 'Focus and Blur Example',
172172
description: 'onFocus/onBlur in action',
173-
render(): JSX.Element {
173+
render() {
174174
return (<BlurringAndFocusingTextTest />);
175175
},
176176
},

packages/@office-iss/react-native-win32-tester/src/js/components/ViewWin32Test.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ export const examples = [
285285
{
286286
title: 'focus() method example',
287287
description: 'Each of these black boxes moves focus to the ViewWin32 on the right',
288-
render(): JSX.Element {
288+
render() {
289289
return (
290290
<ViewWin32>
291291
<FocusMoverTestComponent />
@@ -298,35 +298,35 @@ export const examples = [
298298
{
299299
title: 'KeyboardEvents example',
300300
description: 'Native keyboarding has been prevented',
301-
render(): JSX.Element {
301+
render() {
302302
return <KeyboardTestComponent />;
303303
},
304304
},
305305
{
306306
title: 'Hover example',
307307
description: 'Hover a rainbow',
308-
render(): JSX.Element {
308+
render() {
309309
return <HoverExample />;
310310
},
311311
},
312312
{
313313
title: 'Tooltip example',
314314
description: 'Displays a tooltip on hover',
315-
render(): JSX.Element {
315+
render() {
316316
return <ToolTipExample />;
317317
},
318318
},
319319
{
320320
title: 'Cursor example',
321321
description: 'Each of these boxes should display a different cursor',
322-
render(): JSX.Element {
322+
render() {
323323
return <CursorExample />;
324324
},
325325
},
326326
{
327327
title: 'EnableFocusRing example',
328328
description: 'Displays focus visuals that are driven by native',
329-
render(): JSX.Element {
329+
render() {
330330
return <EnableFocusRingExample />;
331331
},
332332
},

packages/@office-iss/react-native-win32-tester/src/js/examples-win32/Accessibility/AccessibilityExampleWin32.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ const getItemLayout = (data: ArrayLike<IListProps>, index: number) => ({ length:
329329
const keyExtractor = (item: IListProps) => item.label.toString();
330330

331331
interface IFlatListProps {
332-
renderItem: (item: ListRenderItemInfo<IListProps>) => JSX.Element;
332+
renderItem: (item: ListRenderItemInfo<IListProps>) => React.JSX.Element;
333333
getItemLayout?: (
334334
data: ArrayLike<IListProps>,
335335
index: number

packages/@office-iss/react-native-win32-tester/src/js/examples-win32/Theming/ThemingModuleAPI.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const styles = StyleSheet.create({
2424

2525
const Theming = NativeModules.Theming;
2626

27-
const ifModuleAvailable = (wrappedComponent: JSX.Element) => {
27+
const ifModuleAvailable = (wrappedComponent: React.JSX.Element) => {
2828
return Theming ? wrappedComponent : <Text>Theming Native Module not available</Text>;
2929
};
3030

packages/@office-iss/react-native-win32/src-win/Libraries/Components/TextInput/Tests/TextInputTest.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -114,49 +114,49 @@ export const examples = [
114114
{
115115
title: 'Autofocus Example',
116116
description: 'autoFocus in action',
117-
render(): JSX.Element {
117+
render() {
118118
return (<AutoFocusingTextInputTest />);
119119
},
120120
},
121121
{
122122
title: 'Placeholders Example',
123123
description: 'placeholder in action',
124-
render(): JSX.Element {
124+
render() {
125125
return (<PlaceholderTextInputTest />);
126126
},
127127
},
128128
{
129129
title: 'Controlled Example',
130130
description: 'Controlling inputs in action',
131-
render(): JSX.Element {
131+
render() {
132132
return (<ControllingTextInputTest />);
133133
},
134134
},
135135
{
136136
title: 'Focus and Blur Example',
137137
description: 'onFocus/onBlur in action',
138-
render(): JSX.Element {
138+
render() {
139139
return (<BlurringAndFocusingTextInputTest />);
140140
},
141141
},
142142
{
143143
title: 'ContentSizeChange Example',
144144
description: 'onContentSizeChange in action',
145-
render(): JSX.Element {
145+
render() {
146146
return (<LayoutListeningTextInputTest />);
147147
},
148148
},
149149
{
150150
title: 'Control via onKeyPress Example',
151151
description: 'onKeyPress in action',
152-
render(): JSX.Element {
152+
render() {
153153
return (<KeyPressListeningTextInputTest />);
154154
},
155155
},
156156
{
157157
title: 'Super Styling Example',
158158
description: 'Styling in action',
159-
render(): JSX.Element {
159+
render() {
160160
return (<StyleTextInputTest />);
161161
},
162162
},

packages/@office-iss/react-native-win32/src-win/Libraries/Components/Touchable/Tests/TouchableWin32Test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -481,21 +481,21 @@ export const examples = [
481481
{
482482
title: 'TouchableWithoutFeedback Example',
483483
description: 'A simple example implementation of without feedback behavior',
484-
render(): JSX.Element {
484+
render() {
485485
return <TouchableWithoutFeedbackExample />;
486486
},
487487
},
488488
{
489489
title: 'TouchableHighlight Example',
490490
description: 'A simple example implementation of highlight behavior',
491-
render(): JSX.Element {
491+
render() {
492492
return <TouchableHighlightExample />;
493493
},
494494
},
495495
{
496496
title: 'Imperative Focus on TouchableWin32 Example',
497497
description: 'A simple example implementation of imperative focus behavior',
498-
render(): JSX.Element {
498+
render() {
499499
return <TouchableFocusExample />;
500500
},
501501
}

packages/@office-iss/react-native-win32/src-win/Libraries/Image/Tests/ImageWin32Test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const examples = [
1010
{
1111
title: 'Win32 Image control test',
1212
description: 'Test Image',
13-
render(): JSX.Element {
13+
render() {
1414
return (
1515
<Image
1616
style={ { width: 100, height: 100 } }

packages/@react-native-windows/tester/src/js/examples-win/Accessibility/AccessibilityExampleWindows.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -594,31 +594,31 @@ export const description = 'Usage of accessibility properties.';
594594
export const examples = [
595595
{
596596
title: 'Label, Hint',
597-
render: function (): JSX.Element {
597+
render: function () {
598598
return <AccessibilityBaseExample />;
599599
},
600600
},
601601
{
602602
title: 'Touchables',
603-
render: function (): JSX.Element {
603+
render: function () {
604604
return <TouchableExamples />;
605605
},
606606
},
607607
{
608608
title: 'HighContrast',
609-
render: function (): JSX.Element {
609+
render: function () {
610610
return <HighContrastExample />;
611611
},
612612
},
613613
{
614614
title: 'States',
615-
render: function (): JSX.Element {
615+
render: function () {
616616
return <AccessibilityStateExamples />;
617617
},
618618
},
619619
{
620620
title: 'Lists',
621-
render: function (): JSX.Element {
621+
render: function () {
622622
return <AccessibilityListExamples />;
623623
},
624624
},

0 commit comments

Comments
 (0)