react-native-actionsheet icon indicating copy to clipboard operation
react-native-actionsheet copied to clipboard

Multiple Destructive Button Indexes or custom text style

Open larryranches opened this issue 8 years ago • 4 comments

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?

larryranches avatar Mar 27 '17 21:03 larryranches

options = [
  <Text style={{color: 'red'}}>delete</Text>,
 'cancel'
]

Native ActionSheet does not support this usage.

xiaoyann avatar Mar 28 '17 08:03 xiaoyann

@xiaoyann That doesn't work. Returning Invalid data message - all must be length: 20

sabbyt54 avatar Dec 05 '17 06:12 sabbyt54

@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! 😃

vreality64 avatar May 03 '19 05:05 vreality64

rn 60 has the commit for multiple destructive indexes, it was rolled from master

stephenlacy avatar Jul 03 '19 01:07 stephenlacy