Git Product home page Git Product logo

hackernews-react-native's Introduction

DEPRECATED FOR NOW - uses an old version of react native

See other react native example apps here: https://expo.io/featured

HackerNews-React-Native

Hacker News reader for iOS and Android, made with React-Native.

DEMO

App Store Button Play Store Button

iOS App Preview

iOS Preview Gif 1 iOS Preview Gif 2 iOS Preview Gif 3

Android App Preview

Android Preview Gif 1 Android Preview Gif 2

Features/Components

  • Uses React Native 0.20
  • Pull down to Refresh listview
  • Pagination listview
  • Comment & Sub Comments
  • WebView to view source pages

Installation

Once you have downloaded or cloned this repository, run npm install inside the directory.

Usage

hackernews-react-native's People

Contributors

allting avatar brentvatne avatar bryant1410 avatar grigio avatar hantuzun avatar herbertdai avatar isimar avatar ivanph avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hackernews-react-native's Issues

this._nativeModule.addListener is not a function

I fixed the "xcodebuild: error: The project named "HN Reader" does not contain a scheme named "HN Reader"." issue, but then I got:
this._nativeModule.addListener is not a function. (In 'this._nativeModule.addListenter(eventType)','this._nativeModule.addListener' is undefined)

Just FYI

A small mistake: redefine property textAlign

There is a problem in App.Views.Post.Elements.Comment.index.js.You define textAlign twice ,In the last style "showRepliesButtonText".
And Thanks your awesome project to learn react-native.

Could not find property 'MYAPP_RELEASE_STORE_PASSWORD'

  • What went wrong:
    A problem occurred evaluating project ':app'.

    Could not find property 'MYAPP_RELEASE_STORE_PASSWORD' on SigningConfig_Decorated{name=release, storeFile=/home/carlos/react-native/HackerNews-React-Native/android/app/hn-reader_android.keystore, storePassword=null, keyAlias=null, keyPassword=null, storeType=/home/carlos/react-native/HackerNews-React-Native/android/app/hn-reader_android.keystore}.

Build Failed issue in Deco IDE

Hi,

First of all, thanks for making this project open source for our learnings. I'm new bee in React-Native.

I'm trying to create 'build native build' for ios app of this in Deco IDE. And, I'm facing this error -

** BUILD FAILED **

The following build commands failed:
CompileC /Users/DAMAGE/Documents/React\ Native\ Projects/HackerNews-React-Native-master/ios/build/Build/Intermediates/RCTWebSocket.build/Debug-iphonesimulator/RCTWebSocket.build/Objects-normal/x86_64/RCTSRWebSocket.o RCTSRWebSocket.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

can I live without exponent

so far, awesome code to learn and use however, if I can live without exponent , I really do not understand it how it works so removed from index.android.js
import {
Constants,
} from 'exponent';

and related bar height styles from the file.

Content doesn't update

Hi-

