Skip to content

luke-perry/Starter-React-Native

Repository files navigation

👋 React Native Boilerplate

This starter React Native app is a basic starting point to accelerate kicking off new mobile projects. The project is setup with native module support ("ejected").

📝 Requirements

Node 10 or greater is required. Development for iOS requires a Mac and Xcode 9.4 or up, and will target iOS 9 and up.

🚀 Getting Started

To setup your mac for mobile development, read more below.

📦 Installing Dependencies

JavaScript

npm install

iOS

cd ios && pod install

Android

🏃‍♀️ Running the App

iOS

npx react-native run-ios --simulator="iPhone 13"

Android

📖 Useful Docs

ℹ️ Helpful Info

🗂️ Directory layout

  • src/Assets: assets (image, audio files, ...) used by the application
  • src/Components: presentational components
  • src/Config: configuration of the application
  • src/Containers: container components, i.e. the application's screens
  • src/Navigators: react navigation navigators
  • src/Services: application services, e.g. API clients
  • src/Stores: redux actions, reducers and stores
  • src/Translations: application strings, you can add languages files and be able to translate your app strings
  • src/Theme: base styles for the application

🧱 Architecture

  • Presentational components are separated from containers. Containers usually define whole application screens. Presentational components are small components.
  • With Redux, state is shared using global stores.

🐛 Debugging

Mac Setup

  1. If homebrew is not installed, view the command here
  2. Node LTS or only slightly behind should be used. Consider using NVM.
  3. Install Cocoapods

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published