How to hide header of createStackNavigator on React Native?

后端 未结 8 1309
耶瑟儿~
耶瑟儿~ 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:24

    2020 UPDATE - REACT NAVIGATION 5+

    Using header : null will not work anymore. In the options you need to set both headerMode to none along with headerShown to false as below:

    
       
    
    

提交回复
热议问题