如何在React Native中为整个应用程序设置tintColor

时间:2017-12-02 15:49:59

标签: android ios react-native tintcolor

在iOS中,您可以为整个应用设置tintColor,如下所示:

window.tintColor = UIColor.black

其中window是应用的关键UIWindow。如何在React Native中实现这一点,以便您可以避免在应用程序中设置它,如下例所示:

StackNavigator({
...
}, {
...
    navigationOptions: {
        headerTintColor: '#000',
    }
});

OR:

tabBarIcon: ({tintColor}) => {
...
}, 
drawerIcon: ({tintColor}) => {
...
}

0 个答案:

没有答案