Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ReScript bindings for @react-native-community/slider

License

NotificationsYou must be signed in to change notification settings

rescript-react-native/slider

Build StatusVersionReScript Forum

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.*

Installation

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"  ],  //...}

Usage

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)

Example

<ReactNativeSliderstyle={ReactNative.Style.(style(        ~width=200.->dp,        ~height=40.->dp,        ()      )    )  }minimumValue={0.}maximumValue={1.}minimumTrackTintColor="#FFFFFF"maximumTrackTintColor="#000000"/>

Changelog

Check thechangelog for more informations about recentreleases.


Contribute

Read thecontribution guidelinesbefore contributing.

Code of Conduct

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

Stars

Watchers

Forks

Contributors5


[8]ページ先頭

©2009-2025 Movatter.jp