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-16 00:00:31 +01:00
parent 9f4a4e908c
commit 5ec9118fb2
31 changed files with 607 additions and 416 deletions

View File

@@ -1,27 +1,25 @@
import { ParseEmojis } from '@components/Parse'
import { useNavigation } from '@react-navigation/native'
import { StyleConstants } from '@utils/styles/constants'
import { useTheme } from '@utils/styles/ThemeManager'
import React from 'react'
import { Image, Pressable, StyleSheet, Text, View } from 'react-native'
import { Pressable, StyleSheet, Text, View } from 'react-native'
import GracefullyImage from './GracefullyImage'
export interface Props {
account: Mastodon.Account
onPress: () => void
}
const ComponentAccount: React.FC<Props> = ({ account }) => {
const navigation = useNavigation()
const ComponentAccount: React.FC<Props> = ({ account, onPress }) => {
const { theme } = useTheme()
return (
<Pressable
style={[styles.itemDefault, styles.itemAccount]}
onPress={() => {
navigation.push('Screen-Shared-Account', { account })
}}
onPress={onPress}
>
<Image
source={{ uri: account.avatar_static }}
<GracefullyImage
uri={{ original: account.avatar_static }}
style={styles.itemAccountAvatar}
/>
<View>