crysfel / Panels

Expanding/Collapsing a panel with animations in React Native
66 stars 62 forks source link

how to close one panel when i click on second panel... #5

Closed prasann278 closed 7 years ago

prasann278 commented 7 years ago

@crysfel @MatthiasVervaet @hungdev there are saveral panel in one view-- i want to close first panel if i click on second one automaticly please help me out in this....

crysfel commented 7 years ago

@prasann278 in the parent component, you will have to keep track of the expanded state for all panels that you have. Then simple update the state when the user expands a different panel.

prasann278 commented 7 years ago

@crysfel thanks for your help

ShaikhKabeer commented 6 years ago

Hey @prasann278 , any example do you have ?

ShaikhKabeer commented 6 years ago

@prasann278 , Please share example if you have

ShaikhKabeer commented 6 years ago

@prasann278 , Please share example if you have