robcalcroft / react-native-in-app-notification

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

passing custom component to notificationBodyComponent does nothing #56

Closed kimkong88 closed 2 years ago

kimkong88 commented 2 years ago
    this.props.showNotification({
        title: "test",
        message: "test",
        icon: "test-icon",
        vibrate: false,
        notificationBodyComponent: <CustomComponent/>,
    }); 

apparently doing nothing for me.

It shows black background notification..

Am I using this library wrong?

kimkong88 commented 2 years ago

figured out by playing around ... <InAppNotificationProvider notificationBodyComponent={ CustomComponent }

... was way to go