diff --git a/apple/MarkdownBackedTextInputDelegate.mm b/apple/MarkdownBackedTextInputDelegate.mm index 87335ccb..3a0b89e0 100644 --- a/apple/MarkdownBackedTextInputDelegate.mm +++ b/apple/MarkdownBackedTextInputDelegate.mm @@ -92,11 +92,17 @@ - (BOOL)textInputShouldSubmitOnReturn } // This method is added as a patch in the New Expensify app. -// See https://github.com/Expensify/App/blob/fd4b9adc22144cb99db1a5634f8828a13fa8c374/patches/react-native%2B0.77.1%2B011%2BAdd-onPaste-to-TextInput.patch#L239 +// See https://github.com/Expensify/App/blob/9a0afa06d2c35d6ef1928d944cf7d28c17dd2bb4/patches/react-native/react-native%2B0.81.4%2B011%2BAdd-onPaste-to-TextInput.patch - (void)textInputDidPaste:(NSString *)type withData:(NSString *)data { void (*func)(id, SEL, NSString*, NSString*) = (void (*)(id, SEL, NSString*, NSString*))objc_msgSend; func(_originalTextInputDelegate, @selector(textInputDidPaste:withData:), type, data); } + +- (void)textInputDidPaste:(NSArray *> *)items +{ + void (*func)(id, SEL, NSArray *> *) = (void (*)(id, SEL, NSArray *> *))objc_msgSend; + func(_originalTextInputDelegate, @selector(textInputDidPaste:), items); +} @end