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

react-native-vertical-swiper

v1.0.5

Published

An animated vertical swiper for React Native that offers smooth scrolling and customizable item rendering for a sleek, interactive user experience. πŸ“šπŸ“šπŸ“š

Downloads

12

Readme

react-native-vertical-swiper

react-native-vertical-swiper is a simple and customizable vertical swiper component for React Native applications. This package allows you to scroll through list items vertically and provides a flexible structure for customization.

https://github.com/user-attachments/assets/922c0485-6f3d-4f3b-84c1-6d9e0f4a62b3

Features

  • Vertical Scrolling: Allows you to scroll through list items vertically.
  • Customizable: Offers customization options for rendered items.
  • Easy to Use: Simple API and easy integration.

Installation

You can install the package using npm or yarn:

npm install react-native-vertical-swiper 
or
yarn add react-native-vertical-swiper

Usage

You can include the VerticalSwiper component in your application and use it as follows:

import React from 'react';
import { View, Text, StyleSheet } from 'react-native';
import VerticalSwiper from 'react-native-vertical-swiper';

const App = () => {
 const data = [
  { id: '1', content: 'Item 1' },
  { id: '2', content: 'Item 2' },
  { id: '3', content: 'Item 3' }
 ];

 const renderItem = ({item}) => (
  <View style={styles.item}>
	<Text>{item.content}</Text>
  </View>
 );
   
return ( 
 <VerticalSwiper
	RenderItem={renderItem} 
	data={data} 
	size={0.7}
	outputRange={[0.9, 1, 0.9]}
  /> 
 );
};

const styles = StyleSheet.create({
  item: {
   flex: 1,
   borderRadius: 12,
   backgroundColor: '#dedede',
   padding: 6,
  } 
});

Props

  • RenderItem ((item) => JSX.Element): A function used to render each item in the swiper. This function is called with each item from the data array and should return a JSX element representing how the item should be displayed. (required)

  • data: An array of data objects to be displayed in the swiper. Each object in this array will be passed to the RenderItem function for rendering. (required)

  • size (0.1 - 1): The height of the swiper. This value determines the height of the swiper view and serves as the basis for the height of each item in the swiper. (optional)

  • outputRange ([0.9, 1, 0.9]): An array defining the range of output values for animations. This controls the animation behavior of the swiper, affecting how items are animated during scrolling. (optional)