App Customization
App Customization
Now that you have successfully installed all dependencies of the app, it's time to customize and modify it using any code editor to meet your branding requirements.
To customize the app, open the common folder:
hubay -> src -> app -> common
1. How to change colors ?
In the Colors.js
you can define your app colors. AppColor
is the main color of the app and other colors are used within different components in the app. You can change the color using rgba
color codes as follows:
For example: to change the AppColor
, simply change numbers between ( )
with your desired rgba
color code : (60,160,220,1)
2. What to change in the configuration file ?
In the Config.js
you can define baserUrl
, AccessToken
, promotion slider, and main brands:
baseURL: defines your Magento2 website URL,
AccessToken: will enable to integrate your site with hubay mobile app,
Promotion slider: shows home page sliders and required URLs,
Brands: shows list of brands and their URLs.
How to change the baseURL ?
Add your website URL in baseUrl
and also the AccessToken
that can be generated from your Magento2 admin dashboard.
You can generate the AccessToken
from admin dashboard of your Magento2 website. To do so follow these steps:
Login to your Magento2 admin dashboard.
Go to System -> Extensions -> Integrations -> Add New Integration
Add details in the Integration Info and then grant access to all in the API
Then the site will generate all api details that can be used in Hubay app integration.
How to change/add promotion sliders:
Add your banner image url
and categoryID
for your slider as follows.
To remove promotion sliders, simply remove the object including { }
.
How to change/add brands:
Add url
and image
for your Brands as follows.
To remove brands , simply remove the object including { }
.
3. Icons:
All icons used in the app are defined in the Icons.js
file. Please ensure replacing icons with same names given below:
For example if you want to change the Drawer icon, then you can replace the icon from assets -> icons
folder. However, the replaced file should be ic_drawer.png
4. Languages:
You can add a new language via Languages.js
file. The app support RTL and Arabic Languages. Simply add a new language by adding it as the following structure:
Ensure defining the languages correctly between single quotation mark. For example :
To adde French language, add the following :
left side will contain english item (i.e Submit) and the right site will contain the translated item (i.e. Soumettre).
How to change logo, app icon, and splash screen:
How to change the app logo ?
To change the app logo that appears in the top of the app, you need to replace AppTopLogo.png
in Hubay -> assets -> icons
with your logo:
How to change app icon and splash screen for iOS?
Open your HuBay.xcodeproj
in the iOS folder and search for App Icons Source and click in the arrow next to it:
Then you will be directed to the following screen where you can change app icons and also the splash screen:
To read more about Apple guidelines for creating App Icon click here
How to change app icons for Android ?
Open Hubay -> android -> app -> src -> main - res
and replace the following png files:
To read more about Google Play guidelines for creating App Icon click here
Last updated