2023-03-13 20:47:52 +00:00
|
|
|
// import 'react-native-svg'
|
|
|
|
|
|
|
|
import type { ColorTokens } from '@tamagui/core'
|
2023-01-20 14:06:26 +00:00
|
|
|
import type { SvgProps } from 'react-native-svg'
|
2023-01-17 13:32:04 +00:00
|
|
|
|
2023-03-13 20:47:52 +00:00
|
|
|
declare module 'react-native-svg' {
|
|
|
|
export interface SvgProps {
|
|
|
|
xmlns?: string
|
|
|
|
xmlnsXlink?: string
|
|
|
|
xlinkHref?: string
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// type GetTokenString<A> = A extends string ? `$${A}` : `$${string}`
|
|
|
|
// export type ColorTokens =
|
|
|
|
// | GetTokenString<keyof Tokens['color']>
|
|
|
|
// | GetTokenString<keyof ThemeParsed>
|
2023-01-20 14:06:26 +00:00
|
|
|
|
|
|
|
export type IconProps = SvgProps & {
|
2023-03-13 20:47:52 +00:00
|
|
|
// size?: number | SizeTokens
|
2023-01-20 14:06:26 +00:00
|
|
|
color?: ColorTokens
|
2023-03-13 20:47:52 +00:00
|
|
|
// style?: StyleObject
|
2023-01-17 13:32:04 +00:00
|
|
|
}
|