We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cafd1a2 commit d0c0076Copy full SHA for d0c0076
packages/react-native/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm
@@ -619,10 +619,7 @@ - (BOOL)textInputShouldHandlePaste:(nonnull id<RCTBackedTextInputViewProtocol>)s
619
std::vector<DataTransferItem> dataTransferItems{};
620
[self buildDataTransferItems:dataTransferItems forPasteboard:pasteboard];
621
622
- TextInputEventEmitter::PasteEvent pasteEvent = {
623
- .dataTransferItems = dataTransferItems,
624
- };
625
- textInputEventEmitter.onPaste(pasteEvent);
+ textInputEventEmitter.onPaste({.dataTransferItems = dataTransferItems});
626
}
627
628
// Only allow pasting text.
0 commit comments