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

plain-text buttons are not customizable #3

Open
sam1463 opened this issue Aug 20, 2018 · 0 comments
Open

plain-text buttons are not customizable #3

sam1463 opened this issue Aug 20, 2018 · 0 comments

Comments

@sam1463
Copy link

sam1463 commented Aug 20, 2018

Description

It seems like plain-text alerts use hard-coded button options. They display with these values, and those are not the values I've specified.
screen shot 2018-08-20 at 2 12 39 pm

Reproduction

I'm opening an alert like this:

Alert.alert(
        '<Prompt text>',
        '<Prompt text 2>',
        [
          {
            text: 'Confirm',
            style: 'default',
            onPress: (text) => { console.log('Pressed confirm with text: ', text); },
          },
          {
            text: 'Cancel',
            style: 'cancel',
            onPress: () => { console.log('Pressed cancel'); },
          }
        ],
        'plain-text',
        '',
        0,
      )

Solution

Alerts of style plain-text should honor the button text and style specified by users, rather than always using hard-coded values

Additional Information

  • React Native version: 0.55.4
  • Platform: currently using iOS, although this is likely an issue on both
  • Operating System: MacOS
  • Package Version: 0.1.2
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