{"id":21117142,"url":"https://github.com/hezhii/react-native-mark-slider","last_synced_at":"2025-07-08T20:30:34.621Z","repository":{"id":57338225,"uuid":"160379574","full_name":"hezhii/react-native-mark-slider","owner":"hezhii","description":"A marked slider component base on React Native Slider component.","archived":false,"fork":false,"pushed_at":"2018-12-24T15:29:30.000Z","size":206,"stargazers_count":3,"open_issues_count":2,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-27T23:46:24.022Z","etag":null,"topics":["component","marks","react-native","slider"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","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/hezhii.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-12-04T15:34:50.000Z","updated_at":"2019-12-22T15:02:20.000Z","dependencies_parsed_at":"2022-08-31T08:00:32.123Z","dependency_job_id":null,"html_url":"https://github.com/hezhii/react-native-mark-slider","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/hezhii/react-native-mark-slider","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hezhii%2Freact-native-mark-slider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hezhii%2Freact-native-mark-slider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hezhii%2Freact-native-mark-slider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hezhii%2Freact-native-mark-slider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hezhii","download_url":"https://codeload.github.com/hezhii/react-native-mark-slider/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hezhii%2Freact-native-mark-slider/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264343445,"owners_count":23593711,"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":["component","marks","react-native","slider"],"created_at":"2024-11-20T02:39:03.988Z","updated_at":"2025-07-08T20:30:34.277Z","avatar_url":"https://github.com/hezhii.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-mark-slider\n\nA marked slider component base on React Native [Slider component](https://facebook.github.io/react-native/docs/slider).\n\n\u003cdiv align=center\u003e\u003cimg src=\".github/screenshot.png\"\u003e\u003c/div\u003e\n\n## Usage\n\n```bash\n$ npm i react-native-mark-slider\n```\n\n```js\nimport React, { Component } from 'react';\nimport { StyleSheet, View, Text } from 'react-native';\nimport MarkSlider from 'react-native-mark-slider';\n\nexport default class App extends Component {\n  state = {\n    value: 0,\n  };\n\n  render() {\n    const marks = [\n      { name: '0℃', value: 0 },\n      { name: '16℃', value: 16 },\n      { name: '30℃', value: 30 },\n    ];\n    return (\n        \u003cView style={styles.container}\u003e\n          \u003cMarkSlider\n              step={1}\n              max={30}\n              marks={marks}\n              onChange={value =\u003e this.setState({ value })}\n          /\u003e\n          \u003cView style={{ alignItems: 'center' }}\u003e\n            \u003cText\u003eValue：{this.state.value}\u003c/Text\u003e\n          \u003c/View\u003e\n        \u003c/View\u003e\n    );\n  }\n}\n\nconst styles = StyleSheet.create({\n  container: {\n    flex: 1,\n    justifyContent: 'center',\n  },\n});\n```\n\n## Configuration\n\nSupport all the properties of React Native Slider, except some property names that have been adjusted.\n\n|Property|Type|Default|Description|\n|:---|:---|:---|:---|\n|marks|object[]|null|Tick marks of slider.The item value must be `number`, and must in closed interval min, max. |\n|min|number|0|Initial minimum value of the slider.|\n|max|number|1|Initial maximum value of the slider.|\n|onChange|function|null|Callback continuously called while the user is dragging the slider.|\n|onAfterChange|function|null|Callback that is called when the user releases the slider.|","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhezhii%2Freact-native-mark-slider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhezhii%2Freact-native-mark-slider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhezhii%2Freact-native-mark-slider/lists"}