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

@seontechnologies/seon-react-native-stream-sdk

v1.0.0

Published

Stream Sdk for React Native

Readme

SEON React Native Stream SDK

React Native bindings for the SEON Stream SDK — session monitoring for React Native apps on iOS and Android. You can start/stop session monitoring, tag screens and form fields, and react to stream lifecycle events, all from JavaScript/TypeScript.

Installation

npm install seon-react-native-stream-sdk
# or
yarn add seon-react-native-stream-sdk

iOS

Install pods after adding the dependency:

cd ios && pod install

By default the library pulls the released SeonStreamSDK CocoaPod. No further setup is required.

Android

No extra setup is required beyond installing the package — the native module is autolinked.

Usage

Starting and stopping a session

import { SeonStreamSdk } from 'seon-react-native-stream-sdk';

// Start a session
await SeonStreamSdk.startStream({
  authData: sessionToken,
  label: 'checkout-flow', // optional
  maxBackgroundDuration: 60, // optional, seconds
});

// Stop a session
await SeonStreamSdk.finishStream();

// Check whether a session is currently running
const isRunning = await SeonStreamSdk.getIsRunning();

Listening for stream events

import { useEffect } from 'react';
import { SeonStreamSdk } from 'seon-react-native-stream-sdk';

useEffect(() => {
  const subs = [
    SeonStreamSdk.onStreamStarted((streamId) => {
      console.log('Stream started:', streamId);
    }),
    SeonStreamSdk.onStreamFinished(() => {
      console.log('Stream finished');
    }),
    SeonStreamSdk.onStreamFinishedWithError((error) => {
      console.log('Stream finished with error:', error);
    }),
    SeonStreamSdk.onStreamAuthError(() => {
      console.log('Stream authentication error');
    }),
  ];

  return () => subs.forEach((sub) => sub.remove());
}, []);

Custom events

await SeonStreamSdk.createCustomEvent('button_tap', JSON.stringify({ button: 'submit' }));

Tagging individual views

Wrap any element with SeonViewTag to tag it for the SDK, or use tagElement directly with a ref:

import { SeonViewTag } from 'seon-react-native-stream-sdk';

<SeonViewTag title="Username">
  <TextInput value={username} onChangeText={setUsername} />
</SeonViewTag>
import { useRef } from 'react';
import { SeonStreamSdk } from 'seon-react-native-stream-sdk';

const inputRef = useRef(null);

useEffect(() => {
  SeonStreamSdk.tagElement(inputRef, 'Username');
}, []);

<TextInput ref={inputRef} value={username} onChangeText={setUsername} />

Tagging a form

Wrap a group of SeonViewTag-tagged fields with SeonForm to associate them with a named form. Mark non-essential fields with optional:

import { SeonForm, SeonViewTag } from 'seon-react-native-stream-sdk';

const LOGIN_FORM_TAG = { id: 'login-form', numberOfElements: 2 };

<SeonForm formTag={LOGIN_FORM_TAG}>
  <SeonViewTag title="Username" optional>
    <TextInput value={username} onChangeText={setUsername} />
  </SeonViewTag>
  <SeonViewTag title="Password">
    <TextInput value={password} onChangeText={setPassword} secureTextEntry />
  </SeonViewTag>
  <SeonViewTag title="Submit button">
    <Pressable onPress={handleLogin}>
      <Text>Login</Text>
    </Pressable>
  </SeonViewTag>
</SeonForm>

Navigation tracking

Register your navigation library once, near the root of your app, so screen changes are reported to the SDK automatically. Pick the helper matching the navigation library you use:

React Navigation

import { useNavigationContainerRef, NavigationContainer } from '@react-navigation/native';
import { SeonStreamSdk } from 'seon-react-native-stream-sdk';

const navigationRef = useNavigationContainerRef();

useEffect(() => {
  return SeonStreamSdk.registerReactNavigation(navigationRef);
}, [navigationRef]);

<NavigationContainer ref={navigationRef}>...</NavigationContainer>

React Native Navigation

useEffect(() => {
  return SeonStreamSdk.registerReactNativeNavigation();
}, []);

Expo Router

useEffect(() => {
  return SeonStreamSdk.registerExpoRouter();
}, []);

Each register* call returns an unsubscribe function — call it (or return it from a useEffect) to stop tracking navigation.

Release Notes

1.0.0

  • Initial release of the SEON Stream SDK for React Native.