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-04 14:55:34 +01:00
parent e9ea0ed71e
commit 811964e10f
15 changed files with 136 additions and 98 deletions

View File

@ -1,3 +1,4 @@
import { StyleConstants } from '@root/utils/styles/constants'
import React, { createElement } from 'react'
import { StyleProp, View, ViewStyle } from 'react-native'
import * as FeatherIcon from 'react-native-feather'
@ -8,7 +9,6 @@ export interface Props {
color: string
fill?: string
strokeWidth?: number
inline?: boolean // When used in line of text, need to drag it down
style?: StyleProp<ViewStyle>
}
@ -18,7 +18,6 @@ const Icon: React.FC<Props> = ({
color,
fill,
strokeWidth = 2,
inline = false,
style
}) => {
return (
@ -29,8 +28,7 @@ const Icon: React.FC<Props> = ({
width: size,
height: size,
justifyContent: 'center',
alignItems: 'center',
marginBottom: inline ? -size * 0.125 : undefined
alignItems: 'center'
}
]}
>