useHeaderStyles
- Description
- Params and Return
- Example
Hook to get the current header styles in a component
Param / Return | Description |
---|---|
returns | header style object for the top nav |
How to use the useHeaderStyles component
const headerStyles = useHeaderStyles()
return (
<HealthScreenStack.Navigator screenOptions={headerStyles}>
<HealthScreenStack.Screen name="Health" component={HealthScreen} options={{ title: t('page.title') }} />
</HealthScreenStack.Navigator>
)