-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom thumb #2
Comments
Thanks for your compliment!
I directly pass on the options to the slider. So if your slider supports
a custom thumb it shouldn't be an issue. So if your React Native version
supports it, it shouldn't be an issue.
However, if there are any issues I am afraid I can not help you, as our
company Mac Pro has broken down and we do not have a further Apple device.
Yours sincerely,
Lukas Schörghuber
…On 03/02/17 17:58, Igor wrote:
Nice button !
Is it possible to customize the thumb? I'd like to put an image or an icon instead of the circle.
Thanks
|
@agentS So which particular prop sets the thumb style? The stylesheet prop is only setting the whole slider style. |
The keys are simply passed through. My code looks the following:
<SliderIOS key={this.state.timestamp}
style={[styles.slider, styles.sliderBorder,
SliderButtonStyleConstant.slider]}
onSlidingComplete={(newValue) => this.onSliderValueChanged(newValue)}
minimumValue={0} maximumValue={100} value={actualValue}
{...this.props}/>
`{...this.props}` passes all overgiven parameters through. See the `...`
operator.
Have a nice day!
…On 07/02/17 14:38, Igor wrote:
@agentS So which particular prop sets the thumb style? The stylesheet prop is only setting the whole slider style.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice button !
Is it possible to customize the thumb? I'd like to put an image or an icon instead of the circle.
Thanks
The text was updated successfully, but these errors were encountered: