Yet another Github client written with react-native.

Overview

Github Feed


Yet another Github client written in react-native.

Includes ?


  1. Feed like web github home.
  2. Watched repos' notification.
  3. Trends.
  4. Personal.

How to run iOS

rm -rf node_modules

npm install

if error about 'EACCS' try

sudo chown -R $(whoami) "$HOME/.npm"

run the project in ios dir

(注意 如果要contribute cocoapods 建议使用0.35.0版本!)

in iOS dir

pod install

###接入流程

  1. 在index.ios.js(index.android.js)里写入Production的 deploymentKey,通常在componentDidMount里写入如下:
const codePush = require('react-native-code-push');

codePush.sync({
  updateDialog: true,
  installMode: codePush.InstallMode.IMMEDIATE,
  deploymentKey: dpkey,
});
  1. 修改xcode的edit schema 使得build app是 release模式的,在appDelegate里写入:
NSURL *jsCodeLocation;

#ifdef DEBUG
jsCodeLocation = [NSURL URLWithString:@"http://30.10.111.158:8081/index.ios.bundle?platform=ios&dev=true"];

jsCodeLocation = [NSURL URLWithString:[NSString stringWithFormat:@"http://localhost:8081/index.ios.bundle?platform=ios&dev=true"]];

#else
jsCodeLocation = [CodePush bundleURL];
#endif
  1. 随意乱改js文件
  2. 打包 所有js文件在一个其他位置,可以使用打包需要更新的资源
  3. 用code-push发布。

CodePush

注意在打包的目标地址先建立对应的目录比如这里的~/Desktop/release,要现在Desktop建立好。

打包到桌面本地资源(包括图片): react-native bundle --platform ios --entry-file index.ios.js --bundle-output ./ios/main.jsbundle --dev false

查看更新状态: code-push deployment ls GitFeed-iOS

发布更新: code-push release GitFeed-iOS ~/Desktop/release 1.0.0 -d Production

