{"id":18786543,"url":"https://github.com/fausto95/react-native-tab-view","last_synced_at":"2025-12-22T07:30:15.225Z","repository":{"id":153438594,"uuid":"629173949","full_name":"Fausto95/react-native-tab-view","owner":"Fausto95","description":null,"archived":false,"fork":false,"pushed_at":"2023-06-07T09:00:07.000Z","size":795,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-31T05:24:30.424Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/Fausto95.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-17T19:23:14.000Z","updated_at":"2023-04-17T20:04:04.000Z","dependencies_parsed_at":"2024-11-07T20:51:58.665Z","dependency_job_id":"46e3e03d-0ccd-4d91-86ef-0f60df03dbd3","html_url":"https://github.com/Fausto95/react-native-tab-view","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fausto95%2Freact-native-tab-view","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fausto95%2Freact-native-tab-view/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fausto95%2Freact-native-tab-view/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fausto95%2Freact-native-tab-view/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fausto95","download_url":"https://codeload.github.com/Fausto95/react-native-tab-view/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239703125,"owners_count":19683213,"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":[],"created_at":"2024-11-07T20:51:50.988Z","updated_at":"2025-12-22T07:30:15.192Z","avatar_url":"https://github.com/Fausto95.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Native Tab View\n\n\u003e I built this when I hit a blocker with [react-native-tab-view](https://github.com/satya164/react-native-tab-view/) where nested tab views have some UI and performance issues. Note that my version of tab view does everything JS land.\n\n## Installation\n\n```sh\nnpm install @fausto95/react-native-tab-view\n```\n\n## Demo\n\n\u003cimg src=\"./demo/tabview.png\" height=\"500px\"\u003e\n\n## Supports\n\n- Scrollable tabs\n- Nested tab views\n\n## Usage\n\n```js\nimport * as React from 'react';\n\nimport { View, Text } from 'react-native';\nimport { TabView } from '@fausto95/react-native-tab-view';\n\nconst routes = [\n  { key: 'first', title: 'First' },\n  { key: 'second', title: 'Second' },\n  { key: 'third', title: 'Third' },\n  { key: 'fourth', title: 'Fourth' },\n];\n\nexport default function App() {\n  return (\n    \u003cTabView\n      tabBarStyle={styles.tabBarStyle}\n      tabBarContentContainerStyle={styles.tabBarContentContainerStyle}\n      style={{ flex: 1 }}\n      routes={routes}\n      onPress={(index) =\u003e console.log(index)}\n      renderTabBar={({ route, isActive }) =\u003e (\n        \u003cView\n          style={[styles.tab, isActive ? { backgroundColor: 'purple' } : {}]}\n        \u003e\n          \u003cText style={[{ color: isActive ? 'white' : 'black' }]}\u003e\n            {route.title}\n          \u003c/Text\u003e\n        \u003c/View\u003e\n      )}\n      renderScene={(route) =\u003e (\n        \u003cView style={styles.scene}\u003e\n          \u003cText style={styles.text}\u003e{route.title}\u003c/Text\u003e\n        \u003c/View\u003e\n      )}\n    /\u003e\n  );\n}\n```\n\n## Contributing\n\nSee the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.\n\n## License\n\nMIT\n\n---\n\nMade with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffausto95%2Freact-native-tab-view","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffausto95%2Freact-native-tab-view","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffausto95%2Freact-native-tab-view/lists"}