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

Allow passing in custom controls via the message props? #28

Closed
phillbaker opened this issue Feb 28, 2018 · 1 comment
Closed

Allow passing in custom controls via the message props? #28

phillbaker opened this issue Feb 28, 2018 · 1 comment

Comments

@phillbaker
Copy link

Thanks for your work on maintaining this project!

What do you think about allowing custom controls in the message alert prop? So for example, to pass in buttons similar to the native push notification:

image

Example usage:

MessageBarManager.showAlert({
  title: 'Your alert title goes here',
  message: 'Your alert message goes here',
  alertType: 'success',
  children: <View style={{...}}><Button onPress={this.foo}>Not now</Button><Button onPress={this.foo}>Done</Button></View>,
});

I think this (very old) pr KBLNY#20 would allow this? It would probably need documentation updates and a rebase.

@phillbaker
Copy link
Author

Bump @Talor-A would you accept a PR to do the above?

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