Comments (16)
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.
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.
Having the same issue, did you find any solution?
from react-native-circular-slider.
Nope, sorry. I just abandoned the package
from react-native-circular-slider.
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.
CircularSlider don't work in Modal & child component. you should render direct on component's working
from react-native-circular-slider.
@DrJukka How special?
from react-native-circular-slider.
I'm also experiencing this issue with iOS, does anyone has tried and made this work for iOS?
from react-native-circular-slider.
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.
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.
I'm using svg ^6.4.1 and fixed it on IOS.
from react-native-circular-slider.
@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.
I've updated the svg as you guys say.. but it does not work anyway...
from react-native-circular-slider.
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.
Same issue
from react-native-circular-slider.
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)
- Layout broken with RN 0.48 HOT 10
- Become a maintainer of this package HOT 6
- Tried to register two views with the same name RNSVGPath HOT 3
- How to Restrict BedTime Marker not to move beyond 0 ? Any Hack ?
- Some informations
- Undefined is not an object (evaluating '_react2.PropTypes.number') HOT 6
- how can i make this work on reactjs HOT 7
- ClockFace and circle is placed in wrong position HOT 3
- Component do not slide on Android
- I want the same for 33, 100 ,1000 instead of 360 .Do any one has any idea? HOT 1
- Ticks do not line up correctly with numbers HOT 1
- Cannot read property 'number' of undefined HOT 2
- How can I limit the travel range of an icon?
- Touch responsiveness of slider inaccurate after navigating to component using React Navigation HOT 1
- Suport for typescript HOT 4
- update needed
- Project status ?
- Unable to use in expo go HOT 2
- Cnnot read property 'number' of undefined in ClockFace HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-circular-slider.