mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
29 lines
625 B
TypeScript
29 lines
625 B
TypeScript
import React from 'react';
|
|
import { Image, ImageStyle, View } from 'react-native';
|
|
|
|
import { GIF_PREFIX } from '../../../gifs/constants';
|
|
|
|
import styles from './styles';
|
|
|
|
interface IProps {
|
|
|
|
/**
|
|
* The formatted gif message.
|
|
*/
|
|
message: string;
|
|
}
|
|
|
|
const GifMessage = ({ message }: IProps) => {
|
|
const url = message.substring(GIF_PREFIX.length, message.length - 1);
|
|
|
|
return (<View
|
|
id = 'gif-message'
|
|
style = { styles.gifContainer }>
|
|
<Image
|
|
source = {{ uri: url }}
|
|
style = { styles.gifImage as ImageStyle } />
|
|
</View>);
|
|
};
|
|
|
|
export default GifMessage;
|