-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Programmatically toggle accordion #28
Comments
I'll work on that. |
@jamesl1001 released in version 0.2.7. |
Wow thanks for the very fast turnaround @marouanekadiri! I can see the documentation has been updated for the Does this also work for the |
Hi @jamesl1001, |
Thank you @marouanekadiri! I think I just missed that prop in the docs. I would however advise that you reverse the |
This bit me today as i was playing around with the component i would expect |
@markrickert True, It was actually my mistake 🙈 . Now, I'm thinking about releasing a breaking change version to switch to |
Is there a way to programmatically toggle the accordion without having to press on the header?
I want to have the first accordion in my
FlatList
always open on mount, so I tried this, but it does not work:collapsed
in state is successfully toggled but the accordion does not open, presumably because the internal variableshow
is only toggledonPress
.The text was updated successfully, but these errors were encountered: