The ideal starter kit / app script with all the needed UI elements alongwith MobX and NativeBase to build your iOS and Android e-commerce app like Mona / JackThreads / Canopy / Flipp
-
Globally installed node>= 6
-
Globally installed npm>= 3
-
Install packages for Full Version
cd App
npm install
or
yarn
-
To simulate for iOS
- Method One:
- Run
npm start
in your terminal. - Scan the QR code in your Expo App.
- Run
- Method Two:
- Type
npm run ios
in your terminal.
- Type
- Method One:
-
To simulate for Android
- Method One:
- Run
npm start
in your terminal. - Scan the QR code in your Expo App.
- Run
- Method Two:
- Make sure you have an Android emulator installed and running.
- Type
npm run android
in your terminal.
- Method One:
This App guides you throughout building your app, providing the steps and procedure to customize.
- Create a new folder, say
newComponent
and place it under/js/src
. - Create a new file
index.js
, within this folder. - Name the class same as that of folder name.
class NewComponent extends Component {
...
}
- Create a new file
styles.js
, place it under/js/src/newComponent
. import
newly created StyleSheet into the Component.
import styles from './styles';
class NewComponent extends Component {
...
}
Happy coding!