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

@firstlogicmetalab/react-native

v1.0.2

Published

First-class VACT voice and video calling for React Native, built on react-native-webrtc.

Readme

@firstlogicmetalab/react-native

First-class VACT voice & video calling for React Native.

New to VACT? Create a free account at vact.online₹100 of calling credit to build with, no card required. Full guides and API reference: vact.online/docs.html.

It wraps @firstlogicmetalab/client with react-native-webrtc and adds a useVact hook. The protocol, error codes and billing are identical to web.

Install

npm install @firstlogicmetalab/react-native react-native-webrtc
cd ios && pod install   # iOS

Permissions

Ask for camera & microphone on a screen before the first call.

Androidandroid/build.gradle needs minSdkVersion = 24. In 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.INTERNET"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
import { PermissionsAndroid } from 'react-native';
await PermissionsAndroid.requestMultiple([
  PermissionsAndroid.PERMISSIONS.CAMERA,
  PermissionsAndroid.PERMISSIONS.RECORD_AUDIO,
]);

iOS — minimum deployment target 13.0. In ios/YourApp/Info.plist:

<key>NSCameraUsageDescription</key><string>Used for video calls</string>
<key>NSMicrophoneUsageDescription</key><string>Used for calls</string>

The Simulator has no camera — test video on a real device.

Use the hook

import { useVact } from '@firstlogicmetalab/react-native';
import { RTCView } from 'react-native-webrtc';

export default function CallScreen({ accessToken }) {
  const { status, userId, incomingCall, activeCall, callState,
          call, accept, decline, hangup } =
    useVact({ appId: 'vact_app_xxx', accessToken });

  if (activeCall) {
    return (
      <>
        <RTCView streamURL={activeCall.remoteStream.toURL()} style={{ flex: 1 }} objectFit="cover" />
        <RTCView streamURL={activeCall.localStream.toURL()} style={{ width: 110, height: 160 }} mirror />
        <Button title="Hang up" onPress={hangup} />
      </>
    );
  }
  if (incomingCall) {
    return (
      <View>
        <Text>{incomingCall.fromUserId} is calling</Text>
        <Button title="Answer" onPress={() => accept()} />
        <Button title="Decline" onPress={decline} />
      </View>
    );
  }
  return <Button title="Call bob" disabled={status !== 'ready'} onPress={() => call('bob', { video: true })} />;
}

accessToken is the one-time vact_at_ token your backend mints — never ship your App Secret in the app.

Or drive the client yourself

import { createVactClient, registerVactGlobals } from '@firstlogicmetalab/react-native';

registerVactGlobals();                    // optional
const vact = createVactClient('vact_app_xxx');
await vact.connect(accessToken);
const call = await vact.call('bob', { video: true });

createVactClient returns the same VactClient as the web package, already wired to react-native-webrtc.

Notes

  • Screen sharing (call.startScreenShare()) needs getDisplayMedia, which react-native-webrtc does not provide — it throws screen_share_unsupported on React Native. Screen capture on mobile needs a native module.
  • Backends and full protocol: https://vact.online/docs.html.