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

@segmentify/react-native-v2

v1.0.4

Published

Segmentify SDK for React Native applications.

Downloads

484

Readme

Segmentify React Native

Monorepo for the Segmentify React Native SDK, an Expo example app, and Starlight documentation.

| Path | Contents | | ---------------------- | ----------------------------------------------------------------------------------------------- | | src/ | Published npm package @segmentify/react-native-v2 (TypeScript sources consumed by Metro). | | example/ | Expo app demonstrating the SDK. | | docs/ | Astro + Starlight docs site. |

Install the SDK

From the npm registry (public scoped package):

npm install @segmentify/react-native-v2
# or
pnpm add @segmentify/react-native-v2
# or
yarn add @segmentify/react-native-v2

Peer dependencies used by the SDK (install them in your app if you do not already have compatible versions):

  • react
  • react-native
  • @react-native-async-storage/async-storage
  • @react-native-community/netinfo
  • react-native-webview

Run the documentation site

From the repository root:

pnpm install
pnpm run dev

This starts the Astro Starlight dev server (see root package.json scripts). Use pnpm run build / pnpm run preview for a production build and local preview.

Run the example application

The example is an Expo SDK 54 app in example/. You need Node.js matching root engines (currently >=22.12.0), pnpm, and the usual iOS (Xcode) and/or Android (Android Studio) tooling for React Native.

Firebase (push notifications)

The example is configured for Firebase Cloud Messaging via @react-native-firebase/app and @react-native-firebase/messaging. Expo expects:

  • iOS: GoogleService-Info.plist — paths referenced from example/app.json (ios.googleServicesFile) and the native project under example/ios/.
  • Android: google-services.json — paths under example/android/app/ per app.json (android.googleServicesFile).

Download these from the Firebase console for your project, or use your team’s copies. Without them, native builds that use FCM may fail; adjust or remove Firebase plugins in app.json if you only need a quick UI demo.

Commands

From the repository root (recommended, so the workspace link to @segmentify/react-native-v2 resolves):

pnpm install
pnpm --filter @segmentify/react-native-example start

Or from example/:

cd example
pnpm install   # if installing from this folder only; prefer root install for workspaces
pnpm start

Useful scripts from example/package.json:

| Script | Description | | ----------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | pnpm start | Start the Expo dev server (EXPO_NO_METRO_WORKSPACE_ROOT=1 is set for monorepo Metro). | | pnpm run android | Open on Android emulator/device. | | pnpm run ios | Open on iOS simulator/device. | | pnpm run web | Run in the browser. | | pnpm run build:android / pnpm run build:ios | EAS Build (eas build) using example/eas.json preview profile — requires EAS login and credentials. |

CI and publishing

  • CI: .github/workflows/ci.yml installs dependencies with a frozen lockfile and runs pnpm --filter @segmentify/react-native-v2 typecheck on pushes and pull requests to main.
  • npm publish: .github/workflows/publish.yml publishes @segmentify/react-native-v2 when a GitHub Release is published, or when the workflow is run manually (workflow_dispatch). Add an NPM_TOKEN repository secret (npm automation token with publish access to the @segmentify scope). Bump the version field in src/package.json on the commit you release before tagging/creating the release. Provenance is enabled in publishConfig; the workflow sets id-token: write for OIDC with npm.

License

See LICENSE.