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-instantpay-code-push

v1.1.5

Published

React Native plugin for the CodePush service

Downloads

76

Readme

react-native-instantpay-code-push

IpayCodePush is a self-hosted Over-The-Air (OTA) update solution for React Native applications. It allows you to instantly deploy JavaScript bundle updates to users without submitting new builds to the app stores, helping you fix bugs and ship improvements faster.

Installation

npm install react-native-instantpay-code-push

Usage

import { IpayCodePush } from 'react-native-instantpay-code-push';

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

export default IpayCodePush.wrap({
    baseURL: "",
    updateStrategy: "appVersion", // or "fingerprint"
    updateMode: "auto",
    requestHeaders: {
    },
    onNotifyAppReady: (result) => {
        console.log("App ready notified:", result);
    },
    onError: (error) => { 
        // Handle other errors
        console.error("Update error:", error);
    },
    onUpdateProcessCompleted: ({ status, shouldForceUpdate, id, message }) => {
        console.log("Bundle updated:", status, shouldForceUpdate, id, message);
    },
    fallbackComponent: ({ progress, status }) => (
        <Modal transparent visible={true}>
            <View
                style={{
                    flex: 1,
                    padding: 20,
                    borderRadius: 10,
                    justifyContent: "center",
                    alignItems: "center",
                    backgroundColor: "rgba(0, 0, 0, 0.5)",
                }}
            >
                {/* You can put a splash image here. */}

                <Text style={{ color: "white", fontSize: 20, fontWeight: "bold" }}>
                    {status === "UPDATING" ? "Updating..." : "Checking for Update..."}
                </Text>
                {progress > 0 ? (
                    <Text style={{ color: "white", fontSize: 20, fontWeight: "bold" }}>
                        {Math.round(progress * 100)}%
                    </Text>
                ) : null}
            </View>
        </Modal>
    ),
})(App);

Configuration for Android

For React Native 0.82 and above, modify your MainApplication.kt:

import com.instantpaycodepush.IpayCodePush //👈 import this package

class MainApplication : Application(), ReactApplication {
    ....

    override val reactHost: ReactHost by lazy {
        getDefaultReactHost(
            context = applicationContext,
        packageList =
            PackageList(this).packages.apply {
                
            },
            jsBundleFilePath = IpayCodePush.getJSBundleFile(applicationContext), //👈 add this line
        )
    }

    override fun onCreate() {
        super.onCreate()
        loadReactNative(this)
    }

    ....
}

For others React Native version , modify your MainApplication.kt:

import com.instantpaycodepush.IpayCodePush //👈 import this package

class MainApplication : Application(), ReactApplication {
    .....
    override val reactNativeHost: ReactNativeHost =
        object : DefaultReactNativeHost(this) {
            
            override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED
            override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED

            override fun getJSBundleFile(): String? { //👈 add this method
                return IpayCodePush.getJSBundleFile(applicationContext)
            }
        }
    .....
}

Configuration for iOS

Open modify your AppDelegate.swift:

import IpayCodePush //👈 import this package

@main
class AppDelegate: RCTAppDelegate {
    ....
    
    override func bundleURL() -> URL? {
        #if DEBUG
            RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index")
        #else
            Bundle.main.url(forResource: "main", withExtension: "jsbundle") //❌ remove this
            IpayCodePush.bundleURL()  //👈 add this
        #endif
    }

    ....

}

License

MIT


Created By Instantpay