iamshadmirza / react-native-design-system

A tiny design system
https://www.npmjs.com/package/react-native-design-system
MIT License
237 stars 31 forks source link

Swipeable component not working #4

Closed iamshadmirza closed 4 years ago

iamshadmirza commented 4 years ago

withSwipeableStyle is a HOC which provides Gmail like swipe option to component. I used the Swipeable component from react-native-gesture-handler but it's not compiling for the web. Storybook documentation can't be built without solving this so I have commented out the code.
You can find it inside the HOC folder, it's a Higher-Order Component used by ListItem and SlidingButton (both commented out right now).
It would be a big help if someone can fix the webpack config so that it works with the web too.

Visit docs repo and checkout .storybook folder.

You can suggest an alternative.

Note: It is working fine with android and ios. GestureHandler works well with the expo web too.

iamshadmirza commented 4 years ago

Not needed now