I'm trying to create a variant to scale the fontSize of Heading in NativeBase.
The following does not work.
const theme = extendTheme({
components: {
Heading: {
variants: {
h2: {
fontSize: {
base: 'xs',
sm: 'xs',
md: 'sm',
lg: 'sm',
xl: 'md',
},
},
},
},
},
});
Nothing changes in...
<Heading variant="h2">Some Header Text</Heading>
What is the correct way to make a scalable Heading component?