-
Notifications
You must be signed in to change notification settings - Fork 100
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
Set style for active/expanded? #9
Comments
Would love to know how to do this as well |
It would really help me as well if we could have a props returning if the accordion is opened or closed. |
I'll submit a PR shortly to have a prop for the opened and closed header ;) |
@tsyirvo Did you ever get around to submitting a PR for this? Could use this feature as well. |
Could there be a way to access the |
@digitaldavenyc I didn't submit my PR yet :/ |
@tsyirvo I'm not sure what you mean by that method? Can u elaborate on the implementation. btw. sorry for super delayed response |
Change line 106 to and then you can use your component like <Accordion
header={({isOpen}) => <View><Text>{isOpen}</Text></View>}
content={<View><Text>Hello World!</Text></View>}
/> |
Is is possible to set different styles on the header, depending on whether the accordion is expanded or not?
Also, it is possible to only allow one accordion to be expanded at a time?
The text was updated successfully, but these errors were encountered: