in react-native,how to change the styles of NavigatorIOS,such as backgroundColor? thank you!
var speedNews = React.createClass({
render: function() {
return (
<NavigatorIOS style={styles.container}
initialRoute={{
title: 'SpeedNews',
component: ViewList
}}/>
);
}
});
var styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor : 'red', // it do nothing
color : '#ffffff' // it do nothing
}
});
As far as I know, you can only change the following properties:
<NavigatorIOS
barTintColor='#000'
titleTextColor='#fff'
tintColor='#fff'
initialRoute={{
title: 'SpeedNews',
component: ViewList
}} />
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