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

Can't disable some options

Open graphee-gabriel opened this issue 7 years ago • 3 comments

For the project i'm working on i need to disable some of the options (still show them, but greyed out and not clickable) Could their be a similar function, by for example simply passing an array of index for the disabled objects?

Thanks

graphee-gabriel avatar Jul 24 '17 15:07 graphee-gabriel

@graphee-gabriel, I made a pull request. It works only for ActionSheetCustom, but I didn't find a way how to do this with native element.

https://github.com/beefe/react-native-actionsheet/pull/56

So all you need is to pass prop like disabledIndexes={[1,2]} with buttons indexes that have to be disabled

vasyiok avatar Jun 05 '18 10:06 vasyiok

Hello vasyiok, and thank you. Sadly I'm not working on that project anymore for soon a year now and won't be able to test it for now. The day I have to use an action sheet again, I'll get back to you. Thanks again and have a great day!

graphee-gabriel avatar Jun 05 '18 10:06 graphee-gabriel

PR only affects Android

jedt avatar Oct 07 '20 04:10 jedt