useTheme | NativeBase | Universal Components for React and React Native

Search
K
Hire us
Data Display
Typography
Disclosure
Media and Icons
Others
Please opt in to our enterprise plan (coming soon) for priority support with NativeBase. If you are starting a new project, we recommend using gluestack-ui. For your existing projects, you can utilize @gluestack-ui/themed-native-base (beta).
useTheme
useTheme is a custom hook to call theme object from the context.
Import
Copy
import { useTheme } from 'native-base';
Example
Copy
function Example() {
const theme = useTheme();
return <Box>{/* Do something with the theme */}</Box>;
}
Quick Nav
Nativebase logo
MadeWithNativeBase