rtn-in-app-updates

0.0.5 • Public • Published

RTNInAppUpdates

Description

RTNInAppUpdates is a React Native wrapper for the Android in-app-updates feature. It provides an easy-to-use interface for integrating the In-App-Update API provided by Google.

Installation

To install RTNInAppUpdates, run the following command:

npm install rtn-in-app-updates

Make sure to set newArchEnabled to true in gradle.properties for this module to work.

Usage

import RTNInAppUpdates from "rtn-in-app-updates/js/NativeInAppUpdates";

// checkForUpdate must always be called before any other method
async function update() {
  const result = await RTNInAppUpdates.checkForUpdate({ stalenessDays: 1 });
  if (result.updateAvailable) {
    await RTNInAppUpdates.startUpdate();
  }
}

Contributing

Contributions are welcome! If you would like to contribute to RTNInAppUpdates, please follow the guidelines in CONTRIBUTING.md.

Troubleshooting

If you encounter any issues or errors while using RTNInAppUpdates, please refer to the troubleshooting guide for possible solutions.

Feel free to customize the content and links based on your project's specific needs.

License

RTNInAppUpdates is licensed under the MIT License.

Readme

Keywords

Package Sidebar

Install

npm i rtn-in-app-updates

Weekly Downloads

1

Version

0.0.5

License

MIT

Unpacked Size

115 kB

Total Files

17

Last publish

Collaborators

  • ahoseinian