React Native Baba Commerce with CLI
To run React Native Baba Commerce app Template, you must have the latest node and npm installed in your development environment.
We are using the latest react native 0.66 version with react native CLI and React Navigation 6X.
we are using node version v13.7.0
Android Studio 4.2.1
X code 12.5
and most importantly typescript with hooks
Note we are not using any UI library in this project like react native element, native base, etc. Custom components are our first priority.
Please make sure you already have set up React native environment on your pc.
You can set your environment by this official link provided by React native
https://reactnative.dev/docs/environment-setupNavigate to the project folder after downloading and extracting the main files from code canyon.
cd BabaCommerceInstall dependencies
npm installFor iOS
cd ios && pod install && cd ..npx react-native run-iosFor Android
For Check that any android device is connected
Now run
Splash screen and app icon
For Android
Customize your launch screen app icon by creating a splashscreen.png -file , ic_launcher.png and ic_launcher_round.png and placing it in an appropriate drawable-folder. Android automatically scales drawable, so you do not necessarily need to provide images for all phone densities. You can create splash screens in the following folders:
drawable-ldpidrawable-mdpidrawable-hdpidrawable-xhdpidrawable-xxhdpidrawable-xxxhdpi
Change Splash Screen status bar color with primary_dark in app/src/main/res/values/colors.xml
For Ios
Customize your splash screen via LaunchImage or LaunchScreen.xib
You can check this documentation for app icon and splash screen
https://medium.com/@appstud/add-a-splash-screen-to-a-react-native-app-810492e773f9
Config file
EcommerceApp/src/components/config.tsx file
you can customize the app with this config file
LTR and RTL labels
EcommerceApp/src/components/gLJson.ts
this file contains all English and Arabic labels. You can easily add new languages and edit these labels.
Default RTL setup
you can start the app in RTL mode for language like arabic
go into EcommerceApp/src/redux/reducers/reducers.ts file
and set rtl value true in initialstate value
Now for IOS
go into EcommerceApp/ios/EcommerceApp/AppDelegate.m file
now change the value of foreRTL and allowRTl from NO to Yes
For android
go into EcommerceApp/android/app/src/main/java/com/ecommerceapp/MainActivity.java
now change the value of foreRTL and allowRTl from false to true
this is our package.json file
Note: Many more themes are coming in this project
Last updated
Was this helpful?