Skip to content
Aaron Schachter edited this page Jan 21, 2016 · 25 revisions

Getting started

Installation

Run pod install to create Lets Do This.xcworkspace. Working on the News Feed requires installing React Native locally.

Untracked files

Add the following files to the project, which are untracked in our repo:

  • Lets Do This/keys.plist
  • Lets Do This/Resources/Fonts/Brandon_bld.otf
  • Lets Do This/Resources/Fonts/Brandon_med.otf
  • Lets Do This/main.jsbundle -- Required for React Native

Contributing

React Native

We're using React Native to render the News Feed. The LDTNewsFeedViewController view is set to a RCTRootView which embeds a NewsFeedView React Native component.

The NewsFeedView queries the LDT News API to populate the News Feed content and render it as a React Native ListView.

Building locally

Our LDTAppDelegate stores a global jsLocation property that all RCTRootView classes should use, in order to make local development easier.

Hacks for now:

To develop locally, I comment/uncomment relevant lines in LDTAppDelgate - (BOOL)application:didFinishLaunchingWithOptions: (see inline comments). If developing locally, you'll need to run npm start within the root directory to start the Node server.

Clone this wiki locally