Skip to content

Commit 7c5dfd9

Browse files
committed
chore: update TextInput onPaste event to allow multiple files on iOS
1 parent e562ace commit 7c5dfd9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

apple/MarkdownBackedTextInputDelegate.mm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ - (BOOL)textInputShouldSubmitOnReturn
9393

9494
// This method is added as a patch in the New Expensify app.
9595
// See https://github.com/Expensify/App/blob/fd4b9adc22144cb99db1a5634f8828a13fa8c374/patches/react-native%2B0.77.1%2B011%2BAdd-onPaste-to-TextInput.patch#L239
96-
- (void)textInputDidPaste:(NSString *)type withData:(NSString *)data
96+
- (void)textInputDidPaste:(NSArray<NSDictionary<NSString *, NSString *> *> *)items
9797
{
98-
void (*func)(id, SEL, NSString*, NSString*) = (void (*)(id, SEL, NSString*, NSString*))objc_msgSend;
99-
func(_originalTextInputDelegate, @selector(textInputDidPaste:withData:), type, data);
98+
void (*func)(id, SEL, NSArray<NSDictionary<NSString *, NSString *> *> *) = (void (*)(id, SEL, NSArray<NSDictionary<NSString *, NSString *> *> *))objc_msgSend;
99+
func(_originalTextInputDelegate, @selector(textInputDidPaste:), items);
100100
}
101101

102102
@end

0 commit comments

Comments
 (0)