Version: 3.0.3

useTheme

useTheme is a custom hook used to get the theme object from context.

Import#

import { useTheme } from "native-base";

Example#

function Example() {
const theme = useTheme();
return <Box>{/* Do something with the theme */}</Box>;
}