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

Use svg icons instead of expo ones

Possibility to control `strokeWidth`
This commit is contained in:
Zhiyuan Zheng
2021-01-03 02:00:26 +01:00
parent 5a80359739
commit dceaf8d25c
62 changed files with 495 additions and 427 deletions

View File

@ -1,4 +1,4 @@
import { Feather } from '@expo/vector-icons'
import Icon from '@components/Icon'
import { StyleConstants } from '@utils/styles/constants'
import { useTheme } from '@utils/styles/ThemeManager'
import { ColorDefinitions } from '@utils/styles/themes'
@ -18,7 +18,7 @@ export interface Props {
switchDisabled?: boolean
switchOnValueChange?: () => void
iconBack?: 'chevron-right' | 'check'
iconBack?: 'ChevronRight' | 'Check'
iconBackColor?: ColorDefinitions
loading?: boolean
@ -63,7 +63,7 @@ const MenuRow: React.FC<Props> = ({
<View style={styles.core}>
<View style={styles.front}>
{iconFront && (
<Feather
<Icon
name={iconFront}
size={StyleConstants.Font.Size.M + 2}
color={theme[iconFrontColor]}
@ -116,7 +116,7 @@ const MenuRow: React.FC<Props> = ({
) : null}
{iconBack ? (
<>
<Feather
<Icon
name={iconBack}
size={StyleConstants.Font.Size.M + 2}
color={theme[iconBackColor]}