Skip to content

Commit 995664d

Browse files
authored
Merge pull request Expensify#66632 from callstack-internal/fix/65317-pasting-from-clipboard
Fix pasting from clipboard on ios
2 parents 309bc78 + cd94182 commit 995664d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/libs/fileDownload/FileUtils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,10 @@ const normalizeFileObject = (file: FileObject): Promise<FileObject> => {
406406
}
407407

408408
const isAndroidNative = getPlatform() === CONST.PLATFORM.ANDROID;
409+
const isIOSNative = getPlatform() === CONST.PLATFORM.IOS;
410+
const isNativePlatform = isAndroidNative || isIOSNative;
409411

410-
if (!isAndroidNative || 'size' in file) {
412+
if (!isNativePlatform || 'size' in file) {
411413
return Promise.resolve(file);
412414
}
413415

0 commit comments

Comments
 (0)