1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Remove all FastImage

This commit is contained in:
Zhiyuan Zheng
2021-03-19 21:44:52 +01:00
parent e620754c15
commit 15cf29d952
8 changed files with 21 additions and 19 deletions

View File

@ -19,7 +19,7 @@ import { Blurhash } from 'react-native-blurhash'
export interface Props {
hidden?: boolean
uri: { preview?: string; original: string; remote?: string }
uri: { preview?: string; original?: string; remote?: string }
blurhash?: string
dimension?: { width: number; height: number }
onPress?: () => void

View File

@ -3,8 +3,7 @@ import { StyleConstants } from '@utils/styles/constants'
import { adaptiveScale } from '@utils/styles/scaling'
import { useTheme } from '@utils/styles/ThemeManager'
import React, { useMemo } from 'react'
import { StyleSheet, Text } from 'react-native'
import FastImage from 'react-native-fast-image'
import { Image, StyleSheet, Text } from 'react-native'
import { useSelector } from 'react-redux'
const regexEmoji = new RegExp(/(:[A-Za-z0-9_]+:)/)
@ -70,7 +69,7 @@ const ParseEmojis = React.memo(
<Text key={i}>
{/* When emoji starts a paragraph, lineHeight will break */}
{i === 0 ? <Text> </Text> : null}
<FastImage
<Image
key={adaptiveFontsize}
source={{ uri: emojis[emojiIndex].url }}
style={styles.image}