Coder Social home page Coder Social logo

Comments (10)

jeanregisser avatar jeanregisser commented on July 30, 2024

Ok interesting.
I took care of preventing this, so there must be something failing.

Which version are you using? with which React Native version?

from react-native-slider.

cornedor avatar cornedor commented on July 30, 2024

I've created a brand new project to test this but I found the issue using react native 0.28.0. But the app recorded in the video is using react native 0.31.0. They are both using react-native-slider 0.9.0.

from react-native-slider.

jeanregisser avatar jeanregisser commented on July 30, 2024

Does it happen on a real device?
I've seen a case where the onLayout event, which the slider relies on for positioning the thumb, is called constantly with slightly different measures. But I was able to reproduce that only with Genymotion.

from react-native-slider.

cornedor avatar cornedor commented on July 30, 2024

The recordings are from my device (Nexus 5X). I did see the thumbs jump a bit, so it might be the same issue.

from react-native-slider.

jeanregisser avatar jeanregisser commented on July 30, 2024

What's the tool you're using which shows the graph and flashes re-render?

from react-native-slider.

cornedor avatar cornedor commented on July 30, 2024

In the Android Developer options "Show GPU view updates" and "Profile GPU rendering" set to "On screen as bars"

from react-native-slider.

jeanregisser avatar jeanregisser commented on July 30, 2024

Ok thanks, I tested it on a Nexus 5 and couldn't reproduce.
I think it's very likely to be the onLayout issue I was talking about which would happen reliably on a Nexus 5X.
Do you happen to have a Nexus 5 to confirm this?

from react-native-slider.

jeanregisser avatar jeanregisser commented on July 30, 2024

Alright, I can reliably reproduce the problem with a 5X emulator.

from react-native-slider.

jeanregisser avatar jeanregisser commented on July 30, 2024

@cornedor I've just published 0.9.1 on npm with a fix for this. 🎉
Let me know how it works for you.

from react-native-slider.

cornedor avatar cornedor commented on July 30, 2024

@jeanregisser thanks!
https://a.pomf.cat/ghgxdm.mp4

from react-native-slider.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.