-
Notifications
You must be signed in to change notification settings - Fork 6
plain-text buttons are not customizable #3
Copy link
Copy link
Open
Description
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.

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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels