npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

reactnativeswipesuite

v1.0.0

Published

Swipe Suite contains multiple swiping components with unique purposes and animations.

Downloads

8

Readme

React Native Swipe Suite

A npm module for all your swiping needs

Swipe Suite contains multiple swiping components with unique purposes and animations. Below is a list of all components, their uses, and examples of how to use them.

  1. HorizontalSwiper

    1. Allows you to swipe through child components cyclically left and right
    2. Simple with no animation
    3. requires use of full screen width
    4. has onSwipeRight, onSwipeLeft, and isLoading props
  2. HorizontalSwiperWithFall

    1. Same as Horizontal Swiper with added animation
    2. Swiped components fall away like cards being discarded
  3. HorizontalSwiperWithShrink

    1. Same as Horizontal Swiper with added animation
    2. Swiped components shrink as they move away from the center, giving the illusion of fading into the background
  4. StackOfCards

    1. allows you to swipe through child components as if they are a stack of cards. This is similar to Tinders swipe system
    2. Requires full screen width
    3. has onSwipeRight, onSwipeLeft, and isLoading props
    4. is currently cyclical, but you can stop this by changing child components.
  5. HandOfCards

    1. Allows you to swipe through child components cyclically as if they are a hand of cards.
    2. Requires full screen width
    3. has onSwipeRight, onSwipeLeft, and isLoading props
    4. works best with 5 child components, but can do as few as two
  6. VerticalSwiper

    1. Allows you to swipe through child components cyclically up and down
    2. Requires full screen height
    3. has onSwipeUp, onSwipeDown, and isLoading props

###HorizontalSwiper horizontal swiper

             <HorizontalSwiper
                 isLoading={false}
                 onSwipeRight={()=>{console.log('right swipe')}}
                 onSwipeLeft={()=>{console.log('left swipe')}}
             >

                 <View style={{
                     flex:1,
                     backgroundColor:'crimson',
                     alignItems:'center',
                     justifyContent:'center'
                 }}>
                     <Text style={{fontSize:50,color:'white'}}>
                         First
                     </Text>
                 </View>

                 <View style={{
                     flex:1,
                     backgroundColor:'teal',
                     alignItems:'center',
                     justifyContent:'center'
                 }}>
                     <Text style={{fontSize:50,color:'white'}}>
                         Second
                     </Text>
                 </View>

                 <View style={{
                     flex:1,
                     backgroundColor:'tomato',
                     alignItems:'center',
                     justifyContent:'center'
                 }}>
                     <Text style={{fontSize:50,color:'white'}}>
                         Third
                     </Text>
                 </View>


             </HorizontalSwiper>

###HorizontalSwiperWithFall horizontal swiper with fall

               <HorizontalSwiperWithFall
                   isLoading={false}
                   onSwipeRight={()=>{console.log('right swipe')}}
                   onSwipeLeft={()=>{console.log('left swipe')}}
               >

                   <View style={{
                       flex:1,
                       backgroundColor:'crimson',
                       alignItems:'center',
                       justifyContent:'center'
                   }}>
                       <Text style={{fontSize:50,color:'white'}}>
                           First
                       </Text>
                   </View>

                   <View style={{
                       flex:1,
                       backgroundColor:'teal',
                       alignItems:'center',
                       justifyContent:'center'
                   }}>
                       <Text style={{fontSize:50,color:'white'}}>
                           Second
                       </Text>
                   </View>

                   <View style={{
                       flex:1,
                       backgroundColor:'tomato',
                       alignItems:'center',
                       justifyContent:'center'
                   }}>
                       <Text style={{fontSize:50,color:'white'}}>
                           Third
                       </Text>
                   </View>


               </HorizontalSwiperWithFall>

###HorizontalSwiperWithShrink horizontal swiper with Shrink

              <HorizontalSwiperWithShrink
                  isLoading={false}
                  onSwipeRight={()=>{console.log('right swipe')}}
                  onSwipeLeft={()=>{console.log('left swipe')}}
              >

                  <View style={{
                      flex:1,
                      backgroundColor:'crimson',
                      alignItems:'center',
                      justifyContent:'center'
                  }}>
                      <Text style={{fontSize:50,color:'white'}}>
                          First
                      </Text>
                  </View>

                  <View style={{
                      flex:1,
                      backgroundColor:'teal',
                      alignItems:'center',
                      justifyContent:'center'
                  }}>
                      <Text style={{fontSize:50,color:'white'}}>
                          Second
                      </Text>
                  </View>

                  <View style={{
                      flex:1,
                      backgroundColor:'tomato',
                      alignItems:'center',
                      justifyContent:'center'
                  }}>
                      <Text style={{fontSize:50,color:'white'}}>
                          Third
                      </Text>
                  </View>


              </HorizontalSwiperWithShrink>

###StackOfCards stack of cards

                 <StackOfCards
                     isLoading={false}
                     onSwipeRight={()=>{console.log('right swipe')}}
                     onSwipeLeft={()=>{console.log('left swipe')}}
                 >

                     <View style={{
                         flex:1,
                         backgroundColor:'crimson',
                         alignItems:'center',
                         justifyContent:'center'
                     }}>
                         <Text style={{fontSize:50,color:'white'}}>
                             First
                         </Text>
                     </View>

                     <View style={{
                         flex:1,
                         backgroundColor:'teal',
                         alignItems:'center',
                         justifyContent:'center'
                     }}>
                         <Text style={{fontSize:50,color:'white'}}>
                             Second
                         </Text>
                     </View>

                     <View style={{
                         flex:1,
                         backgroundColor:'tomato',
                         alignItems:'center',
                         justifyContent:'center'
                     }}>
                         <Text style={{fontSize:50,color:'white'}}>
                             Third
                         </Text>
                     </View>


                 </StackOfCards>

###HandOfCards hand of cards

          <View style={{flex:1,backgroundColor:'black'}}>

              <HandOfCards
                  isLoading={false}
                  onSwipeRight={()=>{console.log('right swipe')}}
                  onSwipeLeft={()=>{console.log('left swipe')}}
              >

                  <View style={{
                      flex:1,
                      backgroundColor:'crimson',
                      alignItems:'center',
                      justifyContent:'center',
                      margin:10,
                      borderRadius:20
                  }}>
                      <Text style={{fontSize:50,color:'white'}}>
                          First
                      </Text>
                  </View>

                  <View style={{
                      flex:1,
                      backgroundColor:'teal',
                      alignItems:'center',
                      justifyContent:'center',
                      margin:10,
                      borderRadius:20
                  }}>
                      <Text style={{fontSize:50,color:'white'}}>
                          Second
                      </Text>
                  </View>

                  <View style={{
                      flex:1,
                      backgroundColor:'tomato',
                      alignItems:'center',
                      justifyContent:'center',
                      margin:10,
                      borderRadius:20
                  }}>
                      <Text style={{fontSize:50,color:'white'}}>
                          Third
                      </Text>
                  </View>

                  <View style={{
                      flex:1,
                      backgroundColor:'skyblue',
                      alignItems:'center',
                      justifyContent:'center',
                      margin:10,
                      borderRadius:20
                  }}>
                      <Text style={{fontSize:50,color:'white'}}>
                          Fourth
                      </Text>
                  </View>

                  <View style={{
                      flex:1,
                      backgroundColor:'violet',
                      alignItems:'center',
                      justifyContent:'center',
                      margin:10,
                      borderRadius:20
                  }}>
                      <Text style={{fontSize:50,color:'white'}}>
                          Fifth
                      </Text>
                  </View>


              </HandOfCards>

          </View>

###VerticalSwiper hand of cards

             <VerticalSwiper
                 isLoading={false}
                 onSwipeRight={()=>{console.log('right swipe')}}
                 onSwipeLeft={()=>{console.log('left swipe')}}
             >

                 <View style={{
                     flex:1,
                     backgroundColor:'crimson',
                     alignItems:'center',
                     justifyContent:'center',
                 }}>
                     <Text style={{fontSize:50,color:'white'}}>
                         First
                     </Text>
                 </View>

                 <View style={{
                     flex:1,
                     backgroundColor:'teal',
                     alignItems:'center',
                     justifyContent:'center',
                 }}>
                     <Text style={{fontSize:50,color:'white'}}>
                         Second
                     </Text>
                 </View>

                 <View style={{
                     flex:1,
                     backgroundColor:'tomato',
                     alignItems:'center',
                     justifyContent:'center',
                 }}>
                     <Text style={{fontSize:50,color:'white'}}>
                         Third
                     </Text>
                 </View>

             </VerticalSwiper>