Giter VIP home page Giter VIP logo

react-native-gitfeed's Introduction

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

react-native-gitfeed's People

Contributors

shenqihui avatar xiekw2010 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

react-native-gitfeed's Issues

Crash when click "Give some advices" Button

I am using apk you released.
This is the log I captured.

FATAL EXCEPTION: mqt_native_modules
   Process: com.gitfeed, PID: 31650
   com.facebook.react.modules.core.JavascriptException: value
       index.android.bundle:17:19761
   onRate
       index.android.bundle:22:25607
   touchableHandlePress
       index.android.bundle:15:17683
   _performSideEffectsForTransition
       index.android.bundle:9:20282
   _receiveSignal
       index.android.bundle:9:18849
   touchableHandleResponderRelease
       index.android.bundle:9:16449
   o
       index.android.bundle:5:26040
   a
       index.android.bundle:5:45391
   l
       index.android.bundle:5:45624
   f
       index.android.bundle:5:35820
   g
       index.android.bundle:5:35923
   o
       index.android.bundle:5:27138
   processEventQueue
       index.android.bundle:5:37238
   o
       index.android.bundle:6:23638
   handleTopLevel
       index.android.bundle:6:23741
   _receiveRootNodeIDEvent
       index.android.bundle:6:45557
   receiveTouches
       index.android.bundle:6:45939
   value
       index.android.bundle:2:39019
   <unknown>
       index.android.bundle:2:37238
   _
       index.android.bundle:2:24042
   value
       index.android.bundle:2:37210

       at com.facebook.react.modules.core.ExceptionsManagerModule.showOrThrowError(ExceptionsManagerModule.java:68)
       at com.facebook.react.modules.core.ExceptionsManagerModule.reportFatalException(ExceptionsManagerModule.java:56)
       at java.lang.reflect.Method.invoke(Native Method)
       at java.lang.reflect.Method.invoke(Method.java:372)
       at com.facebook.react.bridge.BaseJavaModule$JavaMethod.invoke(BaseJavaModule.java:249)
       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:431)
       at com.facebook.react.bridge.queue.NativeRunnableDeprecated.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:135)
       at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:185)
       at java.lang.Thread.run(Thread.java:818)

react-native run-android 报错

gitfeed

npm install后执行react-native start正常启动服务

但是执行react-native run-android报错(自建的react native项目正常)

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

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

`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)

按照.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.
这个是什么原因造成呢

编译错误

~/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测试的时候 一直在第一个页面转菊花,登陆不上去

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)

Typo in Feed

It should be Starred instead of Started. Or is it a Easter egg lol ?

fetchPromise()返回值?

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

-[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
)

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.