UNPKG

stream-chat-react-native-core

Version:

The official React Native and Expo components for Stream Chat, a service for building chat applications

12 lines 450 B
Object.defineProperty(exports, "__esModule", { value: true }); exports.getUrlOfImageAttachment = getUrlOfImageAttachment; var _types = require("../types/types"); function getUrlOfImageAttachment(image, giphyVersion = 'fixed_height') { if (image.type === _types.FileTypes.Giphy) { return image.giphy?.[giphyVersion]?.url || image.thumb_url; } return image.image_url || image.asset_url; } //# sourceMappingURL=getUrlOfImageAttachment.js.map