diff --git a/types/react-native-collapsible/Accordion.d.ts b/types/react-native-collapsible/Accordion.d.ts index 2a2fc04a9f..d4f3ae0dab 100644 --- a/types/react-native-collapsible/Accordion.d.ts +++ b/types/react-native-collapsible/Accordion.d.ts @@ -5,7 +5,7 @@ export interface AccordionProps { /** * An array of sections passed to the render methods */ - sections: string[]; + sections: any[]; /** * A function that should return a renderable representing the header diff --git a/types/react-native-collapsible/react-native-collapsible-tests.tsx b/types/react-native-collapsible/react-native-collapsible-tests.tsx index 1107084f3d..65dd0015b8 100644 --- a/types/react-native-collapsible/react-native-collapsible-tests.tsx +++ b/types/react-native-collapsible/react-native-collapsible-tests.tsx @@ -36,3 +36,27 @@ class AccordianTest extends React.Component { ); } } + +class AccordionComplexTest extends React.Component { + _renderHeader() { + return ( + + ); + } + + _renderContent() { + return ( + + ); + } + + render() { + return ( + + ); + } +}