- Notifications
You must be signed in to change notification settings - Fork3
ReScript bindings for @react-native-community/slider
License
rescript-react-native/slider
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
ReScript bindings for@react-native-community/slider.
Exposed asReactNativeSlider module.
@rescript-react-native/slider X.y.* means it's compatible with@react-native-community/slider X.y.*
When@react-native-community/slideris properly installed & configured by following their installation instructions,you can install the bindings:
npm install @rescript-react-native/slider#oryarn add @rescript-react-native/slider
@rescript-react-native/slider should be added tobs-dependencies in yourbsconfig.json:
{ //... "bs-dependencies": [ "@rescript/react", "rescript-react-native", // ...+ "@rescript-react-native/slider" ], //...}ReactNativeSlider.make( ~style:ReactNative.Style.t=?, ~value:float=?, ~step:float=?, ~minimumValue:float=?, ~maximumValue:float=?, ~minimumTrackTintColor:string=?, ~maximumTrackTintColor:string=?, ~disabled:bool=?, ~onSlidingStart:float=>unit=?, ~onSlidingComplete:float=>unit=?, ~onValueChange:float=>unit=?, ~testID:string=?, ~children:React.element=?,// iOS Props ~maximumTrackImage:ReactNative.Image.Source.t=?, ~minimumTrackImage:ReactNative.Image.Source.t=?, ~thumbImage:ReactNative.Image.Source.t=?, ~trackImage:ReactNative.Image.Source.t=?, ~inverted:bool=?,// Android ~thumbTintColor:string=?// ... And all <View> props)
<ReactNativeSliderstyle={ReactNative.Style.(style( ~width=200.->dp, ~height=40.->dp, () ) ) }minimumValue={0.}maximumValue={1.}minimumTrackTintColor="#FFFFFF"maximumTrackTintColor="#000000"/>
Check thechangelog for more informations about recentreleases.
Read thecontribution guidelinesbefore contributing.
We want this community to be friendly and respectful to each other. Please readour full code of conductso that you can understand what actions will and will not be tolerated.
About
ReScript bindings for @react-native-community/slider
Topics
Resources
License
Code of conduct
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.
Contributors5
Uh oh!
There was an error while loading.Please reload this page.