react-navigation hide titlebar

最关键的就是这句话,也就是路由可以设置一些属性。

navigationOptions: {header: null}
import {
    createStackNavigator,
} from 'react-navigation';

import Playing from './playing/index';

const App = createStackNavigator({
    Home: {screen: Playing, navigationOptions: {header: null}},
    // Profile: { screen: ProfileScreen },
});

export default App;