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

react-native-3rddigital-appupdate

v1.0.10

Published

A React Native library for seamless over-the-air (OTA) updates with version checks, automatic bundle download, and customizable user prompts for iOS and Android.

Readme

react-native-3rddigital-appupdate

A React Native library for seamless Over-The-Air (OTA) updates with:

  • 🔄 Automatic version checks
  • 📥 Bundle download & installation (iOS & Android)
  • ⚡ Configurable user prompts (dialogs) & loaders
  • 🛠️ CLI tool for building & uploading bundles to your update server

🚀 Installation

npm install react-native-3rddigital-appupdate
# or
yarn add react-native-3rddigital-appupdate

This package has peer dependencies that also need to be installed:

npm install react-native-blob-util react-native-device-info react-native-ota-hot-update

Run pod install for iOS:

cd ios && pod install

📦 Usage in Your App

  • Wrap your app with the OTAProvider to enable the loader and dialog components globally:
import React, { useEffect } from 'react';
import { View, Text } from 'react-native';
import { OTAProvider, checkOTAUpdate } from 'react-native-3rddigital-appupdate';

const App = () => {
  useEffect(() => {
    checkOTAUpdate({
      baseUrl: 'https://your-api-url.com',
      key: 'YOUR_PROJECT_KEY',
      iosPackage: 'com.example.ios',
      androidPackage: 'com.example.android',
      loaderOptions: {
        text: 'Downloading update...',
        showProgress: true,
      },
      dialogOptions: {
        title: 'Update Available',
        message: 'A new version is ready to install.',
      },
    });
  }, []);

  return (
    <OTAProvider>
      <View>
        <Text>My App Content</Text>
      </View>
    </OTAProvider>
  );
};

export default App;

⚙️ API Reference

🔹 checkOTAUpdate(options: OTAUpdateProps)

  • Checks the server for available updates and installs if needed.

Options:

| Key | Type | Required | Description | | ---------------- | ------ | -------- | ----------------------------------------------------- | | baseUrl | string | ✅ | Base url for app update | | key | string | ✅ | Project key to identify the app on your update server | | iosPackage | string | ✅ | iOS bundle/package identifier | | androidPackage | string | ✅ | Android bundle/package identifier | | loaderOptions | object | ❌ | Customize loader UI (see below) | | dialogOptions | object | ❌ | Customize alert dialog UI (see below) |

🔹 OTAProvider

  • Renders background components (AppLoader, AppAlertDialog) that handle UI for downloads and update prompts.
  • Must be included once, usually at the root of your app.

🔹 Loader (AppLoader)

  • Global loader shown when downloading an update.

Props (LoaderOptions):

| Key | Type | Default | Description | | ------------------- | --------- | ----------------- | ----------------------------------------------- | | text | string | undefined | Text displayed below the spinner | | color | string | #2563EB | Spinner color | | backgroundColor | string | rgba(0,0,0,0.3) | Overlay background color | | textColor | string | #fff | Loader text color | | containerStyle | ViewStyle | {} | Custom style for the loader container | | textStyle | TextStyle | {} | Custom style for the loader text | | progressTextStyle | TextStyle | {} | Custom style for the loader progress text | | showProgress | boolean | false | Show real-time download percentage (e.g. “45%”) |

🔹 Dialog (AppAlertDialog)

  • Global confirmation dialog used to prompt users for updates.

Props (DialogOptions):

| Key | Type | Default | Description | | -------------------- | ---------- | ------------------- | -------------------------------------- | | title | string | "Alert" | Dialog title | | message | string | "" | Dialog message | | cancelText | string | "Cancel" | Cancel button text | | confirmText | string | "OK" | Confirm button text | | onCancel | () => void | undefined | Callback when cancel is pressed | | onConfirm | () => void | undefined | Callback when confirm is pressed | | titleStyle | TextStyle | {} | Style override for title text | | messageStyle | TextStyle | {} | Style override for message text | | cancelButtonStyle | ViewStyle | {} | Style override for cancel button | | confirmButtonStyle | ViewStyle | {} | Style override for confirm button | | cancelTextStyle | TextStyle | {} | Style override for cancel button text | | confirmTextStyle | TextStyle | {} | Style override for confirm button text | | overlayColor | string | 'rgba(0,0,0,0.3)' | Overlay background color |

🖥️ CLI Tool – appupdate

  • This package also provides a CLI for building and uploading OTA bundles.

Build & Upload

npx appupdate android
npx appupdate ios
npx appupdate all

You will be prompted for:

  • API Token
  • Project ID
  • Environment (development / production)
  • Version
  • Force Update (true/false)

What it does

  • Bundles your React Native JS + assets
  • Zips the output
  • Uploads bundle + metadata to your update server

📄 License