React Native, change React Navigation header styling

前端 未结 5 628
孤街浪徒
孤街浪徒 2021-02-01 19:54

I\'m implementing React Navigation in my React Native app, and I\'m wanting to change the background and foreground colors of the header. I have the following:

/         


        
5条回答
  •  南旧
    南旧 (楼主)
    2021-02-01 20:31

    Try this code:

    static navigationOptions = {
        headerTitle: 'SignIn',
        headerTintColor: '#F44336'
    };
    

    good luck!

提交回复
热议问题