Code Monkey home page Code Monkey logo

Comments (14)

Kureev avatar Kureev commented on July 22, 2024

I'll take a look today on my 5C and let you know 👍

from react-native-side-menu.

pointcom avatar pointcom commented on July 22, 2024

👍 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.

Kureev avatar Kureev commented on July 22, 2024

It'll be very kind of you

from react-native-side-menu.

pointcom avatar pointcom commented on July 22, 2024

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.

Kureev avatar Kureev commented on July 22, 2024
  1. https://github.com/Kureev/react-native-side-menu/blob/master/index.js#L86 really looks strange. @chirag04 fyi.
  2. 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.

pointcom avatar pointcom commented on July 22, 2024

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.

Kureev avatar Kureev commented on July 22, 2024

Yeah, I bumped my version and I see your problem now. Trying to figure out why we need cd7b348

from react-native-side-menu.

Kureev avatar Kureev commented on July 22, 2024

@pointcom Should be fixed in 0.2.4

from react-native-side-menu.

pointcom avatar pointcom commented on July 22, 2024

@Kureev Yeah, it works now! Thank you!

from react-native-side-menu.

pointcom avatar pointcom commented on July 22, 2024

@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.

chirag04 avatar chirag04 commented on July 22, 2024

@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.

Kureev avatar Kureev commented on July 22, 2024

@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.

pointcom avatar pointcom commented on July 22, 2024

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.

pointcom avatar pointcom commented on July 22, 2024

I have just created a Pull Request about this issue :
#9

Feel free to review it.

from react-native-side-menu.

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.