Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { Image } from 'react-native';
import * as FileSystem from 'expo-file-system';
const { writeAsStringAsync, documentDirectory } = FileSystem;
const EncodingType = FileSystem.EncodingType || FileSystem.EncodingTypes;
import uuidv1 from 'uuid/v1';
import Element from './Element';
const b64Extensions = {
'/': 'jpg',
i: 'png',
R: 'gif',
U: 'webp',
};
function b64WithoutPrefix(b64) {
return b64.split(',')[1];
}