oblador / react-native-collapsible

Animated collapsible component for React Native, good for accordions, toggles etc
MIT License
2.44k stars 451 forks source link

Unable to get this working on the latest version of React-Native? #377

Open palmer95 opened 3 years ago

palmer95 commented 3 years ago

Basically, on the latest version of RN, I am unable to get this working. I have a paged application but the accordion doesn't expand until after I click on a section, go back to the previous page, and then go to that page with the accordion again. Is this library compatible with the react-native navigation, or is it just something I am doing wrong.

Any response or feedback would be greatly appreciated.

palmer95 commented 3 years ago

Basically, on the latest version of RN, I am unable to get this working. I have a paged application but the accordion doesn't expand until after I click on a section, go back to the previous page, and then go to that page with the accordion again. Is this library compatible with the react-native navigation, or is it just something I am doing wrong?

Any response or feedback would be greatly appreciated.

The demo alone does work, however, I can not get this to work with the react-navigate that is my issue. Again this could totally be a user error but I am just wondering if this something you know does not work with react-navigation.

Thank you.

jnuno98 commented 3 years ago

I have the same problem, and can't convert it to const function syntax

oblador commented 3 years ago

Hi, can you provide an example that reproduces the issue?

usamarehan557 commented 3 years ago

kindly write an example in functional component

mak12 commented 2 years ago

So i did face this issue too, It works with class components but not with functional components. any idea about this?