{"id":22429995,"url":"https://github.com/rxreactnative/react-native-rxsegment","last_synced_at":"2026-05-09T02:04:23.568Z","repository":{"id":57339669,"uuid":"210737518","full_name":"RXReactNative/react-native-rxsegment","owner":"RXReactNative","description":"A cross-platform Segment Controller Component","archived":false,"fork":false,"pushed_at":"2022-08-12T09:23:14.000Z","size":17484,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-29T11:14:26.950Z","etag":null,"topics":["react-native","react-native-web","webpack"],"latest_commit_sha":null,"homepage":"https://rxreactnative.github.io/react-native-rxsegment/","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/RXReactNative.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":"2019-09-25T02:22:00.000Z","updated_at":"2022-10-01T04:57:38.000Z","dependencies_parsed_at":"2022-09-04T14:23:18.619Z","dependency_job_id":null,"html_url":"https://github.com/RXReactNative/react-native-rxsegment","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/RXReactNative/react-native-rxsegment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RXReactNative%2Freact-native-rxsegment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RXReactNative%2Freact-native-rxsegment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RXReactNative%2Freact-native-rxsegment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RXReactNative%2Freact-native-rxsegment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RXReactNative","download_url":"https://codeload.github.com/RXReactNative/react-native-rxsegment/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RXReactNative%2Freact-native-rxsegment/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259374948,"owners_count":22847873,"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","react-native-web","webpack"],"created_at":"2024-12-05T21:06:42.642Z","updated_at":"2025-10-18T03:59:40.582Z","avatar_url":"https://github.com/RXReactNative.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# react-native-rxsegment ： 分段控制器组件、选项卡视图组件\n\nSupport iOS/Android/web\n\n## Getting started\n`$ npm install react-native-rxsegment --save`\n\n\n`演示 web` / `show web`\nhttps://rxreactnative.github.io/react-native-rxsegment/\n\n\u003cbr /\u003e\n\n![srxboys](https://github.com/RXReactNative/react-native-rxsegment/blob/master/screen_img/segment.png)\n\n```js\n//default\n      \u003cRXSegment \n        tabBarStyle={{ backgroundColor: 'blue', paddingTop: 20}}\n        tabBarLabels={['ios', 'android', 'web']}\n      \u003e\n        \u003cView style={styles.container}/\u003e\n      \u003c/RXSegment\u003e\n\n//diy\n      \u003cRXSegment\n          style={styles.segmentHeader}\n          renderTabBar={()=\u003e\n            \u003cRXSegmentTabBar\n              style={{ backgroundColor: '#7D26CD', paddingTop: 20}}\n              tabBarLabels={['ios', 'android', 'web', '']}\n              activeTextColor={'red'}\n              underlineStyle={ {width: 50, height: 3, backgroundColor: 'red'} }\n            /\u003e\n          }\n        \u003e\n          \u003cView style={styles.container}/\u003e\n          \u003cView style={styles.container}/\u003e\n        \u003c/RXSegment\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frxreactnative%2Freact-native-rxsegment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frxreactnative%2Freact-native-rxsegment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frxreactnative%2Freact-native-rxsegment/lists"}