Back to Expo

Hooks

docs/scenes/get-started/start-developing/ProjectStructure/files/hooks.mdx

latest396 B
Original Source

import { RawH3 } from '~/ui/components/Text';

<RawH3>hooks</RawH3>

Contains React Hooks, which allows sharing common behavior between components. For example, useTheme() is a hook that returns the current theme object and useColorScheme() detects the user's color scheme. Some hooks have platform-specific variants using the .web.ts extension.