react-native-in-app-notification icon indicating copy to clipboard operation
react-native-in-app-notification copied to clipboard

InAppNotificationProvider show by default a notification

Open CocoJr opened this issue 5 years ago • 0 comments

Hi,

When i wrap my application with the Provider, i have a notification showed by default. This is due to the default props of the DefaultNotificationBody:

DefaultNotificationBody.defaultProps = {
  title: 'Notification',
  message: 'This is a test notification',
  vibrate: true,
  isOpen: false,
  iconApp: null,
  icon: null,
  onPress: () => null,
  onClose: () => null,
};

Has to be:

DefaultNotificationBody.defaultProps = {
  title: null,
  message: null,
  vibrate: true,
  isOpen: false,
  iconApp: null,
  icon: null,
  onPress: () => null,
  onClose: () => null,
};

This is happening with expo and android. But visibly same problem with ios.

Thx.

CocoJr avatar May 07 '19 18:05 CocoJr