useTheme

useTheme is a custom hook which returns an array of active themes.

Import

To use the useTheme in your project, import useTheme from @gluestack-style/react. as Demonstrated below.
import { useTheme } from "@gluestack-style/react"
Demonstration of useTheme
import { View } from "react-native"
import { useTheme } from "@gluestack-style/react"
const Example = () => {
const theme = useTheme()
return <View>{/* Do something with the theme */}</View>
}