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

how to control accordion programmatically???

Open yogeshmoradiya121 opened this issue 7 years ago • 3 comments

i wan to know how i can use methods like open,close and toggle????

yogeshmoradiya121 avatar Apr 24 '17 10:04 yogeshmoradiya121

<Accordion ref="MyAccordion" />
........
this.refs.MyAccordion.open()

ercpereda avatar Oct 19 '17 01:10 ercpereda

Not working using ref...

GustavoHGS avatar Nov 21 '17 18:11 GustavoHGS

@GustavoHGS, try this 👇

<Accordion ref={accordion => this.accordion = accordion} />
.......
this.accordion.open()

ercpereda avatar Nov 21 '17 20:11 ercpereda