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

Does it work on the web? #94

Open
kopax opened this issue Feb 8, 2020 · 1 comment
Open

Does it work on the web? #94

kopax opened this issue Feb 8, 2020 · 1 comment

Comments

@kopax
Copy link

kopax commented Feb 8, 2020

Hello, in the development of a web/ios/android application with expo SDK 36, I am looking to achieve a google mail application swipe like list view in Android, iOS and web.

I haven't seen any issue tagged with react-native-web, is this library also supporting web?
Thanks a lot for sharing!

@toddpi314
Copy link

It doesn't. But, if you want to submit a PR, start by extending _handleMoveShouldSetPanResponder with:

 _handleMoveShouldSetPanResponder = (event, gestureState) => {
    return Platform.OS === 'web'
      ? gestureState.numberActiveTouches > 0
      : Math.abs(gestureState.dx) > this.props.swipeStartMinDistance
  }

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

2 participants