{"id":4400,"url":"https://github.com/NesChaiyapon/react-native-simple-slider","last_synced_at":"2025-08-04T01:32:23.890Z","repository":{"id":57157563,"uuid":"147354658","full_name":"NesChaiyapon/react-native-simple-slider","owner":"NesChaiyapon","description":"This is a simple javascript slider component for react native.","archived":false,"fork":false,"pushed_at":"2019-02-08T09:00:41.000Z","size":220,"stargazers_count":16,"open_issues_count":0,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-11-09T02:06:51.427Z","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/NesChaiyapon.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":"2018-09-04T13:56:56.000Z","updated_at":"2024-06-10T11:18:08.000Z","dependencies_parsed_at":"2022-09-07T01:00:37.317Z","dependency_job_id":null,"html_url":"https://github.com/NesChaiyapon/react-native-simple-slider","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NesChaiyapon%2Freact-native-simple-slider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NesChaiyapon%2Freact-native-simple-slider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NesChaiyapon%2Freact-native-simple-slider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NesChaiyapon%2Freact-native-simple-slider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NesChaiyapon","download_url":"https://codeload.github.com/NesChaiyapon/react-native-simple-slider/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228582487,"owners_count":17940587,"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:10.718Z","updated_at":"2024-12-07T08:30:38.365Z","avatar_url":"https://github.com/NesChaiyapon.png","language":"JavaScript","funding_links":[],"categories":["Components","Others"],"sub_categories":["Navigation"],"readme":"# React Native Simple Slider\n\nThis is a simple javascript slider component for react native.\n\nThis package is compatible both **Android** and **iOS**.\n\n\u003cimg src=\"https://raw.githubusercontent.com/NesChaiyapon/react-native-simple-slider/master/images/slider-preview.png\" alt=\"Slider component preview image\" width=\"375\" /\u003e\n\n## Installation\n\n`$ yarn add react-native-simple-slider`\n\nor\n\n`$ npm install react-native-simple-slider --save`\n\n## Usage\n\n```jsx\nstate = { value: 0 }\n\n\u003cSlider\n  value={this.state.value}\n  onValueChange={value =\u003e this.setState({ value })}\n  disabledHoverEffect={false}\n/\u003e\n```\n### How to use in ScrollView\n\n```jsx\nstate = { isScrollEnable: true}\n\n\u003cScrollView scrollEnabled={this.state.isScrollEnable}\u003e\n \u003cSlider\n    onSlidingStart={() =\u003e this.setState({ isScrollEnable: false })}\n    onSlidingComplete={() =\u003e this.setState({ isScrollEnable: true })}\n  /\u003e\n\u003c/ScrollView\u003e\n```\n\n## Props\n\n| Attributes            | Type          | Default       | Description  |\n| :---------            | :--:          | :-----:       | :----------- |\n| value                 | `number`      | `0`           | Value of the slider. |\n| minimumValue          | `number`      | `0`           | Minimum value of the slider. |\n| maximumValue          | `number`      | `1`           | Maximum value of the slider. |\n| onSlidingStart        | `func`        | `() =\u003e {}`    | Callback function that is called when the user begin touch the slider. |\n| onValueChange         | `func`        | `() =\u003e {}`    | Callback fucntion that is called while the user is dragging the slider. |\n| onSlidingComplete     | `func`        | `() =\u003e {}`    | Callback function that is called when the user releases the slider. |\n| disabled              | `boolean`     | `false`       | If true the user won't be able to move the slider. |\n| disabledHoverEffect   | `boolean`     | `true`        | If true the slider do not show hover effect. |\n| step                  | `number`      | `0`           | Step value of the slider. The value should be between minimumValue to maximumValue. |\n| minimumTrackTintColor | `string`      | `#3F51B5`     | The color used for the track on the left side of thumb button. |\n| maximumTrackTintColor | `string`      | `#BDBDBD`     | The color used for the track on the right side of thumb button. |\n| thumbTintColor        | `string`      | `#3F51B5`     | Foreground color of thumb button. |\n| thumbButtonSize       | `number`      | `24`          | Size of thumb button. |\n| sliderWidth           | `number`      | `325`         | Width of slider component. |\n| sliderHeight          | `number`      | `6`           | Height of slider component. |\n| sliderBorderRadius    | `number`      | `3`           | Border radius of slider component. |\n| thumbImage            | `image(string/number)`        | `null`        | Sets an image for the thumb button. Only static images are supported. |\n| thumbButton           | `element`     | `null`        | Sets an react component for override the thumb button. |\n\n## Contributing\n\nContributions are welcome. Should run `npm run test` before push.\n\n## License\n\nMIT License\nCopyright (c) 2018 Chaiyapon\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNesChaiyapon%2Freact-native-simple-slider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNesChaiyapon%2Freact-native-simple-slider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNesChaiyapon%2Freact-native-simple-slider/lists"}