SimformSolutionsPvtLtd / react-native-radial-slider

React Native component to select or highlight a specific value from a range of values 👌 ✨
MIT License
141 stars 14 forks source link

Unable to change slider value manually from input box #35

Closed AzherMansoori closed 1 year ago

AzherMansoori commented 1 year ago

@mukesh-simform @parth-simform
I want to change slider thumb position(value) on TextInput onTextChange but unable to do this.

const [avalue, setValue] = useState(0);

console.log(">>>",v)} // onChange not even calling when updating value from text input. /> setValue(Number(v))}> Untitled 4
mukesh-simform commented 1 year ago

@AzherMansoori Thank you for bringing this to our attention. We'll make sure to address this issue as soon as possible. Alternatively, If you'd like to contribute to fixing this issue, feel free to submit a pull request.

AzherMansoori commented 1 year ago

@mukesh-simform fixed this issue but seems i cannot push my changes to this repo.

Untitled
wygarner commented 1 year ago

@AzherMansoori How were you able to fix this issue? I am facing a similar problem

hoonguyen commented 1 year ago

@mukesh-simform This tool is very useful. I'd really appreciate it if you could update to a new version that fixed this render bug.

AzherMansoori commented 1 year ago

@AzherMansoori How were you able to fix this issue? I am facing a similar problem

Hi @wygarner Go to > node_modules/react-native-radial-slider/lib/components/RadialSlider/hooks/useSilderAnimation.js Add following code snippet inside useSliderAnimation.js file. useEffect(()=>{ setValue(props.value); onChange(props.value); },[props.value])

radial_slider_issue

that's it. Enjoy Coding