Make sure your Powershell/VSCode terminal is cd-ed into the folder:
- Open
VSCode
and pressCtrl + `
. SelectBash
orPowershell
or - Open
Powershell
and runcd <FULL PROJECT DIRECTORY>
- Install dependencies
$ yarn
# -- or --
$ yarn install
- Start coding
- Run App
# Installing Android App
$ yarn run android
# Running App
$ yarn start
# ==================
# IOS (WORK IN PROGRESS)
# ==================
# Installing `iOS` dependencies
$ cd ios && pod update && pod install && cd -
# to open project in xcode
$ yarn run xcode
# to start `ios` emulator
$ yarn run ios
If you wish to install/remove dependencies in projects or packages, you can use command below
# Installing new packages
yarn add <DEPENDENCIES>
# Removing packages
yarn remove <DEPENDENCIES>
- Package Manager -
yarn
- Coding styles -
TypeScript
- UI styles -
styled-components
- UI Framework -
React Native
- Coding Practice -
Eslint
rules for(.ts, .tsx)
To Be Added
Assets should be stored within the Assets folder (TBA)
// In react native project
import { Image } from "react-native";
const logo = require("../assets/static/dog.png");
<Image source={logo} />
This project sports
└── src
└── theme
├── colors
└── palette
To minimize excess typing, just modify the colors within colors
, palatte
under the theme
folder. You can then access the value by importing the package. For example:
import { colors, palette } from "../../theme"; // This import will be fixed soon
colors.primary // primary color
palette.black // black color
If you are currently running into issues please remember to refer to the React Native Official Documentation
- Official Docs - https://styled-components.com/
- Github - https://github.com/styled-components/styled-components