Comments (14)
I'll take a look today on my 5C and let you know 👍
from react-native-side-menu.
👍 Thanks.
Do you need a little video to better understand what's the issue?
I see the "help wanted" label, So I guess this can help.
from react-native-side-menu.
It'll be very kind of you
from react-native-side-menu.
Actually I can repro the issue in the IOS Simulator. (iPhone 6)
Here is the video where you can see the problem :
https://www.dropbox.com/s/fhh7moifeuvumfq/react-native-side-menu.mov?dl=0
The following line of code seems to be the cause of this issue :
https://github.com/Kureev/react-native-side-menu/blob/master/index.js#L86
I tried to debug the x
and y
values when I swipe horizontally and sometimes y
has another value than 0. (eg: 1 or 23).
I tried to directly return true
in the handleMoveShouldSetPanResponder
function and the problem disappears.
from react-native-side-menu.
- https://github.com/Kureev/react-native-side-menu/blob/master/index.js#L86 really looks strange. @chirag04 fyi.
- I've tried on my 5C, can't reproduce your issue. Do you see it on my example? I'm really curious now.
from react-native-side-menu.
I use the latest version of react-native
.
Extract of my package.json
:
"dependencies": {
"react-native": "[email protected]:facebook/react-native.git#master"
},
I hope this helps.
from react-native-side-menu.
Yeah, I bumped my version and I see your problem now. Trying to figure out why we need cd7b348
from react-native-side-menu.
@pointcom Should be fixed in 0.2.4
from react-native-side-menu.
@Kureev Yeah, it works now! Thank you!
from react-native-side-menu.
@Kureev I think I know why the previous code tested the y axis value.
I just added a view with a scroll and when I scroll the view with a vertical swipe, sometimes the side menu appears.
from react-native-side-menu.
@pointcom thats exactly y i added that y check. But like @Kureev said we need a better way to do this.
from react-native-side-menu.
@pointcom @chirag04 Not sure I got it. In my example you can find side view with scroll and it works fine. Could you reproduce your issue on it?
from react-native-side-menu.
Sorry I wasn't clear enough and my example was wrong.
If you add a ListView
inside the SideMenu
here :
https://github.com/Kureev/react-native-side-menu/blob/master/examples/simple/index.ios.js#L44-L55
Then the scroll on this Listview
would not work.
Because of this commit : eb6c8f4
But if we revert this commit, then my initial issue would come back ('Menu from the example works once in a while in IOS device').
I guess we need to better handle the swipe motion.
from react-native-side-menu.
I have just created a Pull Request about this issue :
#9
Feel free to review it.
from react-native-side-menu.
Related Issues (20)
- OpenMenuOffset not working in production.
- Where did the Menu tags come from? HOT 2
- Hardware Back closes App on every scene in side menu
- Sample code does not work HOT 1
- Shadow/Elevation possibility feature request HOT 1
- undefined is not a function (near '..._react2.default.createClass...') Why am i getting this error ?
- TypeError Undefined is not a function (evaluating _firebase.default.initialize app) HOT 1
- SideMenu is visible below the component it is rendered on HOT 6
- 1 to 2 second delay when toggling menu HOT 3
- Crash on iOS when app built in release, works in debug HOT 3
- Is react-native-web supported? HOT 2
- All API props are not available in v1.1.3
- autoClosing prop does not work
- Use native driver for the animation HOT 4
- Side Menu stuck on android device, i can not click any where. it always appear at the left side of the screen and ovellaping the main screen content HOT 1
- Change style overlay
- componentWillMount has been renamed, and is not recommended for use HOT 1
- align problem when phone language is Arabic HOT 3
- Can we get a new release please? HOT 15
- Warnings HOT 6
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-side-menu.