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

[Feature] Prompt for confirmation #23

Open
perry-mitchell opened this issue Oct 1, 2017 · 1 comment
Open

[Feature] Prompt for confirmation #23

perry-mitchell opened this issue Oct 1, 2017 · 1 comment

Comments

@perry-mitchell
Copy link

Great component! I just have one suggestion: Would it be possible to add the ability to show just a confirmation prompt (Ok/Cancel or Yes/No) using this component? It'd be handy, because I'd be able to keep the same props and styling by using this component to ask Yes/No questions without text input.

If this is out of scope in your opinion, please close.

@jakallergis
Copy link

Why not use Alert.alert instead?

const title = 'Some Title';
const message = 'Are you sure Alert is not what you want?';
const buttons = [
  { text: 'Cancel', type: 'cancel' },
  { text: 'OK', onPress: () = {} }
];

Alert.alert(title, message, buttons);

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

2 participants