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

rn-onboarding-slides

v1.0.2

Published

A beautiful, fully customizable onboarding screen for React Native with animated dots, swipe support, and custom button.

Readme

rn-onboarding-slides

A beautiful, fully customizable onboarding screen for React Native with animated pagination dots, smooth swipe transitions, and a morphing next/start button.

Built with react-native-reanimated for buttery-smooth 60fps animations running on the native thread.



Installation

npm install rn-onboarding-slides

Peer Dependencies

npm install react-native-reanimated expo-image

Make sure to follow the react-native-reanimated setup guide to add Babel plugin and configure your app.


Quick Start

import { OnboardingScreen } from "rn-onboarding-slides";

const data = [
  {
    id: 1,
    image: require("./assets/slide1.jpg"),
    title: "Welcome",
    text: "The best app for sports fans",
  },
  {
    id: 2,
    image: require("./assets/slide2.jpg"),
    title: "Track Everything",
    text: "Follow your favorite teams live",
  },
  {
    id: 3,
    image: require("./assets/slide3.jpg"),
    title: "Get Started",
    text: "Join millions of fans today",
  },
];

export default function App() {
  return (
    <OnboardingScreen
      data={data}
      onPress={() => console.log("Onboarding done!")}
      buttonLabel="Get Started"
      showSkipButton
      onSkip={() => console.log("Skipped")}
    />
  );
}

Theming & Customization

<OnboardingScreen
  data={data}
  onPress={handleDone}
  buttonLabel="Let's Go"
  showSkipButton
  onSkip={handleSkip}
  skipLabel="Skip"
  theme={{
    // Dots
    dotActiveColor: "#FF6B6B",
    dotInactiveColor: "#555",
    dotActiveWidth: 24,
    dotHeight: 10,

    // Button
    buttonColor: "#FF6B6B",
    buttonTextColor: "#fff",
    buttonSize: 60,
    buttonFinalWidth: 150,
    buttonPosition: "right", // 'left' | 'right' | 'center'

    // Layout
    paginationPosition: "bottom-left", // 'bottom-left' | 'bottom-center' | 'bottom-right'
    backgroundColor: "#0a0a0a",
  }}
/>

Custom Slide Rendering

Override the default slide layout completely using renderItem:

<OnboardingScreen
  data={data}
  onPress={handleDone}
  renderItem={(item, index) => (
    <View style={{ flex: 1, alignItems: "center", justifyContent: "center" }}>
      <Image source={item.image} style={{ width: "100%", height: "70%" }} />
      <Text style={{ color: "#fff", fontSize: 24 }}>{item.title}</Text>
      <Text style={{ color: "#aaa", fontSize: 16 }}>{item.text}</Text>
    </View>
  )}
/>

Props

| Prop | Type | Default | Description | | ---------------- | ---------------------------- | --------------- | ---------------------------------------- | | data | TOnboardingItem[] | required | Array of slide data objects | | onPress | () => void | required | Called when last slide button is pressed | | buttonLabel | string | 'Get Started' | Label shown on final slide button | | showSkipButton | boolean | false | Whether to show a Skip button | | onSkip | () => void | undefined | Called when skip button is tapped | | skipLabel | string | 'Skip' | Label for the skip button | | theme | TOnboardingTheme | see below | Full theme/style customization | | renderItem | (item, index) => ReactNode | undefined | Custom slide renderer | | containerStyle | ViewStyle | undefined | Override outer container style |


TOnboardingItem

| Field | Type | Description | | ------- | --------------------- | --------------------------------------- | | id | number | Unique identifier for the slide | | image | ImageSourcePropType | Slide background image (require or URI) | | title | string? | Optional slide title | | text | string? | Optional slide description text |


Theme Options (TOnboardingTheme)

| Key | Type | Default | Description | | -------------------- | ---------------------------------------------------- | --------------- | ---------------------------------------- | | dotActiveColor | string | '#32CD32' | Active (current) dot color | | dotInactiveColor | string | '#ccc' | Inactive dot color | | dotActiveWidth | number | 20 | Width of the active animated dot | | dotHeight | number | 10 | Height of all dots | | buttonColor | string | '#32CD32' | Next/Start button background color | | buttonTextColor | string | '#ffffff' | Button label color | | buttonSize | number | 60 | Button diameter in circular state | | buttonFinalWidth | number | 140 | Button width when expanded on last slide | | buttonPosition | 'left' \| 'right' \| 'center' | 'right' | Horizontal alignment of button | | paginationPosition | 'bottom-left' \| 'bottom-center' \| 'bottom-right' | 'bottom-left' | Alignment of pagination dots | | backgroundColor | string | '#000000' | Screen background color |


License

MIT © Arbab Naseer