verdnatura-chat/app/views/ShareView/utils.ts

6 lines
236 B
TypeScript

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