We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I noticed that if the component got re-rendered with a new onChange/onComplete prop, it won't be used. This is due to how the panResponder is created in https://github.com/sacmii/rn-vertical-slider/blob/master/src/index.tsx#L168, which is a Ref that never updates.
panResponder
The text was updated successfully, but these errors were encountered:
This is likely an issue in how PanResponder works with useRef. See https://snack.expo.dev/@chxryan/panresponder-caching-issue
PanResponder
useRef
I got inspired from https://stackoverflow.com/questions/58939572/how-to-use-panresponder-in-functional-components and tried useMemo, and it worked.
useMemo
Sorry, something went wrong.
fix(sacmii#87): attempted to fix sacmii#87 but this is causing slider…
214c018
… value to reset each render
I tried in my PR above but that is causing the slider value got reset on each re-render. I'll look into this when I have more time.
No branches or pull requests
I noticed that if the component got re-rendered with a new onChange/onComplete prop, it won't be used. This is due to how the
panResponder
is created in https://github.com/sacmii/rn-vertical-slider/blob/master/src/index.tsx#L168, which is a Ref that never updates.The text was updated successfully, but these errors were encountered: