{"id":4092,"url":"https://github.com/lelandrichardson/react-native-segmented-view","last_synced_at":"2025-04-08T04:17:15.008Z","repository":{"id":31691180,"uuid":"35256815","full_name":"lelandrichardson/react-native-segmented-view","owner":"lelandrichardson","description":"Segmented View for React Native (with animation)","archived":false,"fork":false,"pushed_at":"2019-05-02T10:32:01.000Z","size":8,"stargazers_count":188,"open_issues_count":8,"forks_count":35,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-26T20:07:12.226Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/lelandrichardson.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":"2015-05-08T03:33:57.000Z","updated_at":"2025-03-22T07:43:02.000Z","dependencies_parsed_at":"2022-09-06T11:40:29.374Z","dependency_job_id":null,"html_url":"https://github.com/lelandrichardson/react-native-segmented-view","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/lelandrichardson%2Freact-native-segmented-view","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lelandrichardson%2Freact-native-segmented-view/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lelandrichardson%2Freact-native-segmented-view/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lelandrichardson%2Freact-native-segmented-view/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lelandrichardson","download_url":"https://codeload.github.com/lelandrichardson/react-native-segmented-view/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247773721,"owners_count":20993639,"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-01-05T20:17:00.804Z","updated_at":"2025-04-08T04:17:14.973Z","avatar_url":"https://github.com/lelandrichardson.png","language":"JavaScript","funding_links":[],"categories":["Components","JavaScript","Others"],"sub_categories":["UI"],"readme":"# react-native-segmented-view\nSegmented View for React Native (with animation)\n\n\n## Demo\n\n![demo](http://media.giphy.com/media/3oEduLBXWcHSxdN8UE/giphy.gif)\n\n![stretch demo](http://media.giphy.com/media/3oEdv2mvoLWdWmxeik/giphy.gif)\n\n\n## Example\n\n    \u003cSegmentedView\n        titles={[\"First\", \"Second\", \"Third\"]}\n        index={this.state.index}\n        stretch\n        onPress={index =\u003e this.setState({ index })}\n    /\u003e\n\n\n## API (props)\n\n- `titles`: (array) =\u003e an array of renderables, or arbitrary data if you specify a `renderTitle` function\n- `index`: (number) =\u003e the index of the selected title\n- `stretch`: (bool) =\u003e whether or not the titles fill in the space inbetween each other\n- `onPress`: (function(index:number)) =\u003e event when a title is tapped, with the index of the title passed in\n- `renderTitle`: (function(title: any, index:number)) =\u003e if specified, this function will be called for each\n- `duration`: (number) =\u003e the length (in ms) of the animation of the bar from one title to the other when it gets selected\n- `onTransitionStart`: (function) =\u003e called when a transition animation starts\n- `onTransitionEnd`: (function) =\u003e called when a transition animation ends\n- `barColor`: (string) =\u003e the color of the highlight bar\n- `barPosition`: (string) =\u003e the position of the highlight bar.\n- `underlayColor`: (string) =\u003e the underlay color of a title block\n- `selectedTitleStyle`: (object) =\u003e the style of the selected title block\n- `titleStyle`: (object) =\u003e the style of a normal (unselected) title block\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flelandrichardson%2Freact-native-segmented-view","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flelandrichardson%2Freact-native-segmented-view","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flelandrichardson%2Freact-native-segmented-view/lists"}