Skip to content

Commit 9d22902

Browse files
authored
Infra/fix expandable section docs (#1025)
* add docs to expandableSection * generatedTypes
1 parent c92669e commit 9d22902

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

generatedTypes/components/expandableSection/index.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,10 @@ export declare type ExpandableSectionProps = {
2121
*/
2222
onPress?: () => void;
2323
};
24+
/**
25+
* @description: ExpandableSection component to render expanded section below or above the sectionHeader
26+
* @gif: https://media.giphy.com/media/uCGZ92nZPdBOmF1H1z/giphy.gif, https://media.giphy.com/media/0VIh41mkSl8omS49oD/giphy.gif
27+
* @example: https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/ExpandableSectionScreen.tsx
28+
*/
2429
declare function ExpandableSection(props: ExpandableSectionProps): JSX.Element;
2530
export default ExpandableSection;

src/components/expandableSection/index.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ export type ExpandableSectionProps = {
2727
onPress?: () => void;
2828
};
2929

30+
/**
31+
* @description: ExpandableSection component to render expanded section below or above the sectionHeader
32+
* @gif: https://media.giphy.com/media/uCGZ92nZPdBOmF1H1z/giphy.gif, https://media.giphy.com/media/0VIh41mkSl8omS49oD/giphy.gif
33+
* @example: https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/ExpandableSectionScreen.tsx
34+
*/
35+
3036
function ExpandableSection(props: ExpandableSectionProps) {
3137
const {expanded, sectionHeader, children, top} = props;
3238

0 commit comments

Comments
 (0)