Skip to content

๐ŸŽŠ๐Ÿ””๐Ÿšจ 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. (Android only) ๐Ÿšจ๐Ÿ””๐ŸŽŠ

License

Notifications You must be signed in to change notification settings

aravind3566/react-native-in-app-updates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

29 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

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

About

๐ŸŽŠ๐Ÿ””๐Ÿšจ 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. (Android only) ๐Ÿšจ๐Ÿ””๐ŸŽŠ

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

No packages published