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

@spontom/relaykit-react-native

v0.2.0

Published

RelayKit React Native SDK — hooks and components for real-time video in mobile apps

Readme

@spontom/relaykit-react-native

React Native SDK for RelayKit — ship real-time video in your mobile apps.

Installation

npm install @spontom/relaykit-react-native @livekit/react-native @livekit/react-native-webrtc

iOS Setup

cd ios && pod install

Add to your Info.plist:

<key>NSCameraUsageDescription</key>
<string>Required for video calls</string>
<key>NSMicrophoneUsageDescription</key>
<string>Required for audio calls</string>

Android Setup

Add to android/app/src/main/AndroidManifest.xml:

<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />

Initialize LiveKit (Required)

In your app entry point (e.g., App.tsx):

import { registerGlobals } from '@livekit/react-native';

// Call this before any RelayKit usage
registerGlobals();

Quick Start

import {
  RelayKitProvider,
  useRelayKit,
  useParticipants,
  useLocalCamera,
  useLocalMic,
  VideoView,
  AudioRenderer,
  ControlBar,
} from '@spontom/relaykit-react-native';

function App() {
  return (
    <RelayKitProvider
      apiUrl="https://api.relaykit.live"
      apiKey="rk_live_xxxx"
    >
      <VideoCallScreen />
    </RelayKitProvider>
  );
}

function VideoCallScreen() {
  const { connect, disconnect, status } = useRelayKit();
  const participants = useParticipants();
  const { toggleCamera, switchCamera } = useLocalCamera();
  const { toggleMic } = useLocalMic();

  useEffect(() => {
    connect({
      roomId: 'my-room-id',
      participantIdentity: 'user_123',
      participantName: 'Alice',
    });
    return () => { disconnect(); };
  }, []);

  if (status !== 'connected') {
    return <Text>Connecting...</Text>;
  }

  return (
    <View style={{ flex: 1 }}>
      <AudioRenderer />
      {/* Local video */}
      <VideoView mirror style={{ width: 120, height: 90 }} />
      {/* Remote participants */}
      {participants.map((p) => (
        <VideoView
          key={p.identity}
          participantIdentity={p.identity}
          style={{ flex: 1 }}
        />
      ))}
      <ControlBar onEndCall={() => navigation.goBack()} />
    </View>
  );
}

Pre-built Components

| Component | Description | |---|---| | <VideoView> | Renders a participant's video (local or remote) | | <AudioRenderer> | Headless component that handles audio playback | | <ParticipantGrid> | Auto-layout grid of all participant videos | | <ControlBar> | Mic, camera, flip, and end call buttons |

Hooks

| Hook | Returns | |---|---| | useRelayKit() | { room, connect, disconnect, status, error } | | useParticipants() | RelayKitParticipant[] (remote only) | | useLocalCamera() | { isCameraEnabled, toggleCamera, switchCamera } | | useLocalMic() | { isMicEnabled, toggleMic } | | useLocalScreenShare() | { isScreenShareEnabled, startScreenShare, stopScreenShare, toggleScreenShare } |

Rendering screen share

// Render a participant's screen share instead of their camera
<VideoView participantIdentity={p.identity} source="screen-share" style={{ flex: 1 }} />

Screen share platform setup

iOS: Requires a Broadcast Upload Extension in Xcode. See LiveKit docs.

Android: Add these permissions to AndroidManifest.xml:

<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" />

Requirements

  • React Native >= 0.70
  • @livekit/react-native >= 2.x
  • @livekit/react-native-webrtc >= 1.x

License

MIT