{"id":17037467,"url":"https://github.com/agontuk/react-native-collapsible-toolbar","last_synced_at":"2025-04-12T13:22:39.040Z","repository":{"id":25779224,"uuid":"106469143","full_name":"Agontuk/react-native-collapsible-toolbar","owner":"Agontuk","description":"Pure JS based collapsible toolbar for react native on Android and iOS","archived":false,"fork":false,"pushed_at":"2023-01-03T18:28:52.000Z","size":7691,"stargazers_count":56,"open_issues_count":36,"forks_count":13,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-13T19:50:59.133Z","etag":null,"topics":["android","collapsible","collapsible-navbar","ios","react","react-native","toolbar"],"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/Agontuk.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-10-10T20:42:33.000Z","updated_at":"2023-08-27T22:54:05.000Z","dependencies_parsed_at":"2023-01-14T04:30:21.804Z","dependency_job_id":null,"html_url":"https://github.com/Agontuk/react-native-collapsible-toolbar","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Agontuk%2Freact-native-collapsible-toolbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Agontuk%2Freact-native-collapsible-toolbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Agontuk%2Freact-native-collapsible-toolbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Agontuk%2Freact-native-collapsible-toolbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Agontuk","download_url":"https://codeload.github.com/Agontuk/react-native-collapsible-toolbar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248572020,"owners_count":21126565,"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":["android","collapsible","collapsible-navbar","ios","react","react-native","toolbar"],"created_at":"2024-10-14T08:54:03.923Z","updated_at":"2025-04-12T13:22:39.009Z","avatar_url":"https://github.com/Agontuk.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-collapsible-toolbar\nPure JS based collapsible toolbar for react native on Android and iOS.\n\n## Demo\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/Agontuk/react-native-collapsible-toolbar/master/demo/demo_android.gif\" /\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/Agontuk/react-native-collapsible-toolbar/master/demo/demo_ios.gif\" /\u003e\n\u003c/p\u003e\n\n## Installation\n```sh\nyarn add react-native-collapsible-toolbar\n```\n\n## Usage\n```javascript\nimport { Platform } from 'react-native';\nimport CollapsibleToolbar from 'react-native-collapsible-toolbar';\n\n...\n\u003cCollapsibleToolbar\n    renderContent={this.renderContent}\n    renderNavBar={this.renderNavBar}\n    renderToolBar={this.renderToolBar}\n    imageSource='https://lorempixel.com/400/300/'\n    collapsedNavBarBackgroundColor='#009688'\n    translucentStatusBar={Platform.Version \u003e= 21}\n    toolBarHeight={300}\n/\u003e\n...\n```\n\n## Available props\n\u003e Either an image source or a custom toolbar component must be provided\n\n| Name | Type | Default | Description |\n| --- | --- | --- | --- |\n| collapsedNavBarBackgroundColor | String | '#FFF' | Navbar background color when it's collapsed |\n| imageSource | String | - | Image to render as collapsible component |\n| onContentScroll | Function | - | The scroll event\n| renderContent | Function | **REQUIRED** | Content to render below the collapsible toolbar |\n| renderNavBar | Function | **REQUIRED** | Transparent nav bar to render on top of the toolbar |\n| renderToolBar | Function | - | Custom toolbar component (will override imageSource) |\n| toolBarHeight | Number | 300 | Height of the collpasible toolbar |\n| translucentStatusBar | Boolean | false | If true, will adjust the nav bar position for Android |\n\nAll the [ScrollView props](https://facebook.github.io/react-native/docs/scrollview.html) are also supported.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagontuk%2Freact-native-collapsible-toolbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagontuk%2Freact-native-collapsible-toolbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagontuk%2Freact-native-collapsible-toolbar/lists"}