{"id":18782880,"url":"https://github.com/rescript-react-native/slider","last_synced_at":"2025-04-13T12:08:40.605Z","repository":{"id":40713032,"uuid":"206009362","full_name":"rescript-react-native/slider","owner":"rescript-react-native","description":"ReScript bindings for @react-native-community/slider","archived":false,"fork":false,"pushed_at":"2023-05-06T16:39:06.000Z","size":181,"stargazers_count":7,"open_issues_count":3,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-13T12:08:32.732Z","etag":null,"topics":["react","react-native","rescript","rescript-react","rescript-react-native","slider"],"latest_commit_sha":null,"homepage":"","language":"ReScript","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/rescript-react-native.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-09-03T06:55:19.000Z","updated_at":"2024-02-19T01:19:26.000Z","dependencies_parsed_at":"2022-07-29T04:18:37.220Z","dependency_job_id":"b4bdbc73-4526-4a45-a767-71e1773d5b8e","html_url":"https://github.com/rescript-react-native/slider","commit_stats":{"total_commits":34,"total_committers":5,"mean_commits":6.8,"dds":0.1470588235294118,"last_synced_commit":"5682b3a7aec9c9ba7460d522175b0094ef12c5c5"},"previous_names":["reason-react-native/slider"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rescript-react-native%2Fslider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rescript-react-native%2Fslider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rescript-react-native%2Fslider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rescript-react-native%2Fslider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rescript-react-native","download_url":"https://codeload.github.com/rescript-react-native/slider/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248710431,"owners_count":21149190,"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","react-native","rescript","rescript-react","rescript-react-native","slider"],"created_at":"2024-11-07T20:37:22.407Z","updated_at":"2025-04-13T12:08:40.583Z","avatar_url":"https://github.com/rescript-react-native.png","language":"ReScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `@rescript-react-native/slider`\n\n[![Build Status](https://github.com/rescript-react-native/slider/workflows/Build/badge.svg)](https://github.com/rescript-react-native/slider/actions)\n[![Version](https://img.shields.io/npm/v/@rescript-react-native/slider.svg)](https://www.npmjs.com/@rescript-react-native/slider)\n[![ReScript Forum](https://img.shields.io/discourse/posts?color=e6484f\u0026label=ReScript%20Forum\u0026server=https%3A%2F%2Fforum.rescript-lang.org)](https://forum.rescript-lang.org/)\n\n[ReScript](https://rescript-lang.org) bindings for\n[`@react-native-community/slider`](https://github.com/callstack/react-native-slider).\n\nExposed as `ReactNativeSlider` module.\n\n`@rescript-react-native/slider` X.y.\\* means it's compatible with\n`@react-native-community/slider` X.y.\\*\n\n## Installation\n\nWhen\n[`@react-native-community/slider`](https://github.com/callstack/react-native-slider)\nis properly installed \u0026 configured by following their installation instructions,\nyou can install the bindings:\n\n```console\nnpm install @rescript-react-native/slider\n# or\nyarn add @rescript-react-native/slider\n```\n\n`@rescript-react-native/slider` should be added to `bs-dependencies` in your\n`bsconfig.json`:\n\n```diff\n{\n  //...\n  \"bs-dependencies\": [\n    \"@rescript/react\",\n    \"rescript-react-native\",\n    // ...\n+    \"@rescript-react-native/slider\"\n  ],\n  //...\n}\n```\n\n## Usage\n\n```rescript\nReactNativeSlider.make(\n  ~style: ReactNative.Style.t=?,\n  ~value: float=?,\n  ~step: float=?,\n  ~minimumValue: float=?,\n  ~maximumValue: float=?,\n  ~minimumTrackTintColor: string=?,\n  ~maximumTrackTintColor: string=?,\n  ~disabled: bool=?,\n  ~onSlidingStart: float =\u003e unit=?,\n  ~onSlidingComplete: float =\u003e unit=?,\n  ~onValueChange: float =\u003e unit=?,\n  ~testID: string=?,\n  ~children: React.element=?,\n  // iOS Props\n  ~maximumTrackImage: ReactNative.Image.Source.t=?,\n  ~minimumTrackImage: ReactNative.Image.Source.t=?,\n  ~thumbImage: ReactNative.Image.Source.t=?,\n  ~trackImage: ReactNative.Image.Source.t=?,\n  ~inverted: bool=?,\n  // Android\n  ~thumbTintColor: string=?\n\n  // ... And all \u003cView\u003e props\n)\n```\n\n### Example\n\n```rescript\n\u003cReactNativeSlider\n  style={\n    ReactNative.Style.(\n      style(\n        ~width=200.-\u003edp,\n        ~height=40.-\u003edp,\n        ()\n      )\n    )\n  }\n  minimumValue={0.}\n  maximumValue={1.}\n  minimumTrackTintColor=\"#FFFFFF\"\n  maximumTrackTintColor=\"#000000\"\n/\u003e\n```\n\n---\n\n## Changelog\n\nCheck the [changelog](./CHANGELOG.md) for more informations about recent\nreleases.\n\n---\n\n## Contribute\n\nRead the\n[contribution guidelines](https://github.com/rescript-react-native/.github/blob/master/CONTRIBUTING.md)\nbefore contributing.\n\n## Code of Conduct\n\nWe want this community to be friendly and respectful to each other. Please read\n[our full code of conduct](https://github.com/rescript-react-native/.github/blob/master/CODE_OF_CONDUCT.md)\nso that you can understand what actions will and will not be tolerated.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frescript-react-native%2Fslider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frescript-react-native%2Fslider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frescript-react-native%2Fslider/lists"}