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-instagram-story

v1.0.0

Published

This is a new [**React Native**](https://reactnative.dev) project, bootstrapped using [`@react-native-community/cli`](https://github.com/react-native-community/cli).

Downloads

21

Readme

Getting Started

React Native Instagram Story

A React Native component that mimics the Instagram Stories feature. Users can tap to navigate to the previous or next story and hold to stop the story from progressing automatically.

Features

Swipe left/right to navigate through stories. Tap left to go to the previous story. Tap right to go to the next story. Long press to pause the story.

Installation

To install the package, run:

 npm install react-native-instagram-story
 or For yarn
 yarn add react-native-instagram-story

Usage

Here’s an example of how to use the react-native-instagram-story component in your React Native project.

import React from 'react';
import { StyleSheet, View,TouchableOpacity,Modal } from 'react-native';
import StoryFeature from 'react-native-instagram-story';

const App = () => {

 const data = [
  {
    type: 'image',
    image: 'https://picsum.photos/seed/picsum/200/300',
    description: "The placeholder text, beginning with the line “Lorem ipsum dolor sit amet, consectetur adipiscing elit”, looks like Latin because in its youth, centuries ago, it was Latin."
  },
  {
    type: 'image',
    image: 'https://fastly.picsum.photos/id/57/2448/3264.jpg?hmac=ewraXYesC6HuSEAJsg3Q80bXd1GyJTxekI05Xt9YjfQ',
    description: "McClintock's eye for detail certainly helped narrow the whereabouts of lorem ipsum's origin, however, the “how and when” still remain something of a mystery, with competing theories and timelines."
  },
  {
    type: 'image',
    image: 'https://fastly.picsum.photos/id/13/2500/1667.jpg?hmac=SoX9UoHhN8HyklRA4A3vcCWJMVtiBXUg0W4ljWTor7s',
    description: "As an alternative theory, (and because Latin scholars do this sort of thing) someone tracked down a 1914 Latin edition of De Finibus which challenges McClintock's 15th century claims "
  },
  {
    type: 'image',
    image: 'https://fastly.picsum.photos/id/28/4928/3264.jpg?hmac=GnYF-RnBUg44PFfU5pcw_Qs0ReOyStdnZ8MtQWJqTfA',
    description: "The decade that brought us Star Trek and Doctor Who also resurrected Cicero—or at least what used to be Cicero"
  },

];

  return (
    <View style={styles.main}>
      <Modal
        transparent={true}
        animationType="slide"
        visible={isModalVisible}
        onRequestClose={closeModal}
      >
        <View style={styles.container}>
          <View style={styles.walkthroughModalContent}>
            <StoryFeature
              closeModal={closeModal}
              stories={data}
            />
          </View>
        </View>
      </Modal>
      <TouchableOpacity style={styles.button} onPress={openModal}>
        <Text style={styles.buttonTextt}>Open Story Crousal</Text>
      </TouchableOpacity>
    </View>
  );
};

const styles = StyleSheet.create({
  walkthroughModalContent: {
    backgroundColor: '#ffffff',
    height,
    paddingTop: 25,
    shadowColor: "#000",
    shadowOffset: { width: 1, height: 1 },
    shadowOpacity: 0.3,
    shadowRadius: 5,
    elevation: 5,
    // paddingBottom: 50
  },
  container: {
    flex: 1,
    backgroundColor: "rgba(0,0,0,0.2)",
    justifyContent: "flex-end",
  },
  button: {
    borderWidth: 1,
    padding: 15,
    backgroundColor: "#063970",
    borderRadius: 10,
    borderColor: "grey"
  },
  buttonTextt: {
    color: "#fff",
    fontWeight: "700"
  },
  main: {
    justifyContent: "center",
    alignItems: "center",
    flex: 1
  }
})

export default App;

Let's Connect

Anurag Sharma

I am always excited to connect with like-minded professionals and explore new opportunities. Feel free to reach out to me on LinkedIn or check out my portfolio on GitHub.