{"id":16457647,"url":"https://github.com/jesster2k10/react-native-range-slider","last_synced_at":"2025-08-23T03:09:06.104Z","repository":{"id":38912318,"uuid":"249543036","full_name":"jesster2k10/react-native-range-slider","owner":"jesster2k10","description":"A high-quality, cross platform, native iOS range slider for react native. A slider, similar in style to UISlider, but which allows you to pick a minimum and maximum range; inspired by react-native-range-slider","archived":false,"fork":false,"pushed_at":"2023-01-26T18:25:00.000Z","size":3494,"stargazers_count":59,"open_issues_count":41,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-12T10:43:08.432Z","etag":null,"topics":["range-slider","rangeslider","react","react-native","react-native-range","react-native-range-slider","seekbar","seekbar-android","slider-range"],"latest_commit_sha":null,"homepage":"","language":"Java","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/jesster2k10.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-23T21:00:44.000Z","updated_at":"2024-09-15T14:57:26.000Z","dependencies_parsed_at":"2023-02-04T07:45:59.300Z","dependency_job_id":null,"html_url":"https://github.com/jesster2k10/react-native-range-slider","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jesster2k10%2Freact-native-range-slider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jesster2k10%2Freact-native-range-slider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jesster2k10%2Freact-native-range-slider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jesster2k10%2Freact-native-range-slider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jesster2k10","download_url":"https://codeload.github.com/jesster2k10/react-native-range-slider/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221575025,"owners_count":16846120,"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":["range-slider","rangeslider","react","react-native","react-native-range","react-native-range-slider","seekbar","seekbar-android","slider-range"],"created_at":"2024-10-11T10:43:11.656Z","updated_at":"2024-10-26T19:54:01.053Z","avatar_url":"https://github.com/jesster2k10.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Native Range Slider\n\nA high-quality, cross platform, native iOS range slider for react native. A slider, similar in style to UISlider, but which allows you to pick a minimum and maximum range; inspired by [react-native-range-slider](https://github.com/ismnoiet/react-native-range-slider)\n\n## Features\n\n- iOS Support\n- Android Support\n- Native Code\n- Customizable\n- Typescript Support\n\n## IOS Example\n\n![IOS Demo](./Range-slider-ios.gif 'Ios')\n\n## Android Example\n\n![IOS Demo](./Range-slider-android.gif 'Android')\n\n## Installation\n\nInstall the library using either yarn or npm like so:\n\n```sh\nyarn add @jesster2k10/react-native-range-slider\n```\n\n```sh\nnpm install --save @jesster2k10/react-native-range-slider\n```\n\n### IOS Installation\n\nIf you're using React Native versions \u003e 60.0, it's relatively straightforward.\n\n```sh\ncd ios \u0026\u0026 pod install\n```\n\nFor versions below 0.60.0, use rnpm links\n\n- Run `react-native link @jesster2k10/react-native-range-slider`\n- If linking fails, follow the\n  [manual linking steps](https://facebook.github.io/react-native/docs/linking-libraries-ios.html#manual-linking)\n\n### Android Installation\n\nFor versions below 0.60.0, follow the linking instructions above.\nThere are additional steps required to get started with android.\n\n### Step One\n\nModify your settings.gradle to include the following\n\n```gradle\ninclude ':rangeseekbar'\nproject(':rangeseekbar').projectDir = new File(rootProject.projectDir, '../node_modules/@jesster2k10/react-native-range-slider/android/crystalrangeseekbar')\n```\n\n### Step Two\n\nModify and your application `build.gradle` to include:\n\n```gradle\nbuildscript {\n  dependencies {\n    classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'\n    classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'\n  }\n}\n```\n\n### Step Three\n\n*NOTE: This only applies to react native versions greater than 0.60.0*\n*NOTE: if you don't have a react-native.config.js file, just create one at the root of your project\n\nAdjust your `react-native.config.js` to include the following:\n\n\n```js\nmodule.exports = {\n  dependencies: {\n    '@jesster2k10/react-native-range-slider': {\n      platforms: {\n        android: {\n          packageImportPath:\n            'import com.jesster2k10reactnativerangeslider.ReactNativeRangeSliderPackage;',\n        },\n      },\n    },\n  },\n}\n```\n\n### Step Four\n\nModify your `AndroidManifest.xml` and set `android:allowBackup=\"true\"`, see below for example:\n\n```xml\n\u003cmanifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n  xmlns:tools=\"http://schemas.android.com/tools\"\n  package=\"com.ReactNativeRangeSliderExample\"\u003e\n\n    \u003cuses-permission android:name=\"android.permission.INTERNET\" /\u003e\n\n    \u003capplication\n      android:name=\".MainApplication\"\n      android:label=\"@string/app_name\"\n      android:icon=\"@mipmap/ic_launcher\"\n      android:roundIcon=\"@mipmap/ic_launcher_round\"\n      android:allowBackup=\"true\"\n      android:theme=\"@style/AppTheme\"\u003e\n      \u003cactivity\n        android:name=\".MainActivity\"\n        android:label=\"@string/app_name\"\n        android:configChanges=\"keyboard|keyboardHidden|orientation|screenSize\"\n        android:windowSoftInputMode=\"adjustResize\"\u003e\n        \u003cintent-filter\u003e\n            \u003caction android:name=\"android.intent.action.MAIN\" /\u003e\n            \u003ccategory android:name=\"android.intent.category.LAUNCHER\" /\u003e\n        \u003c/intent-filter\u003e\n      \u003c/activity\u003e\n      \u003cactivity android:name=\"com.facebook.react.devsupport.DevSettingsActivity\" /\u003e\n    \u003c/application\u003e\n\n\u003c/manifest\u003e\n```\n\n## Usage\n\n### Basic Usage\n\nYou can check out the [examples](./example/src/App.tsx) for more usage.\n\n```js\nimport RangeSlider from '@jesster2k10/react-native-range-slider';\n\n// ...\nconst App = () =\u003e {\n  const onChange = (min: number, max: number) =\u003e {\n    console.log('min: ', min)\n    console.log('max: ', max)\n  }\n\n  return (\n  \u003cRangeSlider\n    type=\"range\" // ios only\n    min={0}\n    max={100}\n    selectedMinimum={20} // ios only\n    selectedMaximum={60} // ios only\n    tintColor=\"#ecf0f1\"\n    handleColor=\"#f368e0\"\n    handlePressedColor=\"#f368e0\"\n    tintColorBetweenHandles=\"#ff9ff3\"\n    onChange={onChange}\n  /\u003e\n  )\n}\n```\n\n## Props\n\n![Props Explanation](./illustration.png)\n\n### Common Props\n\n| property                | type                               | description                                                                      | required |\n| ----------------------- | ---------------------------------- | -------------------------------------------------------------------------------- | -------- |\n| min                     | number                             | the minimum value for the slider                                                 | TRUE     |\n| max                     | number                             | the maximum value for the slider                                                 | TRUE     |\n| onChange                | (min: number, max: number) =\u003e void | a callback that will be called with slider data once the values change           | FALSE    |\n| tintColor               | string                             | tint color for the slider track \u0026 handles (ios only, use handleColor on android) | FALSE    |\n| tintColorBetweenHandles | string                             | tint color for the active part of the slider track                               | FALSE    |\n| step                    | number                             | the step for the slider                                                          | FALSE    |\n| handleColor             | string                             | the color for both left and right handlers                                       | FALSE    |\n| style                   | object                             | a custom style object for the slider                                             | FALSE    |\n| prefix                  | string                             | the prefix for the min and max values                                            |          |\n| suffix                  | string                             | the suffix for the min and max values                                            |          |  | FALSE |\n\n### IOS Only Props\n\n| property          | type    | description                                               | required           |\n| ----------------- | ------- | --------------------------------------------------------- | ------------------ |\n| type              | slider  | range                                                     | the type of slider | FALSE |\n| selectedMaximum   | number  | the selected maximum value, it shouldn't be less than max | FALSE              |\n| selectedMinimum   | number  | the selected minimum value, it shouldn't be less than min | FALSE              |\n| handleBorderColor | string  | the color for the slider handle border                    | FALSE              |\n| handleWidth       | number  | the size of the handle                                    | FALSE              |\n| minLabelColor     | string  | the color of the minimum (left hand) label                | FALSE              |\n| maxLabelColor     | string  | the color of the maximum (right hand) label               | FALSE              |\n| handleDiameter    | number  | the diameter of the handle                                | FALSE              |\n| lineHeight        | number  | the height of the slider track                            | FALSE              |\n| hideLabels        | boolean | controls whether the min and max labels are visible       | FALSE              |\n| minLabelFont      | string  | the font family name of the min (left hand) label         | FALSE              |\n| minLabelFontSize  | number  | the font size of the min (left hand) label                | FALSE              |\n| maxLabelFont      | string  | the font family name of the max (right hand) label        | FALSE              |\n| maxLabelFontSize  | number  | the font size of the max (right hand) label               | FALSE              |\n| labelPadding      | number  | extra padding for the min \u0026 max labels                    | FALSE              |\n| maxDistance       | number  | the maximum distance between handles                      | FALSE              |\n| minDistance       | number  | the minimum distance between handles                      | FALSE              |\n| lineBorderWidth   | number  | the border width of the slider track                      | FALSE              |\n| lineBorderColor   | string  | the border color of the slider track                      | FALSE              |\n\n### Android Only Props\n\n| property                | type   | description                                      | required |\n| ----------------------- | ------ | ------------------------------------------------ | -------- |\n| leftHandleColor         | string | the color of the left handle                     | FALSE    |\n| leftHandlePressedColor  | string | the color of the left (min) handle when touched  | FALSE    |\n| rightHandleColor        | string | the color of the right (max) handle              | FALSE    |\n| rightHandlePressedColor | string | the color of the right (max) handle when touched | FALSE    |\n| handlePressedColor      | string | the color of the handle when touched             | FALSE    |\n| minStartValue           | number | -                                                | FALSE    |\n| maxStartValue           | number | -                                                | FALSE    |\n| fixGap                  | number | a fixed gap between the handles                  | FALSE    |\n| corderRadius            | number | the corder radius of the slider track            | FALSE    |\n\n#### Please note that on android, the tint color refers to the color of the empty track.\n\n## Acknowledgments\n\n- This library is an extended version of [react-native-range-slider](https://github.com/ismnoiet/react-native-range-slider)\n- The iOS version is based off of [TTRangeSlider](https://github.com/TomThorpe/TTRangeSlider)\n- The Android version is a modified version of [CrystalRangeSeekbar](https://github.com/syedowaisali/crystal-range-seekbar)\n\n### Roadmap\n\n- [ ] Improve android customization abilities (fonts, handle size)\n- [ ] Improve documentation\n- [ ] Unit tests\n- [ ] Flow support\n\n### Contribution\n\nPlease visit the [CONTRIBUTING.md](CONTRIBUTING.md) file.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjesster2k10%2Freact-native-range-slider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjesster2k10%2Freact-native-range-slider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjesster2k10%2Freact-native-range-slider/lists"}