Comments
  • 编译错误

    编译错误

    ~/Documents/XcodeWP/GitHub/react-native-gitfeed/node_modules/react-native/packager ~ ┌────────────────────────────────────────────────────────────────────────────┐ │ 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 /Users/a000/Documents/XcodeWP/GitHub/react-native-gitfeed

    [8:34:02 PM] Building Dependency Graph [8:34:02 PM] Crawling File System [8:34:02 PM] Loading bundles layout [8:34:02 PM] Loading bundles layout (1ms) [Hot Module Replacement] Server listening on /hot

    React packager ready.

    [8:34:03 PM] Crawling File System (1571ms) [8:34:03 PM] Building in-memory fs for JavaScript [8:34:07 PM] Building in-memory fs for JavaScript (3977ms) [8:34:07 PM] Building in-memory fs for Assets [8:34:10 PM] Building in-memory fs for Assets (2248ms) [8:34:10 PM] Building Haste Map [8:34:12 PM] Building (deprecated) Asset Map [8:34:12 PM] Building (deprecated) Asset Map (808ms) [8:34:12 PM] Building Haste Map (2833ms) [8:34:12 PM] Building Dependency Graph (10635ms)

    release测试的时候 一直在第一个页面转菊花,登陆不上去

    opened by DexSinis 3
  • Trying error

    Trying error

    * Where:
    Build file 'E:\github-feed\android\app\build.gradle' line: 101
    
    * What went wrong:
    A problem occurred evaluating project ':app'.
    > Could not find property 'MYAPP_RELEASE_STORE_FILE' on SigningConfig_Decorated{name=release, storeF
    ile=null, storePassword=null, keyAlias=null, keyPassword=null, storeType=null}.
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more l
    og output.
    
    BUILD FAILED
    
    Total time: 17.395 secs
    Invalid APK file: app/build/outputs/apk/app-release.apk
    
    opened by zhiephie 3
  • 按照.md文件 配置了下  iOS端 debug下 还是会出错

    按照.md文件 配置了下 iOS端 debug下 还是会出错

    [tid:com.facebook.React.RCTWebSocketModuleQueue][RCTModuleMethod.m:453] RCTWebSocketModule.connect was called with 4 arguments, but expects 2

    2016-03-01 16:06:55.939 [warn][tid:com.facebook.React.JavaScript] View has no propType for native prop RCTView.maxHeight of native type CGFloat If you haven't changed this prop yourself, this usually means that your versions of the native code and JavaScript code are out of sync. Updating both should make this error go away. 这个是什么原因造成呢

    opened by 520xiaopohai 2
  • change prop avoid warning.

    change prop avoid warning.

    opened by shenqihui 1
  • Error[ld: library not found for -lDXPopover]

    Error[ld: library not found for -lDXPopover]

    Ld /Users/rplees/Library/Developer/Xcode/DerivedData/RN_CNNode-clwmizcownjrwggtmiuxqkaekzby/Build/Products/Debug-iphonesimulator/RN_CNNode.app/RN_CNNode normal x86_64
        cd /Users/rplees/work/git/react/react-native-gitfeed/ios
        export IPHONEOS_DEPLOYMENT_TARGET=8.0
        export PATH="/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode-beta.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
        /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk -L/Users/rplees/Library/Developer/Xcode/DerivedData/RN_CNNode-clwmizcownjrwggtmiuxqkaekzby/Build/Products/Debug-iphonesimulator -F/Users/rplees/Library/Developer/Xcode/DerivedData/RN_CNNode-clwmizcownjrwggtmiuxqkaekzby/Build/Products/Debug-iphonesimulator -F/Users/rplees/work/git/react/react-native-gitfeed/ios -filelist /Users/rplees/Library/Developer/Xcode/DerivedData/RN_CNNode-clwmizcownjrwggtmiuxqkaekzby/Build/Intermediates/RN_CNNode.build/Debug-iphonesimulator/GitFeed.build/Objects-normal/x86_64/RN_CNNode.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=8.0 -Xlinker -objc_abi_version -Xlinker 2 -ObjC -lDXPopover -fobjc-arc -fobjc-link-runtime /Users/rplees/Library/Developer/Xcode/DerivedData/RN_CNNode-clwmizcownjrwggtmiuxqkaekzby/Build/Products/Debug-iphonesimulator/libRNVectorIcons.a -lz /Users/rplees/Library/Developer/Xcode/DerivedData/RN_CNNode-clwmizcownjrwggtmiuxqkaekzby/Build/Products/Debug-iphonesimulator/libCodePush.a /Users/rplees/Library/Developer/Xcode/DerivedData/RN_CNNode-clwmizcownjrwggtmiuxqkaekzby/Build/Products/Debug-iphonesimulator/libReact.a /Users/rplees/Library/Developer/Xcode/DerivedData/RN_CNNode-clwmizcownjrwggtmiuxqkaekzby/Build/Products/Debug-iphonesimulator/libRCTActionSheet.a /Users/rplees/Library/Developer/Xcode/DerivedData/RN_CNNode-clwmizcownjrwggtmiuxqkaekzby/Build/Products/Debug-iphonesimulator/libRCTGeolocation.a /Users/rplees/Library/Developer/Xcode/DerivedData/RN_CNNode-clwmizcownjrwggtmiuxqkaekzby/Build/Products/Debug-iphonesimulator/libRCTImage.a /Users/rplees/Library/Developer/Xcode/DerivedData/RN_CNNode-clwmizcownjrwggtmiuxqkaekzby/Build/Products/Debug-iphonesimulator/libRCTLinking.a /Users/rplees/Library/Developer/Xcode/DerivedData/RN_CNNode-clwmizcownjrwggtmiuxqkaekzby/Build/Products/Debug-iphonesimulator/libRCTNetwork.a /Users/rplees/Library/Developer/Xcode/DerivedData/RN_CNNode-clwmizcownjrwggtmiuxqkaekzby/Build/Products/Debug-iphonesimulator/libRCTSettings.a /Users/rplees/Library/Developer/Xcode/DerivedData/RN_CNNode-clwmizcownjrwggtmiuxqkaekzby/Build/Products/Debug-iphonesimulator/libRCTText.a /Users/rplees/Library/Developer/Xcode/DerivedData/RN_CNNode-clwmizcownjrwggtmiuxqkaekzby/Build/Products/Debug-iphonesimulator/libRCTVibration.a /Users/rplees/Library/Developer/Xcode/DerivedData/RN_CNNode-clwmizcownjrwggtmiuxqkaekzby/Build/Products/Debug-iphonesimulator/libRCTWebSocket.a -lPods -Xlinker -dependency_info -Xlinker /Users/rplees/Library/Developer/Xcode/DerivedData/RN_CNNode-clwmizcownjrwggtmiuxqkaekzby/Build/Intermediates/RN_CNNode.build/Debug-iphonesimulator/GitFeed.build/Objects-normal/x86_64/RN_CNNode_dependency_info.dat -o /Users/rplees/Library/Developer/Xcode/DerivedData/RN_CNNode-clwmizcownjrwggtmiuxqkaekzby/Build/Products/Debug-iphonesimulator/RN_CNNode.app/RN_CNNode
    
    ld: library not found for -lDXPopover
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    

    gem:2.6.1 os:10.11.2

    opened by rplees 1
  • Unable to run react-native run-ios - Build failed

    Unable to run react-native run-ios - Build failed

    === BUILD TARGET GitFeed OF PROJECT RN_CNNode WITH CONFIGURATION Debug ===
    
    Check dependencies
    The file “Pods.debug.xcconfig” couldn’t be opened because there is no such file. (/Users/csekharveera/Sites/react-native-gitfeed/ios/Pods/Target Support Files/Pods/Pods.debug.xcconfig)
    warning: ignoring recursive header expansion for path '/**'
    
    PhaseScriptExecution Check\ Pods\ Manifest.lock build/Build/Intermediates/RN_CNNode.build/Debug-iphonesimulator/GitFeed.build/Script-C39D3F5BE3E28069BA634A83.sh
        cd /Users/csekharveera/Sites/react-native-gitfeed/ios
        /bin/sh -c /Users/csekharveera/Sites/react-native-gitfeed/ios/build/Build/Intermediates/RN_CNNode.build/Debug-iphonesimulator/GitFeed.build/Script-C39D3F5BE3E28069BA634A83.sh
    diff: /../Podfile.lock: No such file or directory
    diff: /Manifest.lock: No such file or directory
    error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
    
    ** BUILD FAILED **
    
    
    The following build commands failed:
        PhaseScriptExecution Check\ Pods\ Manifest.lock build/Build/Intermediates/RN_CNNode.build/Debug-iphonesimulator/GitFeed.build/Script-C39D3F5BE3E28069BA634A83.sh
    (1 failure)
    Installing build/Build/Products/Debug-iphonesimulator/RN_CNNode.app
    An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22):
    Failed to install the requested application
    The bundle identifier of the application could not be determined.
    Ensure that the application's Info.plist contains a value for CFBundleIdentifier.
    Print: Entry, ":CFBundleIdentifier", Does Not Exist
    /Users/csekharveera/Sites/react-native-gitfeed/node_modules/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/RN_CNNode.app/Info.plist
    Print: Entry, ":CFBundleIdentifier", Does Not Exist
    
        at checkExecSyncError (child_process.js:464:13)
        at Object.execFileSync (child_process.js:484:13)
        at _runIOS (runIOS.js:77:34)
        at runIOS.js:24:5
        at tryCallTwo (/Users/csekharveera/Sites/react-native-gitfeed/node_modules/react-native/node_modules/promise/lib/core.js:45:5)
        at doResolve (/Users/csekharveera/Sites/react-native-gitfeed/node_modules/react-native/node_modules/promise/lib/core.js:200:13)
        at new Promise (/Users/csekharveera/Sites/react-native-gitfeed/node_modules/react-native/node_modules/promise/lib/core.js:66:3)
        at Array.runIOS (runIOS.js:23:10)
        at Object.run (/Users/csekharveera/Sites/react-native-gitfeed/node_modules/react-native/local-cli/cli.js:86:13)
        at Object.<anonymous> (/Users/csekharveera/.nvm/versions/node/v4.2.6/lib/node_modules/react-native-cli/index.js:88:7)
    
    opened by veeracs 1
  • -[RCTRootContentView reactTag]: unrecognized selector

    -[RCTRootContentView reactTag]: unrecognized selector

    使用Debug或者Release运行都报错: '-[RCTRootContentView reactTag]: unrecognized selector sent to instance 0x7fddea621380'。

    2016-06-19 08:25:03.518 RN_CNNode[6362:2908925] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[RCTRootContentView reactTag]: unrecognized selector sent to instance 0x7fddea621380' *** First throw call stack: ( 0 CoreFoundation 0x000000010e5b3d85 exceptionPreprocess + 165 1 libobjc.A.dylib 0x000000010e027deb objc_exception_throw + 48 2 CoreFoundation 0x000000010e5bcd3d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205 3 CoreFoundation 0x000000010e502cfa __forwarding + 970 4 CoreFoundation 0x000000010e5028a8 _CF_forwarding_prep_0 + 120 5 RN_CNNode 0x000000010da3706e -[RCTRootContentView setFrame:] + 102 6 UIKit 0x000000010fba3c10 UIViewCommonInitWithFrame + 1250 7 UIKit 0x000000010fba36d4 -[UIView initWithFrame:] + 125 8 RN_CNNode 0x000000010da525e1 -[RCTView initWithFrame:] + 75 9 RN_CNNode 0x000000010da36dc0 -[RCTRootContentView initWithFrame:bridge:] + 96 10 RN_CNNode 0x000000010da3647e -[RCTRootView bundleFinishedLoading:] + 174 11 RN_CNNode 0x000000010da363ba -[RCTRootView javaScriptDidLoad:] + 108 12 CoreFoundation 0x000000010e57dc8c CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 12 13 CoreFoundation 0x000000010e57d9cb _CFXRegistrationPost + 427 14 CoreFoundation 0x000000010e57d732 ___CFXNotificationPost_block_invoke + 50 15 CoreFoundation 0x000000010e5c61e2 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1986 16 CoreFoundation 0x000000010e475679 _CFXNotificationPost + 633 17 Foundation 0x000000010dbb3cd9 -[NSNotificationCenter postNotificationName:object:userInfo:] + 66 18 RN_CNNode 0x000000010da4a914 __38-[RCTBatchedBridge executeSourceCode:]_block_invoke.255 + 195 19 libdispatch.dylib 0x0000000111157d9d _dispatch_call_block_and_release + 12 20 libdispatch.dylib 0x00000001111783eb _dispatch_client_callout + 8 21 libdispatch.dylib 0x00000001111601ef _dispatch_main_queue_callback_4CF + 1738 22 CoreFoundation 0x000000010e50d0f9 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9 23 CoreFoundation 0x000000010e4ceb99 __CFRunLoopRun + 2073 24 CoreFoundation 0x000000010e4ce0f8 CFRunLoopRunSpecific + 488 25 GraphicsServices 0x00000001135f8ad2 GSEventRunModal + 161 26 UIKit 0x000000010fb10f09 UIApplicationMain + 171 27 RN_CNNode 0x000000010da16af8 main + 80 28 libdyld.dylib 0x00000001111ac92d start + 1 29 ??? 0x0000000000000001 0x0 + 1 )

    opened by yonglam 0
  • fetchPromise()返回值?

    fetchPromise()返回值?

    const reloadPromise = GHService.fetchPromise(path); reloadPromise .then(value => {……}) 我看您的value返回值里 Response _bodyInit返回的是数组? 我这边打印出来是Blob?这是什么原因?

    opened by jeeluo 0
  • `Image` has no propType for native prop `RCTImageView.overlayColor` of native type `number`

    `Image` has no propType for native prop `RCTImageView.overlayColor` of native type `number`

    04-12 11:19:29.301 13803-15881/com.gitfeed E/ReactNativeJS: Image has no propType for native prop RCTImageView.overlayColor of native type number 04-12 11:19:29.331 13803-15882/com.gitfeed E/unknown:React: Exception in native call from JS com.facebook.react.bridge.NativeArgumentsParseException: RCTSourceCode.getScriptText got 4 arguments, expected 2 at com.facebook.react.bridge.BaseJavaModule$JavaMethod.invoke(BaseJavaModule.java:227) at com.facebook.react.bridge.NativeModuleRegistry$ModuleDefinition.call(NativeModuleRegistry.java:158) at com.facebook.react.bridge.NativeModuleRegistry.call(NativeModuleRegistry.java:58) at com.facebook.react.bridge.CatalystInstanceImpl$NativeModulesReactCallback.call(CatalystInstanceImpl.java:428) at com.facebook.react.bridge.queue.NativeRunnableDeprecated.run(Native Method) at android.os.Handler.handleCallback(Handler.java:733) 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:136) at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:184) at java.lang.Thread.run(Thread.java:841) 04-12 11:19:29.361 13803-15881/com.gitfeed E/ReactNativeJS: Module AppRegistry is not a registered callable module. 04-12 11:19:29.561 13803-13803/com.gitfeed W/unknown:React: Calling JS function after bridge has been destroyed. 04-12 11:20:25.621 13803-13803/com.gitfeed A/libc: Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 13803 (com.gitfeed)

    opened by hyvenzhu 4
