Workreap - React Native Android and IOS Mobile APP

Contents

1. How to brand your Application?

2. How to change package name in Android Application?

3. How to apply update to your existing application?

4. How to apply update to your existing application?

5. How to apply update to your existing application?

1. How to brand your Application?

1- Change the App display name:

For Android:

Goto ApplicationName/android/src/main/values/strings.xml

For Ios:

You need Xcode to change display name for IOS. Follow this image.

2- Change BaseUrl of the Application with your own Url:

Goto src/Constants/constant.js file and replace BaseUrl with your URL.

3- Change the colour scheme of the Application:

Goto src/Constants/constant.js file and replace primary colour with your desired colour.

4- Change the Package Name fo the Application:

For Android:

Goto yourApp/android/src/main/AndroidManifest.xml ,  yourApp/android/src/main/java/MainActivity.java  , yourApp/android/src/main/java/MainApplication.java and change the package name there.

For Ios:

Goto Xcode and change package name there:

2. How to change package name in Android Application?

In Android Studio, you can do this:

For example, if you want to change com.example.app to my.awesome.game, then:

  1. In your Project pane, click on the little gear icon ( Gears icon )
  2. Uncheck / De-select the Compact Empty Middle Packages option

    Compact Empty Middle Packages

  3. Your package directory will now be broken up in individual directories
  4. Individually select each directory you want to rename, and:
    • Right-click it
    • Select Refactor
    • Click on Rename
    • In the Pop-up dialog, click on Rename Package instead of Rename Directory
    • Enter the new name and hit Refactor
    • Click Do Refactor in the bottom
    • Allow a minute to let Android Studio update all changes
    • Note: When renaming com in Android Studio, it might give a warning. In such case, select Rename All

    Enter image description here

  5. Now open your Gradle Build File (build.gradle - Usually app or mobile). Update the applicationId in the defaultConfig to your new Package Name and Sync Gradle, if it hasn't already been updated automatically:

    Refactor Directories

  6. You may need to change the package= attribute in your manifest.
  7. Clean and Rebuild.
  8. Done! Anyway, Android Studio needs to make this process a little simpler.

3. How to apply update to your existing application?

If you don't want to upload and replace complete application with your existing application then you need to do the following steps.

1- Before update must backup your database and all application folders and files.

2- You do not have to replace all the application folders every time. 

3- Open your website or application in a browser, login as admin then go to settings -> general settings -> Important update option and click important. This will update your database.

Note: You must backup your application and database before applying update.



4. How to apply update to your existing application?

If you don't want to upload and replace complete application with your existing application then you need to do the following steps.

1- Before update must backup your database and application folders and files.

2- You do not have to replace all the application folders every time. 

Just the following specific folders are important to replace and your application will be updated to latest version.

Folders include are: 

3- Open your website or application in a browser, login as admin then go to settings -> general settings -> Important update option and click import. This will update your database.

Note: You must backup your application and database before applying update. After updating the application  you can replace your custom.css file from your backup.



5. How to apply update to your existing application?

If you don't want to upload and replace complete application with your existing application then you need to do the following steps.

1- Before update must backup your database and all application folders and files.

2- You do not have to replace all the application folders every time. 

3- Open your website or application in a browser, login as admin then go to settings -> general settings -> Important update option and click important. This will update your database.

Note: You must backup your application and database before applying update. After updating the application replace your extend folder and custom.css file from your backup files.