
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
react-native-in-app-updates
Advanced tools
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.
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.
Install the package using npm:
npm install react-native-in-app-updates
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
}
}
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);
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
FAQs
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.
We found that react-native-in-app-updates demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.