Owner
David Tse
Moving fast
David Tse
A Hacker News client written in React Native

React Native Hacker News A modern cross-platform HackerNews client built on React Native Features The app currently has the following functionality: H

George Jose 65 Aug 24, 2022
Unofficial Gitter.im (chat for GitHub) client for iOS and Android. [build with react-native]

GitterMobile Unofficial Gitter.im client for iOS and Android. Download Go to the releases page to download the latest available apk. App preview Featu

Apiko (formerly JSSolutions) 603 Nov 19, 2022
Exposure notification client application / Application client de notification d'exposition

La version française suit. COVID Alert Mobile App Available for iOS and Android: Pour iOS et Android: Adapted from https://github.com/CovidShield/mobi

Canadian Digital Service – Service numérique canadien 901 Nov 21, 2022
A simply readable Hacker News app for iOS & Android, built with React Native. V2 now over here https://github.com/cheeaun/hackerweb-native-2

HackerWeb A simply readable Hacker News app for iOS and Android. Read about the story here: Building HackerWeb for iOS. Preview iOS Android Developmen

Lim Chee Aun 178 Nov 21, 2022
HiApp written in react-native.

react-native-hiapp HiApp written in react-native. Previews Mirrors: 秒拍 Requirements React Native 0.61.1 (follow iOS and Android guides) Setup VSCode e

