DEV Community

Cover image for How to update version number of react native app for android and ios (Manual)
Anayo Samson Oleru
Anayo Samson Oleru

Posted on

7 1 1 1 1

How to update version number of react native app for android and ios (Manual)

Android

You should be changing your versionCode and versionName in android/app/build.gradle:

android {

    defaultConfig {

        versionCode 1
        versionName "1.0"

        {...}
    }

    {...}
}
Enter fullscreen mode Exit fullscreen mode

The versionCode has to be in an integer that is larger than the ones used for previous releases while versionName is the human-readable version, as it will be shown to users. So use something readable and understandable like what is the main purpose for the release.

iOS

Using Xcode:

You will need to change an iOS project's target target iOS version. XCode > Project Navigator > "General" tab > Deployment Info > Target.

This can be either under Target or Identity section.

Using react-native code:

Go to ios folder and then go to Podfile. At the top, you will find the ios version, there you can change it manually.

If this helped you, like, share and you can follow me on Twitter(X), Instagram and LinkedIn, as I share a lot of helpful technical tips.

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay