How to update version number of react native app
<p>I am using React native with Android. How can I update version number in the app? As I am getting this error.</p>

<p>I am generating file as per this url
<a href="https://facebook.github.io/react-native/docs/signed-apk-android.html" rel="noreferrer">https://facebook.github.io/react-native/docs/signed-apk-android.html</a></p>

<p>I have tried modifying AndroidManifest.xml file, but after I build it, that file gets automatically modified back.</p>

<pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.facebook.react"
    android:versionCode="1"
    android:versionName="1.0" &gt;
</code></pre>

<p>Here, I modified the XML:</p>

<pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.facebook.react"
    android:versionCode="2"
    android:versionName="1.1" &gt;
</code></pre>

<p>After, build file automatically changes back.</p>

<p><a href="https://i.stack.imgur.com/bhOmm.png" rel="noreferrer"><img src="https://i.stack.imgur.com/bhOmm.png" alt="enter image description here"></a></p>