<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Mohd Saad beg</title>
    <description>The latest articles on Forem by Mohd Saad beg (@mohd_saadbeg_3ac0033ca9e).</description>
    <link>https://forem.com/mohd_saadbeg_3ac0033ca9e</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3259785%2Fdf96a021-a9fe-49d0-afdc-bab78f116e5f.png</url>
      <title>Forem: Mohd Saad beg</title>
      <link>https://forem.com/mohd_saadbeg_3ac0033ca9e</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/mohd_saadbeg_3ac0033ca9e"/>
    <language>en</language>
    <item>
      <title>How to create Signed APK and AAB files in React Native in simple steps.</title>
      <dc:creator>Mohd Saad beg</dc:creator>
      <pubDate>Sat, 08 Nov 2025 07:20:59 +0000</pubDate>
      <link>https://forem.com/mohd_saadbeg_3ac0033ca9e/how-to-create-signed-apk-and-aab-files-in-react-native-in-simple-steps-2jh9</link>
      <guid>https://forem.com/mohd_saadbeg_3ac0033ca9e/how-to-create-signed-apk-and-aab-files-in-react-native-in-simple-steps-2jh9</guid>
      <description>&lt;p&gt;Hi Developers I'm Saad.&lt;br&gt;
After successfully creating your React Native App, every developer is in hurry to upload on Google Playstore.&lt;br&gt;&lt;br&gt;
Firstly run your app on emulator and if it is bug free. Here you have follow few simple steps and here we go...&lt;/p&gt;

&lt;h2&gt;
  
  
  **  Step 1. Generate Private Key in terminal.
&lt;/h2&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;open terminal and paste this**
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;code&gt;&lt;br&gt;
keytool -genkeypair -v -storetype PKCS12 -keystore my-upload-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000&lt;/code&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;my-release-key.keystore → your keystore file (you can rename it). &lt;/li&gt;
&lt;li&gt;myappkey → alias name (used to identify your key). &lt;/li&gt;
&lt;li&gt;10000 → validity in days (~27 years). &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The command will ask for a password, name, organization, city, state, and country code. Remember your keystore password and alias details — you’ll need them later. &lt;/p&gt;

&lt;h2&gt;
  
  
  *&lt;em&gt;Step 2: Move the Keystore File *&lt;/em&gt;
&lt;/h2&gt;

&lt;p&gt;After generation, you’ll find the my-release-key.keystore file in your user directory. &lt;/p&gt;

&lt;p&gt;Copy it into your React Native project at: &lt;/p&gt;

&lt;p&gt;your_project/android/app/ &lt;/p&gt;

&lt;h2&gt;
  
  
  ** Step 3: Configure Gradle to Use the Keystore **
&lt;/h2&gt;

&lt;p&gt;Now you need to tell Gradle how to use this keystore. &lt;/p&gt;

&lt;p&gt;a--Open android/gradle.properties and add: &lt;/p&gt;

&lt;p&gt;`MYAPP_UPLOAD_STORE_FILE=my-release-key.keystore &lt;/p&gt;

&lt;p&gt;MYAPP_UPLOAD_KEY_ALIAS=myappkey &lt;/p&gt;

&lt;p&gt;MYAPP_UPLOAD_STORE_PASSWORD=your-keystore-password &lt;/p&gt;

&lt;p&gt;MYAPP_UPLOAD_KEY_PASSWORD=your-key-password `&lt;/p&gt;

&lt;p&gt;b--Replace with your own password and remember to. &lt;/p&gt;

&lt;p&gt;Open android/app/build.gradle and add signing configs: &lt;/p&gt;

&lt;p&gt;**&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Build the .apk or .aab **
&lt;/h2&gt;

&lt;p&gt;Open a terminal inside your project root and run: &lt;/p&gt;

&lt;p&gt;For .apk: &lt;/p&gt;

&lt;p&gt;cd android &lt;/p&gt;

&lt;p&gt;&lt;code&gt;./gradlew assembleRelease&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;For .aab: &lt;/p&gt;

&lt;p&gt;cd android &lt;/p&gt;

&lt;p&gt;&lt;code&gt;./gradlew bundleRelease&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  *&lt;em&gt;Step 5: Locate the Output Files *&lt;/em&gt;
&lt;/h2&gt;

&lt;p&gt;The .apk file will be at: &lt;/p&gt;

&lt;p&gt;android/app/build/outputs/apk/release/app-release.apk &lt;/p&gt;

&lt;p&gt;The .aab file will be at: &lt;/p&gt;

&lt;p&gt;android/app/build/outputs/bundle/release/app-release.aab &lt;/p&gt;

&lt;p&gt;These are your signed release files, ready for uploading to the Google Play Console. &lt;/p&gt;

&lt;p&gt;*&lt;em&gt;Final Notes- *&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Always keep your keystore file safe. Losing it means you cannot update your app on the Play Store. &lt;/p&gt;

&lt;p&gt;Use .aab when uploading to Play Store (Google requires it now), but you can still use .apk for testing or sharing. &lt;/p&gt;

&lt;p&gt;If you face Gradle issues, try cleaning the build: &lt;/p&gt;

&lt;p&gt;cd android &lt;/p&gt;

&lt;p&gt;&lt;code&gt;./gradlew clean&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;That’s it! You’ve successfully built .apk and .aab files on Windows for your React Native app. &lt;/p&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>javascript</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
