Socket
Book a DemoInstallSign in
Socket

react-native-in-app-updates

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-in-app-updates

Ensure your users always stay up-to-date with the latest version of your app. This library offers seamless in-app update functionality for React Native, currently available only for Android.

latest
Source
npmnpm
Version
0.2.2
Version published
Maintainers
1
Created
Source

react-native-in-app-updates

react-native-in-app-updates is a lightweight and simple-to-use library for implementing Android in-app updates. Keep your app users up-to-date seamlessly with minimal effort.

Features

  • Lightweight and easy to integrate.
  • Supports Android in-app update flows.
  • Flexible update options for a tailored user experience.

Installation

Install the package using npm:

npm install react-native-in-app-updates

Usage

To check for updates, use the following example code:

import { useEffect } from 'react';
import { checkForUpdate, UpdateFlow } from 'react-native-in-app-updates';

useEffect(() => {
  getData();
}, []);

async function getData() {
  try {
    await checkForUpdate(UpdateFlow.FLEXIBLE);
  } catch (e) {
    // Handle error
  }
}

Update Flow Options

You can choose between two update flows:

  • Flexible: Allows users to continue using the app while the update downloads.

    await checkForUpdate(UpdateFlow.FLEXIBLE);
    
  • Immediate: Forces users to update the app before they can continue using it.

    await checkForUpdate(UpdateFlow.IMMEDIATE);
    

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Keywords

react-native

FAQs

Package last updated on 30 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.