Home > Mobile >  is there way to check react native app version?
is there way to check react native app version?

Time:05-26

let's say i have upload my app version 1.0.0 to app store and play store. After that i have release new version which is 1.0.1. So. am wonder how can we notify user that app need to update. i search and read lots of article but all of them are using packages which some are outdated and most are not working. can someone help me please.

https://www.npmjs.com/package/sp-react-native-in-app-updates this is the package that i used.

CodePudding user response:

you can check latest version on store and your current version of app by this react-native-version-check and also must check this I think this help you most app-upgrade-react-native-sdk.

CodePudding user response:

You can install this lib called react-native-device-info, and use it as follow:

import VersionNumber from 'react-native-version-number';

[...]

    render() {
        var versionNumber = `${VersionNumber.appVersion}.${VersionNumber.buildVersion}`;

        return (
            <Text style={ styles.versionText }>App Version: {versionNumber}</Text>
        )
    }
[...]

Hope it helps!

  • Related