Over the past few months, I've been working on a side project to gain an understanding of the React Native workflow. I decided to create a Hacker News reader using Y Combinator's API.
$ cd HackerBuzz-ReactNative
$ yarn install
or $ npm install
I used the Facebook Audience Network in order to display advertisements every 20 stories. As a result, you need to make sure that the SDK is properly installed or else the project won't build.
$ sudo gem install cocoapods
$ pod install
HackerBuzz.xcworkspace
jsCodeLocation
to point to your IP address in AppDelegate.m
kFacebookAdPlacementId
within StoryListAd.m
$ react-native run-ios
PLACEMENT_ID
within RNTNativeAdManager.java
The project currently contains test for the actions and reducers within /js/__tests__/
. Mocks are located within js/__mocks__/
In order to execute these tests, run $ npm test
.
$ npm bundle-ios
- Bundle code for an iOS release build$ npm bundle-android
- Bundle code for an Android release build$ npm test
- Run unit tests$ lint-fix
- Run linterSettings
Feel free to submit issues and enhancement requests.
Released under the MIT License. Check LICENSE.md
for more info.
Any support would be highly appreciated! 🚀 🌕