useTheme
- Description
- Params and Return
- Example
Hook to get the theme in a component
Param / Return | Description |
---|---|
returns | the VATheme |
How to use the useTheme component
const theme = useTheme()
const findLocationProps: BoxProps = {
flexDirection: 'row',
justifyContent: 'center',
alignItems: 'center',
width: '100%',
minHeight: theme.dimensions.touchableMinHeight,
mt: theme.dimensions.standardMarginBetween,
py: theme.dimensions.buttonPadding,
}