bartgryszko / react-native-circular-slider

React Native component for creating circular slider :radio_button:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Touch responsiveness of slider inaccurate after navigating to component using React Navigation

javierroberts opened this issue · comments

It seems that the circular slider is not registering the correct location of my presses only when the component is mounted after being navigated to using react-navigation. I was able to identify the issue as being the px value obtained by this._circle.measure in setCircleCenter() of the CircularSlider component. The value of px is different if the component is loaded normally versus if it navigated to using react-navigation. In order to solve this, I simply hardcoded the value for px with the value that is obtained when the component loads normally. However, I am not sure if this solution is going to scale well. Does anyone know of any other solution to this problem that I can attempt? Thanks!

Same issue I am also getting... any solution for this?