githuboftigran / rn-range-slider

A native slider with range
MIT License
237 stars 133 forks source link

Conflict gesture on iOS navigation back #11

Closed ghost closed 5 years ago

ghost commented 5 years ago

You can see in video. Thanks Untitled.mov.zip

githuboftigran commented 5 years ago

Will have a look on weekend. I think self.navigationController?.interactivePopGestureRecognizer?.isEnabled = false on touch down will solve the issue.

githuboftigran commented 5 years ago

@devswift2017 , Didn't work. Tried some other things like isExclusiveTouch and even hitTest: withevent: Nothing helped. I'm actually an android developer and don't have much experience with iOS. Ordinary UISlider doesn't have that problem, but apple is too greedy to share the source code so I can't just read and understand how to do that. If you find a solution or a library which doesn't have this problem, please let me know. Won't close this issue yet.

ghost commented 5 years ago

@githuboftigran Yes , Thank for support. If I have any solution I'll make pull request resolve it.

basbase commented 5 years ago

If you are using react-navigation you can decrease the size of the back gesture area as a workaround: navigationOptions: { gestureResponseDistance: { horizontal: 15 } }}

ghost commented 5 years ago

I had switch used modal stack navigator show up from bottom. And now is okay

githuboftigran commented 5 years ago

@devswift2017 , closing this issue