Skip to main content

Txt

Txt.tsx
import { Text, TextProps } from 'react-native';
import { TextSxProps, useSx } from '@react-native-styled-system/core';

type TxtProps = {} & TextSxProps & TextProps;
const Txt = (props: TxtProps) => {
const { getStyle, filteredProps } = useSx(props, { styleType: 'TextStyle' });
return <Text style={getStyle()} {...filteredProps} />;
};

export { Txt };
export type { TxtProps };