react-native-multi-slider
react-native-multi-slider copied to clipboard
Passing props to customLabel
Is there a way to pass a user-defined prop to a customLabel? If so, what should be written? Using this,
<Multislider
.
.
enableLabel
customLabel={() => (<CustomLabel myProp={some_value} />)}
.
.
/>
the label is not getting rendered on pressing the markers.
You just need to do this:
customLabel={(props) => (<CustomLabel {...props} myProp={some_value} />)}