{"id":4283,"url":"https://github.com/hejiaji/react-native-expand","last_synced_at":"2025-08-04T01:31:43.930Z","repository":{"id":57336822,"uuid":"82697325","full_name":"hejiaji/react-native-expand","owner":"hejiaji","description":"A expandable component for React Native","archived":true,"fork":false,"pushed_at":"2018-02-09T06:08:27.000Z","size":577,"stargazers_count":25,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-26T02:35:37.144Z","etag":null,"topics":["component","expandable","react-native"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hejiaji.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-21T15:44:23.000Z","updated_at":"2024-02-07T03:44:19.000Z","dependencies_parsed_at":"2022-09-11T04:00:55.374Z","dependency_job_id":null,"html_url":"https://github.com/hejiaji/react-native-expand","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hejiaji%2Freact-native-expand","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hejiaji%2Freact-native-expand/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hejiaji%2Freact-native-expand/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hejiaji%2Freact-native-expand/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hejiaji","download_url":"https://codeload.github.com/hejiaji/react-native-expand/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228582487,"owners_count":17940587,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["component","expandable","react-native"],"created_at":"2024-01-05T20:17:06.823Z","updated_at":"2024-12-07T08:30:25.494Z","avatar_url":"https://github.com/hejiaji.png","language":"JavaScript","funding_links":[],"categories":["Components","Others"],"sub_categories":["UI"],"readme":"# react-native-expand\n\n![travis-ci](https://travis-ci.org/hejiaji/react-native-expand.svg?branch=master)\n\n\nA expandable component for React Native\n\n![image](Example/images/demo.gif)\n\n## Getting started\n```bash\nnpm install react-native-expand --save\n```\n\n## Example usage\n\n```javascript\nclass App extends React.Component {\n  constructor(props) {\n    super(props);\n    this.ds = [BandageIcon,CallIcon,DislikeIcon,\n    FistIcon, FlowersIcon, HeartIcon, LikeIcon,\n    LikingIcon, PartyIcon, PokeIcon, SuperLikeIcon, VictoryIcon];\n  }\n\n  renderRowData(rowData, index) {\n    return (\n      \u003cView key={index} style={styles.row}\u003e\n        \u003cImage style={styles.thumb} source={rowData}/\u003e\n        \u003cText style={styles.text}\u003eRow{index + 1} {LOREM_IPSUM}\u003c/Text\u003e\n      \u003c/View\u003e\n    );\n  }\n\n  render() {\n    return (\n      \u003cExpandablePanel\n        contentPanelStyle={styles.container}\n        dataSource={this.ds}\n        renderRow={this.renderRowData}\n      /\u003e\n    )\n  }\n}\n```\n\n## Properties\n\n| Prop | Description | Default |\n|---|---|---|\n|**`contentPanelStyle`**|The style for the component container.|None|\n|**`footerPanelStyle`**|The style for the footer container.|None|\n|**`footerTextStyle`**|The style for the footer text.|None|\n|**`dataSource`**|The dataSource for the component to use.| None |\n|**`renderRow`**|The function to defined how the item to be showed.|None|\n|**`renderHeader`**|The function to render customer header for this component.|None|\n|**`minRowCount`**|The minimum count of rows to render when the component is collapsed .|`1`|\n|**`expandText `**|The text to indicate expand operation.|`↓ Load More`|\n|**`collapseText `**|The text to indicate collapse operation.|`↑ Collapse`|","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhejiaji%2Freact-native-expand","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhejiaji%2Freact-native-expand","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhejiaji%2Freact-native-expand/lists"}