impl starring everywhere

This commit is contained in:
austinried
2021-08-10 09:42:20 +09:00
parent 0a3d542156
commit 075286e939
6 changed files with 121 additions and 62 deletions

14
app/components/Star.tsx Normal file
View File

@@ -0,0 +1,14 @@
import colors from '@app/styles/colors'
import React from 'react'
import IconFA from 'react-native-vector-icons/FontAwesome'
const Star = React.memo<{
starred: boolean
size: number
}>(({ starred, size }) => {
return (
<IconFA name={starred ? 'star' : 'star-o'} color={starred ? colors.accent : colors.text.secondary} size={size} />
)
})
export default Star