mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Updates
This commit is contained in:
@ -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'
|
||||
}
|
||||
]}
|
||||
>
|
||||
|
Reference in New Issue
Block a user