@monadstech/react-native-design-system-text
v0.0.1
Published
Text Component for React Native Design Systems
Downloads
3
Readme
react-native-design-system-text
React Native Design System Text Component
How to use
//define config
const config: TextConfigType = {
size: {
h1: 21,
h2: 19,
h3: 16,
p: 14,
},
};
// create custom-charged text component
const {CustomText} = createTextSystem(config);
// use it in your components
export const CustomTextExample: FC<{}> = () => {
return <CustomText size="h1" />;
};