A starter template for ReactNative with Expo & Tailwind in TypeScript with an opinionated modular project structure
Use degit to download the repository locally.
degit
downloads a copy of git repository with its entire git history.
Install degit globally.
npm install -g degit
Download the latest version
degit utsavdotpro/starter-rn-expo-tailwind-ts
Install dependencies
yarn install
Start expo server
yarn start
Launch the development apps
# start android app
yarn android
# start ios app
yarn ios
# start web app
yarn web
Use Tailwind-rn
# start Tailwind class generator (in watch mode)
yarn dev:tailwind
# build Tailwind classes
yarn build:tailwind
project
|-- public ℹ️ keep your static resource files
|-- src
| |-- common
| | |-- components
| | | |-- elements ℹ️ keep your state-less components
| | | | ℹ️ keep your state-full components
| | |-- hoc
| | |-- hooks
| | |-- layouts
| | |-- types
| |-- modules
| |-- screens
| |-- services
| |-- styles
| |-- utils
| | |-- constants ℹ️ keep your constants
| | | ℹ️ keep your util functions