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

@travelpass/react-native-tipkit

v0.1.6

Published

Add tips to your react native project app easily.

Readme

TipKit Banner

A powerful and flexible React Native library for adding beautiful, customizable tips and tutorials to your app. Inspired by Apple's TipKit, this library provides an easy way to guide users through your app's features.

Features

  • 🎯 Two types of tips: Inline and PopOver
  • 🎨 Fully customizable styling
  • 📱 Works on iOS and Android
  • 🔄 Animated transitions
  • 📊 Display count management
  • ⚡ Rule-based tip display
  • 🎯 Target-based positioning for PopOver tips
  • 🔍 Action button support
  • 💾 Persistent state management

Installation

npm install @travelpass/react-native-tipkit
# or
yarn add @travelpass/react-native-tipkit

Dependencies

This library requires the following dependencies:

npm install react-native-mmkv react-native-reanimated
# or
yarn add react-native-mmkv react-native-reanimated

Usage

1. Wrap your app with TipKitProvider

import { TipKitProvider } from '@travelpass/react-native-tipkit';

export default function App() {
  return <TipKitProvider>{/* Your app content */}</TipKitProvider>;
}

2. Add Inline Tips

Inline tips are perfect for providing context within your UI:

import { TipKitInlineView } from '@travelpass/react-native-tipkit';

<TipKitInlineView
  id="feature-tip"
  title="Quick Tip"
  description="Here's how to use this feature"
  tipContainerStyle={styles.tipStyle}
  options={{
    maxDisplayCount: 3,
  }}
/>;

3. Add PopOver Tips

PopOver tips are great for pointing out specific UI elements:

import { TipKitPopOverView } from '@travelpass/react-native-tipkit';

const MyComponent = () => {
  const buttonRef = useRef(null);

  return (
    <>
      <Pressable ref={buttonRef}>
        <Text>Target Button</Text>
      </Pressable>

      <TipKitPopOverView
        id="button-tip"
        targetRef={buttonRef}
        title="Important Action"
        description="Tap this button to perform an action"
        icon={<YourIcon />}
        actionButtonTitle="Learn More"
        actionButtonOnPress={() => {
          // Handle action button press
        }}
        options={{
          maxDisplayCount: 2,
        }}
      />
    </>
  );
};

⚠️ Important: Always place TipKitPopOverView components at the root level of your app, outside of components like SafeAreaView, ScrollView, or any other wrapper that might affect positioning. This ensures proper positioning and visibility of the popover tips.

4. Add Conditional Rules

You can control when tips are displayed using rules:

<TipKitPopOverView
  id="conditional-tip"
  targetRef={buttonRef}
  title="New Feature"
  description="Try out this new feature"
  options={{
    maxDisplayCount: 4,
  }}
  rule={{
    ruleName: 'showNewFeature',
    evaluate: () => {
      // Return true/false based on your condition
      return someCondition;
    },
  }}
/>

API Reference

TipKitProvider

The root component that manages the state of all tips.

TipKitInlineView Props

| Prop | Type | Description | | ----------------- | ------------- | ----------------------------------- | | id | string | Unique identifier for the tip | | title | string | Title of the tip | | description | string | Description text | | tipContainerStyle | ViewStyle | Custom styles for the tip container | | titleStyle | TextStyle | Custom styles for the title | | descriptionStyle | TextStyle | Custom styles for the description | | options | TipKitOptions | Configuration options |

TipKitPopOverView Props

Includes all TipKitInlineView props plus:

| Prop | Type | Description | | ------------------- | --------------- | ----------------------------------- | | targetRef | RefObject | Reference to the target element | | icon | ReactNode | Optional icon component | | actionButtonTitle | string | Text for the action button | | actionButtonOnPress | () => void | Action button callback | | actionButtonStyle | TextStyle | Custom styles for the action button | | rule | TipKitRule | Optional display rule |

TipKitOptions

| Option | Type | Description | | --------------- | ------ | --------------------------------------- | | maxDisplayCount | number | Maximum number of times to show the tip |

TipKitRule

| Property | Type | Description | | -------- | ------------- | ----------------------------------------------- | | ruleName | string | Identifier for the rule | | evaluate | () => boolean | Function that determines if tip should be shown |

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT