Skip to content

Latest commit

History

History
37 lines (26 loc) 路 815 Bytes

File metadata and controls

37 lines (26 loc) 路 815 Bytes

馃帀 React Native Image Swipe 馃殌

I was not able to find a suitable library to implement image swipe and proper touchablity. So I made some tweaks and came up with some turnaround

PreRequisite

  • react-native-swipe-gestures

Props

Props Type Default
data Array of object required
imageHeight Number required

Sample image array of data

const data = [
   {
     url:
       "https:image.shutterstock.com/image-vector/sale-banner-template-design-260nw-487646614.jpg"
   },
   {
     url:
       "https:img.freepik.com/free-vector/sale-banner-template-design_74379-121.jpg?size=626&ext=jpg"
   },
   {
     url:
       "https:encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSgfpOj6-pjVbg0rAT-PZ93idqoMGGYn5v7DxbViH3HYix2YFxH&s"
   }
 ];