import { PropsWithChildren } from 'react'; import { TextProps } from 'react-native'; import { createText, TextProps as TextPropsRestyle } from '@shopify/restyle'; import { AppTheme } from '~/view/theme'; const ThemedText = createText(); export interface AppTextProps extends TextPropsRestyle, TextProps { centered?: boolean; } /** * * @default variant : "bodyMedium" */ export const AppText = ({ centered, children, style, color = 'onSurface', ...restProps }: PropsWithChildren) => { return ( {children} ); };