I would like to change my navigationbar background color , but return to me : TypeError: Object is not a function(evaluating 'renderHeader');
How can i fix this error?
static navigationOptions = ({navigation}) => ({
title: 'Login',
header: {
title: "Title",
style: {
backgroundColor: 'red'
},
tintColor: 'red'
}
});
Try this...
static navigationOptions = () => ({
title: 'Contact Us',
headerTintColor: Colors.Green,
headerStyle: {
backgroundColor: 'red'
}
});
To hide navigationbar for specific page
static navigationOptions = {
header:null
}
I guess, navigationOptions should be Object. Try this:
static navigationOptions = {
title: 'Login',
header: {
title: "Title",
style: {
backgroundColor: 'red'
},
tintColor: 'red'
}
};
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With