I was playing around with this app, and I wanted to promote it on this gallery that @ide and I are working on (http://exp.host/). I got everything working, but the content doesn't update -- all the stories are from a few weeks ago.

I think the issue is with the Kimono Labs endpoint you're using. When I load the URL https://www.kimonolabs.com/api/d3rpj7om , part of the response is ..."frequency":"Manual Crawl","... which made me think it might be configured in a way that you have to manually run the updates?

Is there any way we could fix this up so that the content updates every 15 minutes or something like that?

Could not identify launch activity

i select launch:default activity ,then click run .
throw an error :
“Could not identify launch activity: Default Activity not found
Error while Launching activity”
i can't figure out what wrong with it . my operate cause this ? IDE:Android studio 2.0
ask for help SOS!!!(by the way this is my first time run a react native project on windows)

CFBundleIdentifier does not exist

Error: Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/HN Reader.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

Could not find property 'MYAPP_RELEASE_STORE_PASSWORD'

Can't get to build due to this particular error - how do I fix this?

FAILURE: Build failed with an exception.

  • Where:
    Build file '/home/devyn/Documents/KeaganProjects/HackerNews-React-Native/android/app/build.gradle' line: 95

  • What went wrong:
    A problem occurred evaluating project ':app'.

Could not find property 'MYAPP_RELEASE_STORE_PASSWORD' on SigningConfig_Decorated{name=release, storeFile=/home/devyn/Documents/KeaganProjects/HackerNews-React-Native/android/app/hn-reader_android.keystore, storePassword=null, keyAlias=null, keyPassword=null, storeType=/home/devyn/Documents/KeaganProjects/HackerNews-React-Native/android/app/hn-reader_android.keystore}.

Android Links

Hi,
A blank page displays when I press source link from index.android.js. I verifed the same behavior in a separate app.
Thanks,
John

[Android] JS Bundle fails to load with an error.

Hi,

I ran the following commands-

npm install
react-native run-anroid

The application gets deployed on my device, but, it says the server has to be running so that the app gets the JS Bundle.

I ran-

react-native start

But, it throws up the following error-

root@purvotara:~/ReactJS/native/HackerNews-React-Native# react-native start
 ┌────────────────────────────────────────────────────────────────────────────┐ 
 │  Running packager on port 8081.                                            │ 
 │                                                                            │ 
 │  Keep this packager running while developing on any JS projects. Feel      │ 
 │  free to close this tab and run your own packager instance if you          │ 
 │  prefer.                                                                   │ 
 │                                                                            │ 
 │  https://github.com/facebook/react-native                                  │ 
 │                                                                            │ 
 └────────────────────────────────────────────────────────────────────────────┘ 
Looking for JS files in
   /home/bozzmob/ReactJS/native/HackerNews-React-Native 


React packager ready.

 ERROR  watch /home/bozzmob/ReactJS/native/HackerNews-React-Native ENOSPC
{"code":"ENOSPC","errno":"ENOSPC","syscall":"watch /home/bozzmob/ReactJS/native/HackerNews-React-Native","filename":"/home/bozzmob/ReactJS/native/HackerNews-React-Native"}
Error: watch /home/bozzmob/ReactJS/native/HackerNews-React-Native ENOSPC
    at exports._errnoException (util.js:874:11)
    at FSWatcher.start (fs.js:1239:19)
    at Object.fs.watch (fs.js:1267:11)
    at NodeWatcher.watchdir (/home/bozzmob/ReactJS/native/HackerNews-React-Native/node_modules/react-native/node_modules/sane/src/node_watcher.js:144:20)
    at new NodeWatcher (/home/bozzmob/ReactJS/native/HackerNews-React-Native/node_modules/react-native/node_modules/sane/src/node_watcher.js:45:8)
    at /home/bozzmob/ReactJS/native/HackerNews-React-Native/node_modules/react-native/packager/react-packager/src/FileWatcher/index.js:95:21
    at tryCallOne (/home/bozzmob/ReactJS/native/HackerNews-React-Native/node_modules/react-native/node_modules/promise/lib/core.js:37:12)
    at /home/bozzmob/ReactJS/native/HackerNews-React-Native/node_modules/react-native/node_modules/promise/lib/core.js:103:15
    at flush (/home/bozzmob/ReactJS/native/HackerNews-React-Native/node_modules/react-native/node_modules/promise/node_modules/asap/raw.js:50:29)
    at doNTCallback0 (node.js:417:9)

What am I doing wrong?

Unable to launch app. Error listed below:

Found Xcode project HN Reader.xcodeproj
Launching iPhone 6 (9.3)...
Building using "xcodebuild -project HN Reader.xcodeproj -scheme HN Reader -destination id=76AF770D-177B-4666-B40D-8D245F04D0F6 -derivedDataPath build"
User defaults from command line:
IDEDerivedDataPathOverride = /Users/macuser/Documents/github/Projects/Mobile/clonedProjs/HackerNews-React-Native/ios/build
xcodebuild: error: The project named "HN Reader" does not contain a scheme named "HN Reader". The "-list" option can be used to find the names of the schemes in the project.
Installing build/Build/Products/Debug-iphonesimulator/HN Reader.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist
/Users/macuser/Documents/github/Projects/Mobile/clonedProjs/HackerNews-React-Native/node_modules/promise/lib/done.js:10
throw err;
^
Error: Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/HN Reader.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
at checkExecSyncError (child_process.js:469:13)
at Object.execFileSync (child_process.js:489:13)
at _runIOS (runIOS.js:77:34)
at runIOS.js:24:5
at tryCallTwo (/Users/macuser/Documents/github/Projects/Mobile/clonedProjs/HackerNews-React-Native/node_modules/promise/lib/core.js:45:5)
at doResolve (/Users/macuser/Documents/github/Projects/Mobile/clonedProjs/HackerNews-React-Native/node_modules/promise/lib/core.js:200:13)
at new Promise (/Users/macuser/Documents/github/Projects/Mobile/clonedProjs/HackerNews-React-Native/node_modules/promise/lib/core.js:66:3)
at Array.runIOS (runIOS.js:23:10)
at Object.run (/Users/macuser/Documents/github/Projects/Mobile/clonedProjs/HackerNews-React-Native/node_modules/react-native/local-cli/cli.js:86:13)
at Object. (/Users/macuser/.nvm/versions/node/v5.10.0/lib/node_modules/react-native-cli/index.js:88:7)

android version get a exception when invoke js

that's the log:

09-24 14:49:33.156    1662-1662/com.hackernews E/ViewRootImpl﹕ sendUserActionEvent() mView == null
09-24 14:49:33.196    1662-1798/com.hackernews W/ReactNativeJS﹕ 'Error: undefined is not an object (evaluating \'RCTAsyncStorage.multiMerge\')\n stack: \n  <unknown>                       index.android.bun…:45700\n  require                         index.android.bun…:254\n  <unknown>                       index.android.bun…:45067\n  require                         index.android.bun…:254\n  <unknown>                       index.android.bun…:44019\n  require                         index.android.bun…:254\n  <unknown>                       index.android.bun…:43922\n  require                         index.android.bun…:254\n  require                         index.android.bun…:200\n  __callFunction                  index.android.bun…:5612\n  <unknown>                       index.android.bun…:5559\n  guard                           index.android.bun…:5502\n  callFunctionReturnFlushedQueue  index.android.bun…:5559\n URL: http://192.168.31.8:8081/index.android.bundle?platform=android\n line: 45700\n message: undefined is not an object (evaluating \'RCTAsyncStorage.multiMerge\')'
09-24 14:49:33.196    1662-1798/com.hackernews W/ReactNativeJS﹕ 'Error: undefined is not an object (evaluating \'module[method]\')\n stack: \n  __callFunction                  index.android.bun…:5613\n  <unknown>                       index.android.bun…:5559\n  guard                           index.android.bun…:5502\n  callFunctionReturnFlushedQueue  index.android.bun…:5559\n URL: http://192.168.31.8:8081/index.android.bundle?platform=android\n line: 5613\n message: undefined is not an object (evaluating \'module[method]\')'
09-24 14:49:33.196    1662-1806/com.hackernews E/unknown:React﹕ Exception in native call from JS
    com.facebook.react.bridge.NativeArgumentsParseException: RCTNetworking.sendRequest got 2 arguments, expected 6
            at com.facebook.react.bridge.BaseJavaModule$JavaMethod.invoke(BaseJavaModule.java:62)
            at com.facebook.react.bridge.NativeModuleRegistry$ModuleDefinition.call(NativeModuleRegistry.java:126)
            at com.facebook.react.bridge.NativeModuleRegistry.call(NativeModuleRegistry.java:64)
            at com.facebook.react.bridge.CatalystInstance$NativeModulesReactCallback.call(CatalystInstance.java:326)
            at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
            at android.os.Handler.handleCallback(Handler.java:739)
            at android.os.Handler.dispatchMessage(Handler.java:95)
            at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31)
            at android.os.Looper.loop(Looper.java:145)
            at com.facebook.react.bridge.queue.MessageQueueThread$1.run(MessageQueueThread.java:137)
            at java.lang.Thread.run(Thread.java:818)

Project License

Amazing work.

Could not find a license. Would you be kind to specify that?

Thanks.

Software generators

What does it take to make surveys for money into one software that I can run and it capitalizes all day

Is this in the appstore?

It'd be great if this was in the appstore so we could try it out. It's hard to find what react native apps are in the appstore and this one looks like a good one. :)

Parse HTML in news content

Hi,

Thanks for the great work on this HN RN apps :)

I look at your code to know how you deal with one problem i faced with RN, and i finally see that you didn't face it right now : If you look at the "Dot matrix printer playing "eye of the tiger" [video]" news, you will see html <pre><code> in the middle of the content.

Did you have any idea, to transform those html code, in <Text style='pre'> or in other react componants like a <CodeHighlight> for example ? This is not just string replacement but something more difficult by replacing some part of the text by React Components.

It's difficult to explain why the problem seems difficult to resolve, but i hope you will understand me.

Thanks for sharing :)

Upgrading to React Native 0.16

@ivanph I'm currently trying to upgrade the app with react native 0.16 under the react-native-0_16 branch, could you confirm if everything is fine with android

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.