oblador / react-native-collapsible

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

Content of active section not rendered properly in Accordion #465

Open Yupeng-li opened 1 year ago

Yupeng-li commented 1 year ago

Recently we noticed that sometimes on android devices the content of active section is not rendered. The reason I found is that the Collapsible component is calling measure function of the view to get the content height. But somehow the function returns undefined values, so the height of content is set to 0. It might be related to this issue, but the workarounds didn't help with the issue I got here.

I ended up to use measureInWindow to get the height when measure didn't work.