Giter Site home page Giter Site logo

Comments (16)

sa2812 avatar sa2812 commented on May 28, 2024 1

In case anyone comes here in future, I came across the same problem. The handles for the slider were working on Android but not on iOS. I played around and realised that it was due to the a View adjacent to the CircularSlider, which was being used to display the amount of time selected.

On Android the code worked like so

<ScrollView>
    <View>
        <CircularSlider />
        <View>
            <Text>{sliderTime}</Text>
        </View>
    </View>
</ScrollView>

However, the view holding sliderTime was blocking touch events on iOS and reordering them fixed it for iOS. It ends up breaking it for Android so I had to end up splitting it into file.android.js and file.ios.js in the end

from react-native-circular-slider.

kevinEsherick avatar kevinEsherick commented on May 28, 2024

I'm experiencing the same issue. Using the example exactly as shown in the docs and it does not respond to touch at all. This is on an iOS device, have not tested on Android or in simulator. Did you find a solution to this? Anyone else have this issue or possibly know a fix?

from react-native-circular-slider.

DrJukka avatar DrJukka commented on May 28, 2024

Having the same issue, did you find any solution?

from react-native-circular-slider.

kevinEsherick avatar kevinEsherick commented on May 28, 2024

Nope, sorry. I just abandoned the package

from react-native-circular-slider.

DrJukka avatar DrJukka commented on May 28, 2024

I managed to get mine working, issue appeared to be caused by differences between javascript engines, and root issue was in my modifications. The example (after modified so it compiles) code in general does work nice with iOS

from react-native-circular-slider.

chiphan2008 avatar chiphan2008 commented on May 28, 2024

CircularSlider don't work in Modal & child component. you should render direct on component's working

from react-native-circular-slider.

chiphan2008 avatar chiphan2008 commented on May 28, 2024

@DrJukka How special?

from react-native-circular-slider.

stormit-vn avatar stormit-vn commented on May 28, 2024

I'm also experiencing this issue with iOS, does anyone has tried and made this work for iOS?

from react-native-circular-slider.

DrJukka avatar DrJukka commented on May 28, 2024

the original example worked fine in iOS. My own issue was that there was a box added into the middle of the component, that somehow prevented the touchevents reaching the slider with iOS. Anyway, the original did not have than included

from react-native-circular-slider.

stormit-vn avatar stormit-vn commented on May 28, 2024

Actually, I didn't modify the example, I just fixed to code to work with latest expo and react-native version also changing transform to use x and y props

<G fill={gradientColorTo} x={stop.toX} y={stop.toY} // transform={{ translate: ${stop.toX}, ${stop.toY} }} onPressIn={() => this.setState({ angleLength: angleLength + Math.PI / 2 })} {...this._wakePanResponder.panHandlers} >

from react-native-circular-slider.

chiphan2008 avatar chiphan2008 commented on May 28, 2024

I'm using svg ^6.4.1 and fixed it on IOS.

from react-native-circular-slider.

stormit-vn avatar stormit-vn commented on May 28, 2024

@chiphan2008 thank you for your information. Seems expo latest version 29.0.0 is using older version react-native-svg: "6.2.2"

from react-native-circular-slider.

HighSoftWare96 avatar HighSoftWare96 commented on May 28, 2024

I've updated the svg as you guys say.. but it does not work anyway...

from react-native-circular-slider.

chiphan2008 avatar chiphan2008 commented on May 28, 2024

I've updated the svg as you guys say.. but it does not work anyway...

It not working in Modal & child component. You try init project and only run this package!

from react-native-circular-slider.

MuhammadUsman786786 avatar MuhammadUsman786786 commented on May 28, 2024

Same issue

from react-native-circular-slider.

iambilalriaz avatar iambilalriaz commented on May 28, 2024

can this slider be used while developing app using expo? if yes then how? because I'm facing this error
#46

from react-native-circular-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.