SrBrahma / react-native-gev

MIT License
3 stars 1 forks source link

Add Label and SubLabel components #10

Closed SrBrahma closed 2 years ago

SrBrahma commented 2 years ago

Maybe it would pollute the components?

What about them being theme's styles?

SrBrahma commented 2 years ago
const theme = useTheme();

<Text s={theme.styles.label} t='Text'/>
// maybe
<Text s={t.s.label} t='Text'/>
SrBrahma commented 2 years ago

Added label and sublabel as styles, and their props to TextInput in 0.50.0.

While it's useful to keep the same look for labels, we have an issue if the dev want a different design to use somewhere else.