pcofilada / simple-react-native-starter

Simple ReactNative starter with an opinionated folder structure for mobile development.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple React Native Starter

Simple ReactNative starter with an opinionated folder structure for mobile development.

Getting Started

  1. Ensure you've followed the React Native - Get Started Guide
  2. Clone this project git clone git@github.com:pcofilada/simple-react-native-starter.git
  3. Run yarn install from root directory
  4. Run yarn ios or yarn android from root directory

Folder Structure

  • android/ - Android native stuff
  • ios/ - iOS native stuff
  • src/ - Contains all of our react native codebase
    • App.tsx - Base react native component
    • Router.ts - App navigation
    • api/ - Api call related functions
    • assets/ - Images, fonts and other static files
    • config/ - Config files
    • containers/ - Smart Components
    • context/ - React Context
    • types/ - Typescript related files or functions
    • utils/ - Helper functions
    • components/ - Dumb Components
      • common/ - Shared components

About

Simple ReactNative starter with an opinionated folder structure for mobile development.


Languages

Language:Java 38.9%Language:Objective-C 30.1%Language:TypeScript 18.2%Language:JavaScript 5.1%Language:Ruby 4.0%Language:Starlark 3.7%