react-ui-kit / expo-ui-kit

expo-ui-kit - a components based React-Native UI Kit
http://expo-ui-kit.com
MIT License
95 stars 25 forks source link

Text - fontWeight defined by theme #16

Closed hetmann closed 4 years ago

hetmann commented 4 years ago

Set fontWeight to be used from theme and customised using extra theme.

E.g.:

const theme = {
   WEIGHTS: {
     bold: "600"
   }
};

<Text bold theme={theme}>bold 600</Text>