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

InAppNotificationProvider show by default a notification #29

Open
CocoJr opened this issue May 7, 2019 · 0 comments
Open

InAppNotificationProvider show by default a notification #29

CocoJr opened this issue May 7, 2019 · 0 comments

Comments

@CocoJr
Copy link

CocoJr commented May 7, 2019

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.

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

1 participant