Skip to content

Commit 6a218e0

Browse files
author
Harini Malothu
committed
Resolve merge conflicts for RN 0.85.0-nightly-20260114-f15985f4f integration
1 parent 7d0474d commit 6a218e0

14 files changed

Lines changed: 20 additions & 112 deletions

File tree

packages/@office-iss/react-native-win32/src-win/Libraries/Components/TextInput/TextInput.flow.win32.js

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -512,20 +512,17 @@ export type TextInputAndroidProps = Readonly<{
512512
underlineColorAndroid?: ?ColorValue,
513513
}>;
514514

515-
<<<<<<< Upstream
516-
type TextInputBaseProps = Readonly<{
517-
=======
518515
// [Windows
519516

520-
type SubmitKeyEvent = $ReadOnly<{|
517+
type SubmitKeyEvent = Readonly<{|
521518
altKey?: ?boolean,
522519
ctrlKey?: ?boolean,
523520
metaKey?: ?boolean,
524521
shiftKey?: ?boolean,
525522
code: string,
526523
|}>;
527524

528-
export type TextInputWindowsProps = $ReadOnly<{|
525+
export type TextInputWindowsProps = Readonly<{|
529526
/**
530527
* If `true`, clears the text field synchronously before `onSubmitEditing` is emitted.
531528
* @platform windows
@@ -541,8 +538,7 @@ export type TextInputWindowsProps = $ReadOnly<{|
541538

542539
// Windows]
543540

544-
type TextInputBaseProps = $ReadOnly<{
545-
>>>>>>> Override
541+
type TextInputBaseProps = Readonly<{
546542
/**
547543
* When provided, the text input will only accept drag and drop events for the specified
548544
* types. If null or not provided, the text input will accept all types of drag and drop events.
@@ -1068,13 +1064,8 @@ type TextInputBaseProps = $ReadOnly<{
10681064
textAlign?: ?('left' | 'center' | 'right'),
10691065
}>;
10701066

1071-
<<<<<<< Upstream
10721067
export type TextInputProps = Readonly<{
1073-
...Omit<ViewProps, 'style' | 'experimental_accessibilityOrder'>,
1074-
=======
1075-
export type TextInputProps = $ReadOnly<{
10761068
...Omit<ViewProps, 'style'>,
1077-
>>>>>>> Override
10781069
...TextInputIOSProps,
10791070
...TextInputAndroidProps,
10801071
...TextInputBaseProps,

packages/@office-iss/react-native-win32/src-win/Libraries/Components/View/ViewPropTypes.win32.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -532,11 +532,8 @@ type ViewBaseProps = Readonly<{
532532
accessibilityControls?: ?string,
533533
}>;
534534

535-
<<<<<<< Upstream
536-
export type ViewProps = Readonly<{
537-
=======
538535
// [Windows
539-
export type HandledKeyboardEvent = $ReadOnly<{|
536+
export type HandledKeyboardEvent = Readonly<{|
540537
altKey?: ?boolean,
541538
ctrlKey?: ?boolean,
542539
metaKey?: ?boolean,
@@ -545,7 +542,7 @@ export type HandledKeyboardEvent = $ReadOnly<{|
545542
handledEventPhase?: number,
546543
|}>;
547544

548-
type ViewPropsWindows = $ReadOnly<{|
545+
type ViewPropsWindows = Readonly<{|
549546
/**
550547
* Key up event
551548
*
@@ -593,8 +590,7 @@ type ViewPropsWindows = $ReadOnly<{|
593590
|}>;
594591
// Windows]
595592

596-
export type ViewProps = $ReadOnly<{
597-
>>>>>>> Override
593+
export type ViewProps = Readonly<{
598594
...DirectEventProps,
599595
...GestureResponderHandlers,
600596
...MouseEventProps,

packages/@office-iss/react-native-win32/src-win/Libraries/Types/CoreEventTypes.win32.js

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -230,14 +230,10 @@ export interface NativePointerEvent extends NativeMouseEvent {
230230

231231
export type PointerEvent = NativeSyntheticEvent<NativePointerEvent>;
232232

233-
<<<<<<< Upstream
234233
export type NativeTouchEvent = Readonly<{
235-
=======
236-
export type NativeTouchEvent = $ReadOnly<{
237234
altKey: ?boolean, // TODO(macOS)
238235

239236
button: ?number, // TODO(macOS)
240-
>>>>>>> Override
241237
/**
242238
* Array of all touch events that have changed since the last event
243239
*/
@@ -342,13 +338,9 @@ export type FocusEvent = NativeSyntheticEvent<TargetedEvent>;
342338
// introduced for react-native-web. Replace typings with our values to catch
343339
// anything dependent on react-native-web specific values
344340
export type MouseEvent = NativeSyntheticEvent<
345-
<<<<<<< Upstream
346341
Readonly<{
347-
=======
348-
$ReadOnly<{
349342
target: number,
350343
identifier: number,
351-
>>>>>>> Override
352344
clientX: number,
353345
clientY: number,
354346
pageX: number,
@@ -369,13 +361,8 @@ export type MouseEvent = NativeSyntheticEvent<
369361
altKey: boolean,
370362
}>,
371363
>;
372-
<<<<<<< Upstream
373-
374-
export type KeyEvent = Readonly<{
375-
=======
376364
// Windows]
377-
export type KeyEvent = $ReadOnly<{
378-
>>>>>>> Override
365+
export type KeyEvent = Readonly<{
379366
/**
380367
* The actual key that was pressed. For example, F would be "f" or "F" depending on the shift key.
381368
* @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key

packages/@office-iss/react-native-win32/src-win/Libraries/Utilities/Dimensions.win32.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,7 @@ class Dimensions {
6464
*
6565
* @param {DimensionsPayload} dims Simple string-keyed object of dimensions to set
6666
*/
67-
<<<<<<< Upstream
6867
static set(dims: Readonly<DimensionsPayload>): void {
69-
// We calculate the window dimensions in JS so that we don't encounter loss of
70-
// precision in transferring the dimensions (which could be non-integers) over
71-
// the bridge.
72-
=======
73-
static set(dims: $ReadOnly<DimensionsPayload>): void {
74-
>>>>>>> Override
7568
let {screen, window} = dims;
7669
const {windowPhysicalPixels} = dims;
7770
if (windowPhysicalPixels) {

packages/@react-native-windows/tester/src/js/examples/FlatList/BaseFlatListExample.windows.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,7 @@ const Item = ({item, separators}: ListRenderItemInfo<string>) => {
5959
);
6060
};
6161

62-
<<<<<<< Upstream
63-
type Props = Readonly<{
64-
=======
6562
type Props = {
66-
>>>>>>> Override
6763
exampleProps: Partial<React.ElementConfig<typeof FlatList>>,
6864
onTest?: ?() => void,
6965
testLabel?: ?string,

packages/@react-native-windows/tester/src/js/examples/FlatList/FlatList-basic.windows.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,8 @@ const VIEWABILITY_CONFIG = {
5555
waitForInteraction: true,
5656
};
5757

58-
<<<<<<< Upstream
59-
type Props = Readonly<{}>;
60-
type State = {
61-
=======
62-
type Props = $ReadOnly<{||}>;
58+
type Props = Readonly<{||}>;
6359
type State = {|
64-
>>>>>>> Override
6560
data: Array<Item>,
6661
first: number,
6762
last: number,

vnext/src-win/Libraries/Components/ScrollView/ScrollView.windows.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -673,13 +673,8 @@ type ScrollViewBaseProps = Readonly<{
673673
scrollViewRef?: React.RefSetter<PublicScrollViewInstance>,
674674
}>;
675675

676-
<<<<<<< Upstream
677676
export type ScrollViewProps = Readonly<{
678-
...Omit<ViewProps, 'experimental_accessibilityOrder'>,
679-
=======
680-
export type ScrollViewProps = $ReadOnly<{
681677
...ViewProps,
682-
>>>>>>> Override
683678
...ScrollViewPropsIOS,
684679
...ScrollViewPropsAndroid,
685680
...ScrollViewBaseProps,

vnext/src-win/Libraries/Components/TextInput/TextInput.flow.windows.js

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -517,20 +517,17 @@ export type TextInputAndroidProps = Readonly<{
517517
underlineColorAndroid?: ?ColorValue,
518518
}>;
519519

520-
<<<<<<< Upstream
521-
type TextInputBaseProps = Readonly<{
522-
=======
523520
// [Windows
524521

525-
type SubmitKeyEvent = $ReadOnly<{|
522+
type SubmitKeyEvent = Readonly<{|
526523
altKey?: ?boolean,
527524
ctrlKey?: ?boolean,
528525
metaKey?: ?boolean,
529526
shiftKey?: ?boolean,
530527
code: string,
531528
|}>;
532529

533-
export type TextInputWindowsProps = $ReadOnly<{|
530+
export type TextInputWindowsProps = Readonly<{|
534531
/**
535532
* If `true`, clears the text field synchronously before `onSubmitEditing` is emitted.
536533
* @platform windows
@@ -579,8 +576,7 @@ export type TextInputWindowsProps = $ReadOnly<{|
579576

580577
// Windows]
581578

582-
type TextInputBaseProps = $ReadOnly<{
583-
>>>>>>> Override
579+
type TextInputBaseProps = Readonly<{
584580
/**
585581
* When provided, the text input will only accept drag and drop events for the specified
586582
* types. If null or not provided, the text input will accept all types of drag and drop events.
@@ -1106,13 +1102,8 @@ type TextInputBaseProps = $ReadOnly<{
11061102
textAlign?: ?('left' | 'center' | 'right'),
11071103
}>;
11081104

1109-
<<<<<<< Upstream
11101105
export type TextInputProps = Readonly<{
1111-
...Omit<ViewProps, 'style' | 'experimental_accessibilityOrder'>,
1112-
=======
1113-
export type TextInputProps = $ReadOnly<{
11141106
...Omit<ViewProps, 'style'>,
1115-
>>>>>>> Override
11161107
...TextInputIOSProps,
11171108
...TextInputAndroidProps,
11181109
...TextInputBaseProps,

vnext/src-win/Libraries/Components/TextInput/WindowsTextInputNativeComponent.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,7 @@ export type ReturnKeyType =
6363

6464
export type SubmitBehavior = 'submit' | 'blurAndSubmit' | 'newline';
6565

66-
<<<<<<< Upstream
67-
export type AndroidTextInputNativeProps = Readonly<{
68-
=======
69-
export type NativeProps = $ReadOnly<{
70-
>>>>>>> Override
66+
export type NativeProps = Readonly<{
7167
// This allows us to inherit everything from ViewProps except for style (see below)
7268
// This must be commented for Fabric codegen to work.
7369
...Omit<ViewProps, 'style'>,

vnext/src-win/Libraries/Components/Touchable/TouchableHighlight.windows.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,16 @@ type IOSProps = Readonly<{
3737
hasTVPreferredFocus?: ?boolean,
3838
}>;
3939

40-
<<<<<<< Upstream
41-
type TouchableHighlightBaseProps = Readonly<{
42-
=======
4340
// [Windows
44-
type WindowProps = $ReadOnly<{
41+
type WindowProps = Readonly<{
4542
onAccessibilityTap?: ?() => void,
4643
//onMouseEnter: ?() => void,
4744
//onMouseLeave: ?() => void,
4845
//tabIndex: ?number,
4946
}>;
5047
// Windows]
5148

52-
type TouchableHighlightBaseProps = $ReadOnly<{
53-
>>>>>>> Override
49+
type TouchableHighlightBaseProps = Readonly<{
5450
/**
5551
* Determines what the opacity of the wrapped view should be when touch is active.
5652
*/

0 commit comments

Comments
 (0)