expo-popcore-old/lib/utils/image.ts

11 lines
277 B
TypeScript

export const getImageHeight = (type: string, videoHeight: number, imageHeight: number, defaultHeight: number): number => {
switch (type) {
case 'VIDEO':
return videoHeight;
case 'IMAGE':
return imageHeight;
default:
return defaultHeight;
}
};