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

6 lines
233 B
TypeScript

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;