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

@twilio/video-react-native-sdk

v3.4.1

Published

Twilio Video WebRTC for React Native.

Readme

Twilio Video (WebRTC) for React Native

This is a Twilio-maintained fork of blackuy/react-native-twilio-video-webrtc. This React Native SDK allows you to add real-time video calling to your React Native apps. If you are new to Twilio Video, check out the developer documentation here.

GitHub License NPM version

Platforms:

  • iOS
  • Android

Install Node Package

NPM version

Option A: yarn

yarn add @twilio/video-react-native-sdk

Option B: npm

npm install @twilio/video-react-native-sdk

Usage with Expo

To use this library with Expo we recommend using our config plugin that you can configure like the following example:

{
  "name": "my app",
  "plugins": [
    [
      "@twilio/video-react-native-sdk",
      {
        "cameraPermission": "Allow $(PRODUCT_NAME) to access your camera",
        "microphonePermission": "Allow $(PRODUCT_NAME) to access your microphone"
      }
    ]
  ]
}

Also, you will need to install expo-build-properties package:

npx expo install expo-build-properties

Expo Config Plugin Props

The plugin support the following properties:

  • cameraPermission: Specifies the text to show when requesting the camera permission to the user.

  • microphonePermission: Specifies the text to show when requesting the microphone permission to the user.

Permissions

To enable camera usage and microphone usage you will need to add the following entries to your Info.plist file:

<key>NSCameraUsageDescription</key>
<string>Your message to user when the camera is accessed for the first time</string>
<key>NSMicrophoneUsageDescription</key>
<string>Your message to user when the microphone is accessed for the first time</string>

Docs

You can see the API documentation here.

Usage

We have three important components to understand:

import {
  TwilioVideo,
  TwilioVideoLocalView,
  TwilioVideoParticipantView,
} from "@twilio/video-react-native-sdk";
  • TwilioVideo / is responsible for connecting to rooms, events delivery and camera/audio.
  • TwilioVideoLocalView / is responsible for the local camera feed
  • TwilioVideoParticipantView / is responsible for a remote peer's camera feed

The Example App provides an example how the Video React Native SDK can be used.

Before running the Example App, ensure you first install dependencies in the root SDK directory to generate the version constants:

yarn install

Please check out the Example App's README for more details.

Contributing

Version Constants

The SDK version is embedded in both iOS and Android native code for reporting to Twilio Video Insights. This is handled automatically:

  • Template files: ios/RCTTWVideoConstants.h.template and android/src/main/java/com/twiliorn/library/TwilioVideoConstants.java.template
  • Generated files: ios/RCTTWVideoConstants.h and android/.../TwilioVideoConstants.java (gitignored)

The prepare script runs automatically on yarn install and before npm publish, generating the constants from package.json version.

Important for contributors:

  • Never edit the generated .h or .java files directly - they will be overwritten
  • Edit the .template files if you need to change the structure
  • The version is the single source of truth from package.json

To manually regenerate constants:

yarn build:constants

License

See LICENSE