BelinChung 640 Nov 21, 2022
a sudoku game written in React Native

react-native-sudoku a simple sudoku game written in React Native, with only one level for masters I've made a record in 03:43 , I'd like to see if som

Neo Nie 627 Nov 24, 2022
Cross-platform React Native application written in ClojureScript

What is Luno? Luno is a demo mobile application written in ClojureScript. It uses React Native, Reagent, Re-natal and a couple of React Native librari

Alexander Pantiukhov 284 Oct 29, 2022
iOS's Stocks App clone written in React Native for demo purpose (available both iOS and Android).

FinanceReactNative iOS's Stocks App clone written in React Native for demo purpose (available both iOS and Android). Data is pulled from Yahoo Finance

kf 2k Nov 25, 2022
A property finder application written using React Native

React Native PropertyFinder App This repository accompanies the tutorial I published on Ray Wenderlich's website, which describes the process of build

Colin Eberhardt 276 Aug 14, 2022
A simple To Do application written in React Native

Example To Do List application in react-native Requirements, install as needed: React Native: $ npm i -g react-native-cli watchman: $ brew install wa

Joe Maddalone 177 Sep 24, 2022
QRCode Reader and Generator - simple app written on React Native.

React-Native-Qrcode-App QRCode Reader and Generator - simple app written on React Native. Demo Android Screenshots Libraries in this project Shoutem U

