PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/expo-asset/build
Просмотр файла: ImageAssets.js
/* eslint-env browser */
import { getFilename } from './AssetUris';
export function isImageType(type) {
return /^(jpeg|jpg|gif|png|bmp|webp|heic)$/i.test(type);
}
export function getImageInfoAsync(url) {
return new Promise((resolve, reject) => {
const img = new Image();
img.onerror = reject;
img.onload = () => {
resolve({
name: getFilename(url),
width: img.naturalWidth,
height: img.naturalHeight,
});
};
img.src = url;
});
}
//# sourceMappingURL=ImageAssets.js.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!