react native hide the header code example
Example 1: get rid of header bar react native
navigationOptions: { headerShown: false }
Example 2: hiding header in a specific screen in react native
<Stack.Screen options={{headerShown: false}} name="route-name" component={ScreenComponent} />