Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customize Notification Background #22

Open
Rithie opened this issue Dec 7, 2018 · 6 comments
Open

Customize Notification Background #22

Rithie opened this issue Dec 7, 2018 · 6 comments

Comments

@Rithie
Copy link

Rithie commented Dec 7, 2018

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.

@Rithie Rithie changed the title Default Notification Body Customize Notification Background Dec 7, 2018
@graig12
Copy link

graig12 commented Dec 8, 2018

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

@graig12
Copy link

graig12 commented Dec 8, 2018

@Rithie did you manage to figure this one out?

@robcalcroft
Copy link
Owner

robcalcroft commented Dec 9, 2018

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
Copy link

graig12 commented Dec 9, 2018

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

@ZMChoo
Copy link

ZMChoo commented Jan 29, 2019

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

@sa2812
Copy link

sa2812 commented Nov 20, 2019

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants