robcalcroft / react-native-in-app-notification

:bell: Customisable in-app notification component for React Native
MIT License
269 stars 78 forks source link

Customize Notification Background #22

Open Rithie opened 5 years ago

Rithie commented 5 years ago

Hi, firstly, this lib is awesome eh. Great job! this is not a issue per say,

I'd like to understand how can I use background props. How can I customize the notification. I couldn't find any tutorial or documentation.

graig12 commented 5 years ago

Yes this library is awesome however how can the background Color be used

graig12 commented 5 years ago

@Rithie did you manage to figure this one out?

robcalcroft commented 5 years ago

Not sure if this is what you're looking for but you can write your own component and then give it to the library to display for you https://github.com/robcalcroft/react-native-in-app-notification#props see the notificationBodyComponent prop. Then you can give the component any background colour or design you like.

graig12 commented 5 years ago

Thanks I will try. One more question Is it possible to use a url for the Icon prop in this.prop.shownotification()?

ZMChoo commented 5 years ago

Did someone know how to change the text color in the notification bar?

sa2812 commented 4 years ago

@mun5865 - Once you've created your own notification component and referenced it in the <InAppNotificationProvider notificationBodyComponent={...}> provider, you can just change the color as you would with a simple styles component. The example component here is very useful to help you create your own