{"id":19638351,"url":"https://github.com/maherzaidoune/react-native-tabs","last_synced_at":"2026-04-24T12:05:27.471Z","repository":{"id":57340951,"uuid":"283329149","full_name":"maherzaidoune/react-native-tabs","owner":"maherzaidoune","description":"react-native scrollable tab bar navigation","archived":false,"fork":false,"pushed_at":"2020-07-30T17:00:29.000Z","size":2122,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-26T12:59:41.311Z","etag":null,"topics":["react-native","scrollable-tab-view","tabbar"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maherzaidoune.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-28T21:12:09.000Z","updated_at":"2021-05-17T13:32:00.000Z","dependencies_parsed_at":"2022-09-08T18:40:22.437Z","dependency_job_id":null,"html_url":"https://github.com/maherzaidoune/react-native-tabs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maherzaidoune/react-native-tabs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maherzaidoune%2Freact-native-tabs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maherzaidoune%2Freact-native-tabs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maherzaidoune%2Freact-native-tabs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maherzaidoune%2Freact-native-tabs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maherzaidoune","download_url":"https://codeload.github.com/maherzaidoune/react-native-tabs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maherzaidoune%2Freact-native-tabs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259893624,"owners_count":22928009,"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":["react-native","scrollable-tab-view","tabbar"],"created_at":"2024-11-11T12:38:19.842Z","updated_at":"2026-04-24T12:05:27.415Z","avatar_url":"https://github.com/maherzaidoune.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![NPM](https://nodei.co/npm/react-native-top-tabs.png)](https://nodei.co/npm/react-native-top-tabs/)\n\na height performance fork of https://github.com/yeswanth/react-native-dynamic-tab-view\n\n\u003cp align=\"center\" \u003e\n        \u003ca href=\"https://github.com/maherzaidoune/\"\u003e\u003cimg src=\"https://github.com/maherzaidoune/react-native-tabs/blob/master/tabs.gif\" title=\"tabs\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Features \n- Easy to use and easy to read code\n- React-Native Javascript library built on top of `FlatList`.\n\n### Usecases \n- Dynamic tab data that can be populated by code (typically tabs are determined by an API call) \n- Ability to select any index (and just the zeroth index) as the default index. \n\n\n```\nimport DynamicTabView from 'react-native-dynamic-tab-view';\n \u003cDynamicTabView\n        data={dataSource}\n        renderTab={renderTab}\n        onChangeTab={onChangeTab}\n        defaultIndex={defaultIndex}\n        containerStyle={styles.container}\n        headerBackgroundColor={'white'}\n        headerUnderlayColor={'blue'}\n      /\u003e\n```\n\nHere `data` is of the format\n\n```\n[\n   { title: 'Tab1', key: 'item1' },\n   { title: 'Tab2', key: 'item2' },\n   { title: 'Tab3', key: 'item3' },\n]\n```\n`title` sets the tab title \n`key` is used internally by React. It can be any unique string\n\n### Important Props \n* **data** data to tell the number of tabs and set the layout\n* **renderTab** method to render individual tab. It should return a valid React Component \n* **onChangeTab** callback that will be invoked when a user changes tab \n* **defaultIndex** index of the tab that will be selected by default. \n* **containerStyle** style for the dynamic tab view container \n* **headerBackgroundColor** background color for header \n* **headerUnderlayColor** Color for header underlay\n* **headerTextStyle** style for header text\n\n### Run the Example project\n1. `cd Example`\n2. `npm install`\n3. `react-native run-android` or `react-native run-ios`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaherzaidoune%2Freact-native-tabs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaherzaidoune%2Freact-native-tabs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaherzaidoune%2Freact-native-tabs/lists"}