Skip to content
New issue

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

CircularSlider not slide on IOS #30

Open
chiphan2008 opened this issue Feb 26, 2018 · 16 comments
Open

CircularSlider not slide on IOS #30

chiphan2008 opened this issue Feb 26, 2018 · 16 comments

Comments

@chiphan2008
Copy link

image

Help me, on android slider good but not act on IOS

@kevinEsherick
Copy link

kevinEsherick commented Mar 23, 2018

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?

@DrJukka
Copy link

DrJukka commented May 17, 2018

Having the same issue, did you find any solution?

@kevinEsherick
Copy link

Nope, sorry. I just abandoned the package

@DrJukka
Copy link

DrJukka commented May 18, 2018

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

@chiphan2008
Copy link
Author

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

@chiphan2008
Copy link
Author

@DrJukka How special?

@stormit-vn
Copy link

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

@DrJukka
Copy link

DrJukka commented Sep 11, 2018

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

@stormit-vn
Copy link

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} >

@chiphan2008
Copy link
Author

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

@stormit-vn
Copy link

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

@HighSoftWare96
Copy link

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

@chiphan2008
Copy link
Author

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!

@sa2812
Copy link

sa2812 commented Sep 16, 2019

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

@MuhammadUsman786786
Copy link

Same issue

@iambilalriaz
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants