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

titleStyle and MessageStyle is not applied when stylesheetSuccess is used #44

Closed gang89 closed 6 years ago

gang89 commented 6 years ago

Hi, Am facing an issue where alertType is success and when there is stylesheetSuccess applied, titleStyle and MessageStyle (where color: 'white') is not applied. Any advise?

showInAppAlert(title, message, callbackFunction){ MessageBarManager.showAlert({ title : title, message: message, alertType: 'success', avatar:<${this.state.userIcon.uri}>, duration : 20000, viewTopOffset : 0, viewTopInset : 20, onTapped:()=>{callbackFunction()}, stylesheetSuccess : { backgroundColor: '#32A54A', fontSize: 16}, titleStyle : { color : 'white', fontSize : 16, fontFamily : Fonts.type.bold, fontWeight : 'bold', marginBottom : 2, }, messageStyle : { color : 'white', fontFamily : Fonts.type.base, fontSize : 14, marginBottom : 2 }, avatarStyle: { height: 40, width: 40, borderRadius: 20 }, messageNumberOfLines : 5, }); }

Volekss commented 5 years ago

So, what was the solution?