HackerBuzz-ReactNative

所属分类:android开发
开发工具:JavaScript
文件大小:0KB
下载次数:0
上传日期:2017-12-26 17:11:58
上 传 者sh-1993
说明:  内置React Native for iOS和Android的黑客新闻阅读器
(A Hacker News Reader built in React Native for iOS and Android)

文件列表:
.babelrc (34, 2017-12-26)
.buckconfig (114, 2017-12-26)
.eslintrc (589, 2017-12-26)
.flowconfig (1421, 2017-12-26)
.watchmanconfig (2, 2017-12-26)
LICENSE.md (1074, 2017-12-26)
android/ (0, 2017-12-26)
android/app/ (0, 2017-12-26)
android/app/BUCK (1578, 2017-12-26)
android/app/build.gradle (6691, 2017-12-26)
android/app/proguard-rules.pro (2682, 2017-12-26)
android/app/src/ (0, 2017-12-26)
android/app/src/main/ (0, 2017-12-26)
android/app/src/main/AndroidManifest.xml (1538, 2017-12-26)
android/app/src/main/assets/ (0, 2017-12-26)
android/app/src/main/assets/crashlytics-build.properties (336, 2017-12-26)
android/app/src/main/assets/fonts/ (0, 2017-12-26)
android/app/src/main/assets/fonts/Entypo.ttf (65584, 2017-12-26)
android/app/src/main/assets/fonts/EvilIcons.ttf (13128, 2017-12-26)
android/app/src/main/assets/fonts/FontAwesome.ttf (165548, 2017-12-26)
android/app/src/main/assets/fonts/Foundation.ttf (56976, 2017-12-26)
android/app/src/main/assets/fonts/Ionicons.ttf (143936, 2017-12-26)
android/app/src/main/assets/fonts/MaterialCommunityIcons.ttf (292556, 2017-12-26)
android/app/src/main/assets/fonts/MaterialIcons.ttf (128180, 2017-12-26)
android/app/src/main/assets/fonts/Octicons.ttf (27428, 2017-12-26)
android/app/src/main/assets/fonts/SimpleLineIcons.ttf (54056, 2017-12-26)
android/app/src/main/assets/fonts/Zocial.ttf (25552, 2017-12-26)
android/app/src/main/eth-web.png (34328, 2017-12-26)
android/app/src/main/ic_launcher-web.png (11375, 2017-12-26)
android/app/src/main/java/ (0, 2017-12-26)
android/app/src/main/java/com/ (0, 2017-12-26)
android/app/src/main/java/com/hackerbuzz/ (0, 2017-12-26)
android/app/src/main/java/com/hackerbuzz/MainActivity.java (642, 2017-12-26)
android/app/src/main/java/com/hackerbuzz/MainApplication.java (1157, 2017-12-26)
android/app/src/main/java/com/hackerbuzz/RNTNativeAdManager.java (3505, 2017-12-26)
android/app/src/main/java/com/hackerbuzz/RNTNativeAdPackage.java (925, 2017-12-26)
android/app/src/main/res/ (0, 2017-12-26)
... ...

# HackerBuzz-ReactNative 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](https://github.com/HackerNews/API). ### Available for iOS on the [App Store](https://itunes.apple.com/app/hacker-buzz/id1292825792?mt=8) and Android on the [Google Play Store](https://play.google.com/store/apps/details?id=com.hackerbuzz) ## Setup 1. Clone the repo 2. `$ cd HackerBuzz-ReactNative` 3. Run either `$ yarn install` or `$ npm install` I used the [Facebook Audience Network](https://developers.facebook.com/products/audience-network/overview/) 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. ### iOS 1. Make sure that cocoapods are installed - `$ sudo gem install cocoapods` 2. `$ pod install` 3. Open `HackerBuzz.xcworkspace` 4. Modify `jsCodeLocation` to point to your IP address in `AppDelegate.m` 6. If you wish display ads, make sure that you create a placement within the Facebook Developer console or else they won't appear. - [Getting Started with the Facebook SDK](https://developers.facebook.com/docs/ios/getting-started/#settings) - [Getting Started with The Facebook Audience Network](https://developers.facebook.com/docs/audience-network) - Modify `kFacebookAdPlacementId` within `StoryListAd.m` 7. Run via XCode or `$ react-native run-ios` ### Android 1. Build the Android project 2. Add the Facebook SDK to the project [as per these instructions](https://developers.facebook.com/docs/android/getting-started/#sdk-project) 3. If you wish display ads, make sure that you create a placement within the Facebook Developer console or else they won't appear. - [Getting Started with the Facebook SDK](https://developers.facebook.com/docs/android/getting-started/#settings) - [Getting Started with The Facebook Audience Network](https://developers.facebook.com/docs/audience-network) - Modify `PLACEMENT_ID` within `RNTNativeAdManager.java` 4. Run via Android Studio ## Testing 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`. ### Current Test Coverage ## Scripts - `$ 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 linter ## Future Work **Settings** - [ ] Light Theme - [ ] Specify Font Size ## Contributing and License ### Issues Feel free to submit issues and enhancement requests. ### Contributing 1. Fork the repo on GitHub 2. Clone the project to your own machine 3. Commit changes to your own branch 4. Push your work back up to your fork 5. Submit a Pull request so that we can review your changes ### License Released under the MIT License. Check `LICENSE.md` for more info. ## Donate Any support would be highly appreciated! - **BTC**: 1LCurQW9j7rP7uJYki2uW8RGFDJPujdvEt - **ETH**: 0x6350726EfE25205ef3AE88f054a16d40091725B6 - **LTC**: LPvPMmqzBSDEjUmJcv2bXNUuc6cUWLnfoq

近期下载者

相关文件


收藏者