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

@turbopush/react-native-code-push

v10.2.6

Published

React Native plugin for the CodePush service

Readme

Turbopush — React Native Plugin for CodePush

npm version license

Sign up to use Turbopush | Documentation to get started

This plugin provides client-side integration for the Turbopush service, allowing you to easily add a dynamic update experience to your React Native or Expo app(s).


Table of Contents


How does it work?

A React Native app is composed of JavaScript files and any accompanying images, which are bundled together by the metro bundler and distributed as part of a platform-specific binary (i.e. an .ipa or .apk file). Once the app is released, updating either the JavaScript code (e.g. making bug fixes, adding new features) or image assets, requires you to recompile and redistribute the entire binary, which of course, includes any review time associated with the store(s) you are publishing to.

The Turbopush plugin helps get product improvements in front of your end users instantly, by keeping your JavaScript and images synchronized with updates you release to the Turbopush server. This way, your app gets the benefits of an offline mobile experience, as well as the "web-like" agility of side-loading updates as soon as they are available.

In order to ensure that your end users always have a functioning version of your app, the Turbopush plugin maintains a copy of the previous update, so that in the event that you accidentally push an update which includes a crash, it can automatically roll back. This way, you can rest assured that your newfound release agility won't result in users becoming blocked before you have a chance to roll back on the server.

Note: Any product changes which touch native code (e.g. modifying your AppDelegate.mm/MainActivity.java/MainActivity.kt/AppDelegate.swift file, adding a new plugin) cannot be distributed via Turbopush, and therefore, must be updated via the appropriate store(s).


Key Features

  • Automatic Rollback: If an update causes a crash, the plugin automatically rolls back to the previous working version.
  • Multiple Platforms: Supports Android and iOS.
  • Multiple Channels: Release updates to different groups of users via separate channels.
  • Multiple Environments: Test updates in staging before releasing to all users.
  • Expo Support: First-class support via our Expo plugin.
  • New Architecture: Supports both React Native old and new architecture (Fabric/TurboModules).

Requirements

  • React Native: 0.70 or higher
  • iOS: 15.5 or higher
  • Android: API level 21 (Android 5.0) or higher
  • Node: 16 or higher

React Native Setup

NPM:

npm install --save @turbopush/react-native-code-push

Yarn:

yarn add @turbopush/react-native-code-push

Follow the Getting Started guide to configure your app.


Expo Setup

NPM:

npm install --save @turbopush/react-native-code-push @turbopush/turbopush-expo-plugin expo-build-properties

Yarn:

yarn add @turbopush/react-native-code-push @turbopush/turbopush-expo-plugin expo-build-properties

Add the following to your app.json or app.config.ts file:

{
  "plugins": [
    [
      "expo-build-properties",
      {
        "ios": {
          "deploymentTarget": "15.5"
        }
      }
    ],
    [
      "@turbopush/turbopush-expo-plugin",
      {
        "android": {
          "CodePushDeploymentKey": "YOUR_ANDROID_CODE_PUSH_KEY"
        },
        "ios": {
          "CodePushDeploymentKey": "YOUR_IOS_CODE_PUSH_KEY"
        }
      }
    ]
  ]
}

For more information, see the Getting Started guide.


Basic Usage

The simplest way to integrate Turbopush is to wrap your root component with the codePush HOC. This will automatically check for and apply updates on each app launch.

import React from 'react';
import { View, Text } from 'react-native';
import codePush from '@turbopush/react-native-code-push';

function App() {
  return (
    <View>
      <Text>My App</Text>
    </View>
  );
}

export default codePush(App);

You can also trigger a manual update check at any point:

import codePush from '@turbopush/react-native-code-push';

async function checkForUpdate() {
  const update = await codePush.checkForUpdate();
  if (update) {
    await codePush.sync();
  }
}

For advanced configuration options (update dialogs, install modes, rollback handling), see the full documentation.


Store Guideline Compliance

Google Play

The third paragraph of Device and Network Abuse states that updating source code by any method other than Google Play's update mechanism is restricted. However, this restriction does not apply to updating JavaScript bundles:

This restriction does not apply to code that runs in a virtual machine and has limited access to Android APIs (such as JavaScript in a webview or browser).

Turbopush only updates JS bundles and cannot update native code, so it is fully compliant.

App Store

Paragraph 3.3.2 of the Apple Developer Program License Agreement allows over-the-air updates of JavaScript and assets:

Interpreted code may be downloaded to an Application but only so long as such code: (a) does not change the primary purpose of the Application by providing features or functionality that are inconsistent with the intended and advertised purpose of the Application as submitted to the App Store, (b) does not create a store or storefront for other code or applications, and (c) does not bypass signing, sandbox, or other security features of the OS.

Turbopush allows you to follow these rules in full compliance as long as the update you push does not significantly deviate your product from its original App Store approved intent.

Tip: For App Store-distributed apps, we suggest not enabling the updateDialog option when calling sync, as Apple's App Store Review Guidelines discourage prompts that require user action to access app functionality.


Contributing

Bug reports and feature requests are welcome via GitHub Issues.


License

MIT — see LICENSE.md for details.