1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00
This commit is contained in:
Zhiyuan Zheng
2021-01-17 22:37:05 +01:00
parent 813f6b57c4
commit f977fdfa8b
44 changed files with 252 additions and 158 deletions

View File

@ -1,5 +1,6 @@
import React from 'react'
import { Image, StyleSheet, Text } from 'react-native'
import { StyleSheet, Text } from 'react-native'
import { Image } from 'react-native-expo-image-cache'
import { useTheme } from '@utils/styles/ThemeManager'
import { StyleConstants } from '@utils/styles/constants'
@ -49,10 +50,7 @@ const ParseEmojis: React.FC<Props> = ({
<Text key={i}>
{/* When emoji starts a paragraph, lineHeight will break */}
{i === 0 ? <Text> </Text> : null}
<Image
source={{ uri: emojis[emojiIndex].url }}
style={[styles.image]}
/>
<Image uri={emojis[emojiIndex].url} style={[styles.image]} />
</Text>
)
} else {