import React from 'react' import {Text as RNText, TextProps} from 'react-native' import {s} from '../../../lib/styles' import {useTheme, TypographyVariant} from '../../../lib/ThemeContext' export type CustomTextProps = TextProps & { type?: TypographyVariant } export function Text({ type = 'body1', children, style, ...props }: React.PropsWithChildren) { const theme = useTheme() const typography = theme.typography[type] return ( {children} ) }