How to hide header of createStackNavigator on React Native?

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

    try this
    options ={{ header: () => {}}}
    since you are explicitly not providing any argument to header function, it won't show any header.
    For more information refer this: react native docs

提交回复
热议问题