vn-verdnaturachat/app/views/ShareView/utils.ts

6 lines
233 B
TypeScript
Raw Normal View History

import { isAndroid } from '../../utils/deviceInfo';
// Limit preview to 3MB on iOS share extension
export const allowPreview = (isShareExtension: boolean, size: number): boolean =>
isAndroid || !isShareExtension || size < 3000000;