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

Better options for disabling Accordion Items

Open iRoachie opened this issue 4 years ago • 2 comments

Right now disabling an item in the accordion involves making use of the onChange prop to check a value that the user includes in the their sections array.

However as pointed out by @brenwall in https://github.com/oblador/react-native-collapsible/issues/148#issuecomment-499498416 feedback from touchable is still shown. We should provide a better way of disabling items.

One way off the top of my head is to allow the disabled to be boolean | number[]. That way setting it to true would disable all the items of the Accordion while passing in an array of indexes would specify which items would disabled

iRoachie avatar Jul 13 '19 13:07 iRoachie

I am interested in working on this, can you give me a head start

karthik-durai avatar Oct 07 '19 07:10 karthik-durai

Fix: #310

karthik-durai avatar Oct 07 '19 13:10 karthik-durai