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

5 lines
206 B
JavaScript
Raw Normal View History

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