robcalcroft / react-native-in-app-notification

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

deliver additional attributes to notificationBodyComponent #5

Closed idw111 closed 7 years ago

idw111 commented 7 years ago

I wanted to insert icon attribute in notificationBodyComponent. Sometimes, customized notificationBodyComponent may need extra attributes like icon or something. So, I added props parameter to show method.

// pass additional attributes
this.notification.show(title, message, onPress, {icon: 'clock'});
robcalcroft commented 7 years ago

@idw111 hey! I just merged #4 which was a breaking change. Could you please update this PR to work with the new changes

robcalcroft commented 7 years ago

I'm closing this as there's been no activity. Re-open if you'd like to continue it 😄