KBLNY / react-native-message-bar

A notification bar alert displayed at the top of the screen for react-native
MIT License
442 stars 125 forks source link

Can't custom color for titleStyle #41

Closed masteryoda2596 closed 6 years ago

masteryoda2596 commented 6 years ago

When I custom stylesheet background, the background is work as my expected but the color of title and message change to the dark color. Even I change the textStyle, it still not working. Do u guys have any idea to fix this? Tks in advance.

Here is my code:

MessageBarManager.showAlert({ title: customTitle, message: customMessage, alertType: 'info', duration: 5000, durationToShow: 500, onTapped: this.state.actionCallback, stylesheetInfo: {backgroundColor: '#4065b5', strokeColor: '#4065b5'}, titleStyle: {color: 'white', fontSize: 18, fontWeight: 'bold'}, messageStyle: {color: 'white', fontSize: 16}, });

screenshot_1516198674

masteryoda2596 commented 6 years ago

You can use this:

stylesheetInfo: {
        backgroundColor: '#ff1600',
        strokeColor: '#006acd',
        titleColor: '#ffffff',
        messageColor: '#ffffff'
}