@oblador
Hi guys.
Thank you for your work.
I have such flow where I need to open the topmost section first, then do some actions there and only after that I have to open the next one (there could be 3 sections).
Just want to ask is it possible somehow to make any of sections disabled?
Hey man! Can't answer you write now cause I'm at work. Will try to go through the issues and PRs this evening into tonight. Thanks for understanding
@iRoachie Thank you a lot .
Of course take your time!
Hey @pkantsedalov sorry for late reply. The onChange callback sends back the index that will be opened. We then take this an set the state to change the activeSection.
We can take advantage of this by checking if this is a section we want to allow the user to open.
In this example, i'm just adding a disabled key on to the data passed in, however you can use whatever means you want to indicate if a section is disabled.
Here's the code and snack - https://snack.expo.io/HyChBeZ_f.

Closing this as inactive. If the above solution didn't work for you then ping me.
Just a suggestions: It would be nice if the row didn't give feedback when it doesn't expand