--- title: Header impact: MEDIUM tags: react-navigation, header, title, header-buttons, header-background, react-navigation-elements --- # Skill: Header ## Description Use this when customizing the header in bottom tabs or drawer which render a JS-based header. For native stack headers, use [stacks.md](./stacks.md) instead. ## When to Use - Styling the built-in header in bottom tabs or drawer screens - Adding header buttons, custom title content, or a custom background ## Basic Example The shared header options work the same in bottom tabs and drawer. The examples below use bottom tabs. **Static API** ```tsx import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; const AppTabs = createBottomTabNavigator({ screens: { Home: { screen: HomeScreen, options: { title: 'Home', headerStyle: { backgroundColor: '#fff', }, headerTintColor: '#111', headerRight: () => , }, }, }, }); ``` **Dynamic API** ```tsx import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; const Tab = createBottomTabNavigator(); function AppTabs() { return ( , }} /> ); } ``` - Use `title`, `headerStyle`, `headerTintColor`, `headerTitleStyle`, and `headerTitleAlign` for the default header. Put shared config in navigator `screenOptions` and per-screen overrides in `options`. - Use `headerShown: false` for screens that contain a navigator - the header from the child navigator should be shown instead. ## Common Features ### Buttons and Custom Content Use `headerLeft`, `headerRight`, `headerTitle`, and `headerBackground` when the default header layout is fine but specific pieces need customization. **Static API** ```tsx import { Button, Text } from 'react-native'; import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; const AppTabs = createBottomTabNavigator({ screens: { Inbox: { screen: InboxScreen, options: { headerLeft: ({ tintColor }) => (