0.0.3 • Published 4 years ago

@monadstech/react-native-design-system-view v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

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" />;
};