Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

GifMessage.tsx 597B

12345678910111213141516171819202122232425262728
  1. import React from 'react';
  2. import { Image, ImageStyle, View } from 'react-native';
  3. import { extractGifURL } from '../../../gifs/function.any';
  4. import styles from './styles';
  5. interface IProps {
  6. /**
  7. * The formatted gif message.
  8. */
  9. message: string;
  10. }
  11. const GifMessage = ({ message }: IProps) => {
  12. const url = extractGifURL(message);
  13. return (<View
  14. id = 'gif-message'
  15. style = { styles.gifContainer }>
  16. <Image
  17. source = {{ uri: url }}
  18. style = { styles.gifImage as ImageStyle } />
  19. </View>);
  20. };
  21. export default GifMessage;