Skip to content

Commit 2d4bee4

Browse files
committed
build fixes
1 parent 81577e3 commit 2d4bee4

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

packages/react-native/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -616,10 +616,7 @@ - (BOOL)textInputShouldHandlePaste:(nonnull id<RCTBackedTextInputViewProtocol>)s
616616
std::vector<DataTransferItem> dataTransferItems{};
617617
[self buildDataTransferItems:dataTransferItems forPasteboard:pasteboard];
618618

619-
TextInputEventEmitter::PasteEvent pasteEvent = {
620-
.dataTransferItems = dataTransferItems,
621-
};
622-
textInputEventEmitter.onPaste(pasteEvent);
619+
textInputEventEmitter.onPaste({.dataTransferItems = dataTransferItems});
623620
}
624621

625622
// Only allow pasting text.

packages/react-native/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
#import <react/renderer/core/LayoutMetrics.h>
1818
#import <react/renderer/core/Props.h>
1919

20+
#if TARGET_OS_OSX // [macOS
21+
#include <react/renderer/components/view/MouseEvent.h>
22+
#endif // macOS]
23+
2024
NS_ASSUME_NONNULL_BEGIN
2125

2226
/**
@@ -80,7 +84,7 @@ NS_ASSUME_NONNULL_BEGIN
8084
- (void)prepareForRecycle NS_REQUIRES_SUPER;
8185

8286
#if TARGET_OS_OSX // [macOS
83-
- (void)buildDataTransferItems:(std::vector<DataTransferItem> &)dataTransferItems forPasteboard:(NSPasteboard *)pasteboard;
87+
- (void)buildDataTransferItems:(std::vector<facebook::react::DataTransferItem> &)dataTransferItems forPasteboard:(NSPasteboard *)pasteboard;
8488
#endif // macOS]
8589

8690
/*

0 commit comments

Comments
 (0)