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 🙏

© 2025 – Pkg Stats / Ryan Hefner

voice-react-native-sdk

v1.6.2-fork.44

Published

Twilio Voice React Native SDK

Downloads

850

Readme

Twilio Voice React Native SDK

NPM CircleCI

Twilio's Voice React Native SDK allows you to add real-time voice and PSTN calling to your React Native apps.

Please check out the following if you are new to Twilio's Programmable Voice or React Native.

Installation

The package is available through npm.

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

Once the package has been installed to your React Native application, there are further steps that you will need to take for both iOS and Android platforms. Please see the supporting documentation below.

Building and Publishing New Versions

This is a forked version of the Twilio Voice React Native SDK. If you need to build and publish new versions of this package to npm, follow these steps:

Prerequisites

  1. Node.js and Yarn: Ensure you have Node.js and Yarn installed
  2. NPM Account: You need to be logged into npm with the appropriate permissions
  3. Git Repository: Make sure your changes are committed to your fork

Build Process

  1. Install Dependencies:

    yarn install
  2. Build the Package:

    yarn prepare

    This command will:

    • Generate constants from source files
    • Build CommonJS, ES modules, and TypeScript definitions
    • Create source maps for debugging
    • Output files to the lib/ directory
  3. Verify Build Output: Check that the following directories are created:

    • lib/commonjs/ - CommonJS modules
    • lib/module/ - ES modules
    • lib/typescript/ - TypeScript definitions

Publishing to NPM

  1. Update Version: Edit package.json and increment the version number:

    {
      "version": "1.6.2-fork.2" // Increment from previous version
    }
  2. Verify Package Configuration: Ensure your package.json has the correct:

    • Package name (e.g., @your-username/voice-react-native-sdk)
    • Repository URLs pointing to your fork
    • Author information
  3. Login to NPM:

    npm login
  4. Publish the Package:

    npm publish --access public

Using Your Published Package

Once published, you can install your forked version in any React Native project:

# Install your forked version
npm install @your-username/voice-react-native-sdk
# or
yarn add @your-username/voice-react-native-sdk

Then import and use it exactly like the original Twilio SDK:

import { Voice } from '@your-username/voice-react-native-sdk';

const voice = new Voice();
// Use the SDK as normal

Package Structure

The published package includes:

  • Source Code: Original TypeScript/JavaScript source files
  • Built Libraries: Compiled CommonJS and ES modules
  • Type Definitions: Complete TypeScript definitions
  • Native Code: Android (Java) and iOS (Objective-C) implementations
  • Assets: Audio files, icons, and other resources
  • Source Maps: For debugging compiled code

Troubleshooting

  • Build Errors: Run yarn install to ensure all dependencies are installed
  • Publish Errors: Verify you're logged into npm with npm whoami
  • Permission Errors: Ensure you have publish rights to the npm scope/organization
  • Version Conflicts: Make sure the version number is unique and higher than the previous version

Supporting Documentation

Getting Started

iOS

Learn how to get started for the iOS platform.

Android

Learn how to get started for the Android platform if you are using Java or Kotlin.

Migration Guide

If you are migrating from a version of the Twilio Voice React Native SDK < 1.0.0.beta.4 to a version >= 1.0.0.beta.4, please see this document.

Customizing Notifications

To customize the appearance and content of your application's notifications, please see this document.

Outgoing Call Ringback Tone

To enable your application to play a ringback tone while making an outgoing call, please see this document.

Out-of-band PushKit Handling

To have your application implement or use its own PushKit delegate module, please see this document.

Out-of-band Firebase Messaging Service

To have your application implement or use a different FirebaseMessagingService (such as OneSignal or RNFirebase), please see this document.

Issues and Support

Please check out our common issues page or file any issues you find here on Github. For general inquiries related to the Voice SDK you can file a support ticket.

Please ensure that you are not sharing any Personally Identifiable Information(PII) or sensitive account information (API keys, credentials, etc.) when reporting an issue.

Please check out our known issues for known bugs and workarounds.

Related

License

See LICENSE