Multiple Destructive Button Indexes or custom text style
Is there a way to to have MORE THAN ONE destructiveButtonIndex? Maybe destructiveButtonIndex can accept an array of ints/indexes that you want to display in red.
or a style option to add custom text color per option in action sheet?
options = [
<Text style={{color: 'red'}}>delete</Text>,
'cancel'
]
Native ActionSheet does not support this usage.
@xiaoyann That doesn't work. Returning Invalid data message - all must be length: 20
@xiaoyann
Since [email protected], they allow multiple destructive indexes in iOS. they support int or array of ints interface.
I think it also works in react-native-actionsheet depending on react-native version. this has * dependency about react-native.
However official website documentation is not updated yet. but it's okay.
If you don't mind, can you updated android also support it? I think it would be great! 😃
rn 60 has the commit for multiple destructive indexes, it was rolled from master