Closed nakshatrasinghh closed 1 year ago
Please try to illustrate your issue with this snack
https://snack.expo.dev/@nakshatrasinghh/slider1
Here is my snack
Can you describe what exactly is the problem?
What is the expected behavior, and what is the current behavior?
Do you notice how the slider stops after continuously touching it? But the value of the slider (onValueChnage callback) still works
A little context of what this is all about, I am making sort of like a PWA which renders the mobile web view in the centre of the page
EDITED This behaviour is also happens when the image is not being passed, no thumbImage and CustomThumb is defined
When I check your snack, I don't see the issue you describe...
Yes, this issue is not happening on expo, but it happens on react native web view. Snack works fully fine idk why
Also, if I run it on my device (expo) after scanning code, this issue still happens
Snack uses react-native-web, so it's the same stack. My guess is that your code is trying to control the value of the slider while it is changing. So the slider receive both inputs and has to make a choice between the value that changes when the user moves, and the value that you provide as prop.
Anyway, I can't help more as long as you don't reproduce the bug on expo. The rest is probably related to your implementation that I have no access to.
Also, if I run it on my device (expo) after scanning code, this issue still happens
So it's not on the web? On what OS is it then?
Understood, thanks for the help my brother, really means a lot. Cheers and happy coding!
Also, if I run it on my device (expo) after scanning code, this issue still happens
So it's not on the web? On what OS is it then?
iOS yes
Snack uses react-native-web, so it's the same stack. My guess is that your code is trying to control the value of the slider while it is changing. So the slider receive both inputs and has to make a choice between the value that changes when the user moves, and the value that you provide as prop.
Anyway, I can't help more as long as you don't reproduce the bug on expo. The rest is probably related to your implementation that I have no access to.
heyy brother, thanks for this, just solved the issue, i was asynchronously changing the value of the text and the slider prop value together, now I made a synchronous call and it works absolutely fine