How to hide header of createStackNavigator on React Native?

后端 未结 8 1310
耶瑟儿~
耶瑟儿~ 2021-02-04 03:56

I want to hide header because I already have styled Toolbar in code:

import {createStackNavigator}
from \'react-navigation\'
const AppStackNavigator = createStac         


        
8条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-04 04:34

    I used following code to hide the header.

       {
        navigationOptions: {
            header: null // Will hide header for all screens of current stack 
    
        }
    

提交回复
热议问题