Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
react-native-store-version
Advanced tools
This module check an app's version on google playstore or ios app store. By writing code successfully, you can make a forced update.
This module check an app's version on google playstore or ios app store.
By writing code successfully, you can make a forced update.
I've only been updating occasionally, but I'd be happy to sponsor you to keep me motivated. https://github.com/sponsors/watanabeyu
$ npm install --save react-native-store-version
import checkVersion from 'react-native-store-version';
export default function App() {
useEffect(() => {
const init = async () => {
try {
const check = await checkVersion({
version: '1.0.0', // app local version
iosStoreURL: 'ios app store url',
androidStoreURL: 'android app store url',
country: 'jp', // default value is 'jp'
});
if (check.result === 'new') {
// if app store version is new
}
} catch (e) {
console.log(e);
}
};
init();
}, []);
}
// correct
{
local: "1.0.0",
remote: "1.1.0",
result: "new", // "new" | "old" | "equal"
detail: "remote > local", // "remote > local" | "remote < local" | "remote === local"
}
// catch error
{
message: "string",
}
result compare from a local
to remote
.
If local(1.0.0)
and remote(1.1.0)
, result is new.
FAQs
This module check an app's version on google playstore or ios app store. By writing code successfully, you can make a forced update.
We found that react-native-store-version 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
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.