react-native-actionsheet
react-native-actionsheet copied to clipboard
Can't disable some options
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, 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
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!
PR only affects Android