mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
Update Android build to support gif Use GIF format instead of animated webp Show GIFs in chat messages Display GIF over tile Add Giphy button in reactions menu Added Giphy dialog Fix isGifMessage to also allow upper case
28 lines
566 B
JavaScript
28 lines
566 B
JavaScript
import React from 'react';
|
|
import { Image, View } from 'react-native';
|
|
|
|
import { GIF_PREFIX } from '../../../gifs/constants';
|
|
|
|
import styles from './styles';
|
|
|
|
type Props = {
|
|
|
|
/**
|
|
* The formatted gif message.
|
|
*/
|
|
message: string
|
|
}
|
|
|
|
const GifMessage = ({ message }: Props) => {
|
|
const url = message.substring(GIF_PREFIX.length, message.length - 1);
|
|
|
|
return (<View
|
|
style = { styles.gifContainer }>
|
|
<Image
|
|
source = {{ uri: url }}
|
|
style = { styles.gifImage } />
|
|
</View>);
|
|
};
|
|
|
|
export default GifMessage;
|