Skip to content

Instantly share code, notes, and snippets.

@makirby
Last active December 3, 2020 16:11
Show Gist options
  • Save makirby/96812fe1e543274866bf301adb2bffd3 to your computer and use it in GitHub Desktop.
Save makirby/96812fe1e543274866bf301adb2bffd3 to your computer and use it in GitHub Desktop.

Tooling needed

macOS

// TODO add Android tooling

Setup

Dependencies

In the RN project directory run npm install Once that is finished install the iOS dependencies from the ios directiory i.e cd ios && pod install

Running the packager

Make sure you are in the root directory and run npm start note: if youve made some changes to the .env file make sure you use npm start -- --reset-cache to pick up any changes

Running the native project (iOS)

Via xcode

To run the native iOS app, the simplest way is to build via xcode.

To do this open xcode and then choose 'Open a project or file'.

You should navigate to, and select the file Akkroo.xcworkspace, this will be in the projects ios directory.

Once open it will take some time indexing files etc, you should be good then to select a simulator in the top left corner and press 'play'.

This will run an xcode build of the app and start it automatically on the selected simulator

Via command line

// TODO

Running the native project (Android)

// TODO

Unit tests

Run the unit tests using the command npm test Debug the tests using npm run test-debug

Linting

Run npm run eslint

@sarikasarngadharan
Copy link

Use home-brew to install cocoapods - brew install cocoapods

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment