rtn-in-app-updates
v0.0.5
Published
Add support for in-app-updates on Android
Downloads
2
Readme
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.