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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@novev9/react-native-instagram-stories

v1.0.4

Published

Modern React Native stories with true 3D cube swipes, headless render-prop slides, light deps, Fabric / New Architecture ready, optional pluggable storage.

Readme

Features

  • 🧊 Real 3D cube transition between users (faces meet at the inner edge, not the "scale-0.49" carousel cube most libs ship)
  • ⚙️ New Architecture / Fabric ready — runs on RN 0.85+, Reanimated 4, gesture-handler 2.x
  • 🪶 Light deps — no FastImage, no FlashList, no Lodash, no Video. AsyncStorage is opt-in via a separate entry point
  • 🪝 Render-prop API — bring your own slide content, avatar image, header, close button
  • 👆 Gestures — pan to swipe, long-press to pause, swipe-down to dismiss, tap left/right to navigate slides
  • 💾 Pluggable persistenceStorageAdapter interface, ships with in-memory + optional AsyncStorage adapter
  • 📈 Analytics callbacksonShow, onViewSlide, onHide (each payload carries userId, slideId, slideIndex)

Screenshots

Install

yarn add @novev9/react-native-instagram-stories \
  react-native-reanimated \
  react-native-gesture-handler \
  react-native-safe-area-context \
  react-native-svg

Optional for persistence:

yarn add @react-native-async-storage/async-storage

Usage

import React, { useRef } from 'react';
import { Image } from 'react-native';
import { Stories, type StoriesPublicMethods } from '@novev9/react-native-instagram-stories';

export function Feed({ stories }) {
  const ref = useRef<StoriesPublicMethods>(null);

  const users = stories.map(s => ({
    id: s.id,
    avatarSource: { uri: s.logo },
    name: s.name,
    stories: s.slides.map(slide => ({
      id: slide.id,
      source: { uri: slide.img },
      renderContent: () => (
        <Image source={{ uri: slide.img }} style={{ flex: 1 }} />
      ),
    })),
  }));

  return (
    <Stories
      ref={ref}
      users={users}
      showName
      onShow={e => console.log('open', e)}
      onViewSlide={e => console.log('slide', e)}
      onHide={e => console.log('close', e)}
    />
  );
}

Persistence

By default the seen-progress map lives in memory (lost on unmount). For real persistence import the AsyncStorage adapter from the sub-entrypoint:

import AsyncStorage from '@react-native-async-storage/async-storage';
import { createAsyncStorageAdapter } from '@novev9/react-native-instagram-stories/async-storage';

<Stories
  storage={createAsyncStorageAdapter(AsyncStorage)}
  // ...
/>

The main @novev9/react-native-instagram-stories import has zero dependency on AsyncStorage, so the lib stays light if you don't need persistence.

Customising the avatar image (e.g. FastImage)

import FastImage from 'react-native-fast-image';

<Stories
  renderAvatarImage={({ source, size }) => (
    <FastImage source={source} style={{ width: size, height: size }} />
  )}
  // ...
/>

Customising the header / close button

<Stories
  renderHeader={({ user, close }) => (
    <MyHeader title={user.name} onClose={close} />
  )}
  // or replace only the close button:
  renderCloseButton={({ close }) => <MyCloseIcon onPress={close} />}
  // ...
/>

API

<Stories /> props

| Prop | Type | Default | Notes | |---|---|---|---| | users | StoryUser[] | — | Story users (avatar row + content) | | animationDuration | number | 5000 | Default duration per slide in ms | | avatarBorderColors | string[] | ['#FF5C5C'] | Avatar ring colours. ≥2 = linear gradient | | avatarSeenBorderColors | string[] | ['rgba(128,128,128,0.5)'] | Ring colours when the user is fully seen | | avatarSize | number | 50 | Avatar diameter | | showName | boolean | false | Show name under avatar | | backgroundColor | string | '#000000' | Modal background | | saveProgress | boolean | true | Persist seen-progress | | storage | StorageAdapter | in-memory | Custom storage backend | | renderHeader | (state) => ReactNode | — | Override the in-modal header | | renderCloseButton | (state) => ReactNode | — | Override only the close button | | renderAvatarImage | (state) => ReactNode | RN Image | Override avatar image renderer | | onShow | (event) => void | — | Fires on open | | onViewSlide | (event) => void | — | Fires on every slide change | | onHide | (event) => void | — | Fires on close, with last-viewed slide |

Imperative methods (via ref)

| Method | Description | |---|---| | show(userId, slideId?) | Open the modal at a specific user (and optionally slide) | | hide() | Close the modal |

Note: this library intentionally exposes a small imperative surface — show and hide. Slide navigation, pause/resume and end-of-stories close all happen automatically from gestures and the auto-progress timer. Open an issue if you have a use case that needs more.

Why another stories lib

Modern React Native + a true 3D cube transition + minimal native dependencies. No FastImage, no FlashList, no Lodash, no Video — just the gesture / animation / safe-area / svg peers you almost certainly already have.

License

MIT © Evgeny Novikov