How to generate .apk file with React Native Cli | React Native | Android App using React Native 2023

Career Options
Career Options
14.1 هزار بار بازدید - 3 سال پیش - Hello Guys,In this video we
Hello Guys,
In this video we will cover how to generate .apk file in React Native Cli.

Commands that are used:
d:   - To go to d drive
mkdir  - To creating directory
cd    - To change directory
npx react-native init appname   - To build react native project
npx react-native run-android   - To run our emulator
code .   - To open VS code

Generate .keystore file:  copy following command:
keytool -genkeypair -v -storetype PKCS12 -keystore my-upload-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000

Setting up Gradle variables: copy following command

MYAPP_UPLOAD_STORE_FILE=my-upload-key.keystore
MYAPP_UPLOAD_KEY_ALIAS=my-key-alias
MYAPP_UPLOAD_STORE_PASSWORD=*****
MYAPP_UPLOAD_KEY_PASSWORD=*****

Adding signing config:
step1:
signingConfigs {
       release {
           if (project.hasProperty('MYAPP_UPLOAD_STORE_FILE')) {
               storeFile file(MYAPP_UPLOAD_STORE_FILE)
               storePassword MYAPP_UPLOAD_STORE_PASSWORD
               keyAlias MYAPP_UPLOAD_KEY_ALIAS
               keyPassword MYAPP_UPLOAD_KEY_PASSWORD
           }
       }
   }

step2:
signingConfig signingConfigs.release

Tags: How to generate .apk file with react-native, how to build android app in react-native, react native, react native app 2023
Hashtag:
#react-native  #react-native-cli #apkfilereactnative #reactnative2023

About me and my channel:
Hey,
I'm Ravindra Pratap Patel. I'm a second year student.
I like startups,  blogging, affiliate marketing and making YouTube videos.

Through this channel, I am going to cover complete course of web development.
Starting with HTML tutorials. Then CSS, Java script,  Mysql, Mongodb, PHP, Node.js, Reactjs, angular.

And later on, we will see WordPress tutorials, blogger tutorials, Wix tutorials etc.

If you are a new visitor, then subscribe my channel for upcoming tutorials!!
3 سال پیش در تاریخ 1400/08/01 منتشر شده است.
14,108 بـار بازدید شده
... بیشتر