File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
packages/react-native/React/Fabric/Mounting/ComponentViews Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -616,10 +616,7 @@ - (BOOL)textInputShouldHandlePaste:(nonnull id<RCTBackedTextInputViewProtocol>)s
616
616
std::vector<DataTransferItem> dataTransferItems{};
617
617
[self buildDataTransferItems: dataTransferItems forPasteboard: pasteboard];
618
618
619
- TextInputEventEmitter::PasteEvent pasteEvent = {
620
- .dataTransferItems = dataTransferItems,
621
- };
622
- textInputEventEmitter.onPaste (pasteEvent);
619
+ textInputEventEmitter.onPaste ({.dataTransferItems = dataTransferItems});
623
620
}
624
621
625
622
// Only allow pasting text.
Original file line number Diff line number Diff line change 17
17
#import < react/renderer/core/LayoutMetrics.h>
18
18
#import < react/renderer/core/Props.h>
19
19
20
+ #if TARGET_OS_OSX // [macOS
21
+ #include < react/renderer/components/view/MouseEvent.h>
22
+ #endif // macOS]
23
+
20
24
NS_ASSUME_NONNULL_BEGIN
21
25
22
26
/* *
@@ -80,7 +84,7 @@ NS_ASSUME_NONNULL_BEGIN
80
84
- (void )prepareForRecycle NS_REQUIRES_SUPER;
81
85
82
86
#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 ;
84
88
#endif // macOS]
85
89
86
90
/*
You can’t perform that action at this time.
0 commit comments