Get Started

This section will help you walk through the minimum required setup to run the project.

Installation

  • Get the code

    • Opt #1. Download ZIP

      Not familiar with Git? Click here to download React Native Holistic Hotel App Theme. Extract the contents of ZIP file after downloading. Downloading ZIP file does not help you to sync with further updates of Social App.

    • Opt #2. Clone

      To setup React Native Holistic Hotel App Theme on your system, and sync your app with constant updates, clone the repo. Click here to clone React Native Holistic Hotel App Theme using GitStrap.

  • Install packages

    cd SocialApp/CRNA
    yarn
  • Run on iOS

    • Opt #1:

      • Run npm start in your terminal

      • Scan the QR code in your Expo app

    • Opt #2:

      • Run npm run ios in your terminal

  • Run on Android

    • Opt #1:

      • Run npm start in your terminal

      • Scan the QR code in your Expo app

    • Opt #2:

      • Make sure you have an Android emulator installed and running

      • Run npm run android in your terminal

System Requirements

NodeJS

  • Make sure you have a recent version (8.11 or later) of Node installed globally.

React Native Developer Tools

  • Ensure that react-native CLI development tools and their prerequisites are installed globally.

    The instructions are a bit different depending on your operating system (MacOS, Windows, Linux) and the target development environment (Android, OS).

    You must follow the guide in the tab labeled Building Projects with Native Code. The basic tutorial explaining the main principles of React Native is also very useful for a first start of React Native.

Expo

  • Globally installed Expo :

    • Run npm install -g expo in your terminal to install expo

    • Run npm install -g expo-cli in your terminal to install expo CLI

Launching the application

Launch on iOS

  • In your terminal, run the following command to launch the app in an IOS Emulator:

$ yarn iosor$ npm run ios

OR:

  • Run the following command to launch the app and Scan the QR code in your Expo app:

$ yarn startor$ npm run start

Launch on Android

You must open the Android emulator manually or connect your device to USB debug mode.

  • In your terminal, run

$ yarn androidor$ npm run android

OR:

  • In your terminal, run the following and then Scan the QR code in your Expo app:

$ yarn startor$ npm run start