Insider Development 112 Nov 24, 2022
A working Chat written in React Native and using Firebase

Chat App with Firebase and React Native

null 3 Feb 1, 2022
Dérive - an android mobile app to control your finances written in React Native with Expo

Dérive Dérive - an android mobile app to control your finances written in React Native with Expo. The app allows you to add bank cards, monitor their

Saveliy Andronov 27 Nov 10, 2022
An unofficial Pixiv app client for Android and iOS, built with React Native.

PxView Unofficial Pixiv app client for Android and iOS, built with React Native. Screenshots Features Bottom navigation Ranking Enjoy the latest popul

null 643 Nov 30, 2022
:iphone: An example React Native project for client login authentication

react-native-login What is it? react-native-login is an example React Native project showing how to use a WebView and react-native-cookies to login to

Ryan McDermott 457 Nov 9, 2022
An unofficial NearbyLive app client for Android and iOS, built in React Native

Basic Overview An iOS and Android client for http://wnmlive.com/ written in React Native with Redux. Screenshots Existing functionalities Authenticati

null 90 Nov 21, 2022
A Third-party Hupu App (http://bbs.hupu.com/) client implemented using React Native (Android and iOS).

React-Native-HupuJRS 中文文档点此 This is a third-party client for the React Native version of Hupu Forum, which is compatible with Android/iOS platform and

MelonRice 27 Feb 14, 2022
Bitcoin thin client for iOS & Android. Built with React Native

Bitcoin thin client for iOS & Android. Built with React Native

null 1.8k Dec 5, 2022