
Security News
Official Go SDK for MCP in Development, Stable Release Expected in August
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
react-native-on-app-version-upgrade
Advanced tools
React Native util to check app version upgrade
React native utility to check first session after an app was upgraded, e.g from Google Play or Apple Store.
Install react-native-device-info. All versions are supported.
npm install react-native-on-app-version-upgrade
Users must pass their storage engine in, e.g async-storage or redux-persist-fs-storage.
IMPORTANT! checkAppVersionUpgrade
have to be invoked at least once on every app start.
import AsyncStorage from '@react-native-community/async-storage';
import { checkAppVersionUpgrade } from 'react-native-on-app-version-upgrade';
checkAppVersionUpgrade({ storage: AsyncStorage, considerInstallAsUpgrade: true }).then(
({ wasUpgraded }) => {
if (wasUpgraded) {
// for example copy asserts
}
},
);
checkAppVersionUpgrade({ storage: AsyncStorage }).then(
({ prevBuildNumber, buildNumber }) => {
if (prevBuildNumber < 10 && buildNumber >= 10) {
// for example do migrations on app upgrade
}
},
);
Signature:
checkAppVersionUpgrade({{ storage: object, considerInstallAsUpgrade: bool }}): Promise
storage
is required.
considerInstallAsUpgrade
is optional. Default is false
. true
value sets
wasUpgraded
to true
when the app has just been installed.
Returns: Promise with object
{ wasUpgraded, version, buildNumber, prevVersion, prevBuildNumber}
.
wasUpgraded
is true
on first session after app upgrade.
FAQs
React Native util to check app version upgrade
The npm package react-native-on-app-version-upgrade receives a total of 2 weekly downloads. As such, react-native-on-app-version-upgrade popularity was classified as not popular.
We found that react-native-on-app-version-upgrade demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
Security News
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.