'Native Base: Cannot create an Accordion/Collapse Component

I realize Accordion is on older version of Native base, but I don't see anywhere in docs that it will not work in newer versions. I have tried running the example code in React Native Expo boiler place app and nothing renders for me.

let dataArray = [{title:'title',content:'content'}];

const renderAccordionHeader = (item, expanded) => {
  return (
    <View>
      <Text>{"example title"}</Text>
    </View>
  );
};

return (<>
  <Container>
      <Accordion dataArray={dataArray} renderHeader={renderAccordionHeader}/>
  </Container>
</>);

What is the equivalent Accordion component in the newest Native Base version? I see that Collapse is in version 3, but first link on Google for "Native Base Collapse" returns 404: https://docs.nativebase.io/3.0.x/blocked-components

I've tried every example in the Native Base docs to no avail. I have also attempted this solution: https://github.com/GeekyAnts/NativeBase/issues/3413

Any help appreciated.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source