这是一个用来查看GitHub最受欢迎与最热项目的App,它基于React Native支持Android和iOS双平台。#适配RN最新版在这里☞#

Last update: Aug 4, 2022

GitHub Popular

Download PRs Welcome GitHubPopular release language English

这是一个用来查看GitHub最受欢迎与最热项目的App,它基于React Native支持Android和iOS双平台。#最新版React Native+Redux打造点这里☞#

目录

能够Get到的技术

能够Get到的技术

功能与特性

  • 支持订阅 50 多种编程语言;
  • 支持添加/删除编程语言,并支持自定义它们的排序;
  • 支持收藏喜欢的项目;
  • 支持多种颜色主题自由切换;
  • 支持搜索,并自持自定义订阅关键字;
  • 支持分享,轻松将自己喜欢的项目分享给好友;

下载安装

App Store 百度手机助手 应用宝

预览图

GitHub Popular

GitHub Popular

GitHub Popular

运行调试

  1. 准备React Native环境,可参考: Requirements
  2. Clone GitHubPopular,然后终端进入项目根目录。
  3. 终端运行 npm i
  4. 然后运行 react-native run-iosreact-native run-android
  5. Ok,有问题可以提issues出来

GitHub

https://github.com/crazycodeboy/GitHubPopular
Comments
  • 1. 运行 react-native run-android 报错

    Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configuration failure takes precedence. java.lang.IllegalStateException: buildToolsVersion is not specified. at com.google.common.base.Preconditions.checkState(Preconditions.java:173) at com.android.build.gradle.BasePlugin.createAndroidTasks(BasePlugin.java:645) at com.android.build.gradle.BasePlugin$10.call(BasePlugin.java:608) at com.android.build.gradle.BasePlugin$10.call(BasePlugin.java:605) at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:156) at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:120) at com.android.build.gradle.BasePlugin.lambda$createTasks$1(BasePlugin.java:603) at com.android.build.gradle.BasePlugin$$Lambda$23/410033330.execute(Unknown Source) at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:93) at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:82) at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:44) at org.gradle.internal.event.BroadcastDispatch.dispatch(BroadcastDispatch.java:79) at org.gradle.internal.event.BroadcastDispatch.dispatch(BroadcastDispatch.java:30) at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93) at com.sun.proxy.$Proxy12.afterEvaluate(Unknown Source) at org.gradle.configuration.project.LifecycleProjectEvaluator.notifyAfterEvaluate(LifecycleProjectEvaluator.java:67) at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:61) at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:540) at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:93) at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:47) at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:35) at org.gradle.initialization.DefaultGradleLauncher$2.run(DefaultGradleLauncher.java:124) at org.gradle.internal.Factories$1.create(Factories.java:22) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:53) at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:121) at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:32) at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:98) at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:92) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:63) at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:92) at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:83) at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:99) at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28) at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:48) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:30) at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:81) at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:46) at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:51) at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:28) at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:43) at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:173) at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:239) at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:212) at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35) at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24) at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33) at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22) at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:205) at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169) at org.gradle.launcher.Main.doAction(Main.java:33) at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:55) at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:36) at org.gradle.launcher.GradleMain.main(GradleMain.java:23) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:30) at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:127) at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)

    FAILURE: Build failed with an exception.

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

      A problem occurred starting process 'command 'security''

    • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

    BUILD FAILED

    Reviewed by hq001a at 2016-10-25 02:49
  • 2. 运行`react-native run-ios`报错

    提示如下

    ** BUILD FAILED **
    
    
    The following build commands failed:
        CompileC /Users/Kai/Code/GitHub/GitHubPopular/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)
    Installing build/Build/Products/Debug-iphonesimulator/GitHubPopular.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
    
    Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/GitHubPopular.app/Info.plist
    Print: Entry, ":CFBundleIdentifier", Does Not Exist
    
    ➜  GitHubPopular git:(master) ✗ react-native -v
    react-native-cli: 1.0.0
    react-native: 0.32.0
    
    Reviewed by Riokai at 2016-10-20 04:42
  • 3. 咨询个新手问题,在react-native run-android的时候,出现下面的错误是什么问题?谢谢。

    FAILURE: Build failed with an exception.

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

      A problem occurred starting process 'command 'security''

    • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

    BUILD FAILED

    Total time: 13.592 secs Could not install the app on the device, read the error above for details. Make sure you have an Android emulator running or a device connected and have set up your Android development environment: https://facebook.github.io/react-native/docs/android-setup.html

    Reviewed by zhanghecool at 2016-10-30 07:25
  • 4. 可能是RN版本的问题?

    错误信息如下:

    /GitHubPopular/node_modules/react-native/Libraries/WebSocket/RCTSRWebSocket.m:494:3: error:
    ignoring return value of function declared with 'warn_unused_result' attribute [-Werror,-Wunused-result]
      SecRandomCopyBytes(kSecRandomDefault, keyBytes.length, keyBytes.mutableBytes);
      ^~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /GitHubPopular/node_modules/react-native/Libraries/WebSocket/RCTSRWebSocket.m:1334:5: error:
          ignoring return value of function declared with 'warn_unused_result' attribute [-Werror,-Wunused-result]
        SecRandomCopyBytes(kSecRandomDefault, sizeof(uint32_t), (uint8_t *)mask_key);
        ^~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    2 errors generated.
    
    ** BUILD FAILED **
    
    
    The following build commands failed:
    	CompileC /GitHubPopular/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)
    Installing build/Build/Products/Debug-iphonesimulator/GitHubPopular.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
    
    Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/GitHubPopular.app/Info.plist
    Print: Entry, ":CFBundleIdentifier", Does Not Exist
    

    本地环境:

    react-native-cli: 2.0.1
    react-native: 0.32.0
    
    Reviewed by sh0rt2020 at 2017-04-06 02:05
  • 5. react-native run-ios

    ** BUILD FAILED **
    
    
    The following build commands failed:
    	CompileC /Users/anla/coding/fe/react-native/demo/GitHubPopular/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)
    Installing build/Build/Products/Debug-iphonesimulator/GitHubPopular.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
    
    Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/GitHubPopular.app/Info.plist
    Print: Entry, ":CFBundleIdentifier", Does Not Exist
    
    Reviewed by zanjs at 2016-11-10 08:40
  • 6. iOS运行编译的时候报错

    您好,在执行react-native run-ios后,提示BUILD FAILED,具体信息如下: ./ReactNative/GitHubPopular/node_modules/react-native/Libraries/WebSocket/RCTSRWebSocket.m:494:3: error: ignoring return value of function declared with warn_unused_result attribute [-Werror,-Wunused-result] SecRandomCopyBytes(kSecRandomDefault, keyBytes.length, keyBytes.mutableBytes); ^~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./ReactNative/GitHubPopular/node_modules/react-native/Libraries/WebSocket/RCTSRWebSocket.m:1334:5: error: ignoring return value of function declared with warn_unused_result attribute [-Werror,-Wunused-result] SecRandomCopyBytes(kSecRandomDefault, sizeof(uint32_t), (uint8_t *)mask_key); ^~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 errors generated._ 求指教~

    Reviewed by Feng999 at 2016-11-02 07:52
  • 7. watch EPERM

    ERROR watch F:\360Downloads\GitHubPopular-master\GitHubPopular-master\android\app\build\intermediates\exploded-aar\GitHubPopular\react-native-splash-screen\unspecified\jars EPERM {"code":"EPERM","errno":"EPERM","syscall":"watch F:\360Downloads\GitHubPopular-master\GitHubPopular-master\android\app\build\intermediates\exploded-aar\GitHubPopular\react-native-splash-screen\unspecified\jars","filename":"F:\360Downloads\GitHubPopular-master\GitHubPopular-master\android\app\build\intermediates\exploded-aar\GitHubPopular\react-native-splash-screen\unspecified\jars"} Error: watch F:\360Downloads\GitHubPopular-master\GitHubPopular-master\android\app\build\intermediates\exploded-aar\GitHubPopular\react-native-splash-screen\unspecified\jars EPERM at exports._errnoException (util.js:953:11) at FSWatcher.start (fs.js:1423:19) at Object.fs.watch (fs.js:1450:11) at NodeWatcher.watchdir (F:\360Downloads\GitHubPopular-master\GitHubPopular-master\node_modules\sane\src\node_watcher.js:144:20) at Walker. (F:\360Downloads\GitHubPopular-master\GitHubPopular-master\node_modules\sane\src\node_watcher.js:353:12) at emitTwo (events.js:106:13) at Walker.emit (events.js:191:7) at F:\360Downloads\GitHubPopular-master\GitHubPopular-master\node_modules\walker\lib\walker.js:69:16 at go$readdir$cb (F:\360Downloads\GitHubPopular-master\GitHubPopular-master\node_modules\graceful-fs\graceful-fs.js:149:14) at go$readdir$cb (F:\360Downloads\GitHubPopular-master\GitHubPopular-master\node_modules\graceful-fs\graceful-fs.js:149:14)

    Reviewed by hq001a at 2016-10-26 03:18
  • 8. 运行项目后报错,已经adb devices 确认了有设备在线。

    FAILURE: Build failed with an exception.

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

      A problem occurred starting process 'command 'security''

    • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

    BUILD FAILED

    Total time: 4.288 secs Could not install the app on the device, read the error above for details. Make sure you have an Android emulator running or a device connected and have set up your Android development environment: https://facebook.github.io/react-native/docs/android-setup.html events.js:160 throw er; // Unhandled 'error' event ^

    Error: spawn cmd.exe ENOENT at exports._errnoException (util.js:1026:11) at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32) at onErrorNT (internal/child_process.js:359:16) at _combinedTickCallback (internal/process/next_tick.js:74:11) at process._tickCallback (internal/process/next_tick.js:98:9)

    Reviewed by apkcoder at 2016-10-25 07:32
  • 9. ** BUILD FAILED **

    ** BUILD FAILED ** The following build commands failed: CompileC /Users/wk/Desktop/RN/gitpopular/GitHubPopular/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) Installing build/Build/Products/Debug-iphonesimulator/GitHubPopular.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

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

    Reviewed by GrapeFruitJun at 2016-10-21 09:06
  • 10. run-android时报错,提示修改版本,但是修改后还是这个错

    Could not resolve all dependencies for configuration ':app:_debugApk'.

    A problem occurred configuring project ':react-native-splash-screen'. > The SDK Build Tools revision (23.0.3) is too low for project ':react-native-splash-screen'. Minimum required is 25.0.0

    Reviewed by wt2WT at 2018-10-10 10:19
  • 11. run-android就会报这个错, 我的java版本是1.8.0_231, 模拟器是夜神. (在官网脚手架的demo中会自动打开as中的模拟器, 但是这里失效了)

    (node:7416) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead. Starting JS server... Running C:\Users\Administrator\AppData\Local\Android\Sdk/platform-tools/adb reverse tcp:8081 tcp:8081 adb.exe: error: no devices/emulators found Could not run adb reverse: Command failed: C:\Users\Administrator\AppData\Local\Android\Sdk/platform-tools/adb reverse tcp:8081 tcp:8081 Building and installing the app on the device (cd android && gradlew.bat installDebug...

    FAILURE: Build failed with an exception.

    • What went wrong: Could not determine java version from '12.0.2'.

    • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Could not install the app on the device, read the error above for details. Make sure you have an Android emulator running or a device connected and have set up your Android development environment: https://facebook.github.io/react-native/docs/android-setup.html

    Reviewed by magicsli at 2020-07-02 10:32
  • 12. 基于最新版react-native和react-navigation模仿老师的APP

    看到issue区有很多同学说这个项目没有更新了,我也在学习rn,参考这个项目的代码自己做了一个几乎一样的,使用了最新的rn、react-navigation等技术,参考了这个项目的代码,也进行了一些改进,希望分享给大家,共同学习。目前项目还在更新中,已经完成了大部分功能。 Github:https://github.com/YanYuanFE/RN-GitHub

    Reviewed by YanYuanFE at 2019-05-11 07:07
  • 13. 我的编译时报以下错误,求大神解答

    FAILURE: Build failed with an exception.

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

    A problem occurred configuring project ':react-native-splash-screen'. Could not resolve all dependencies for configuration ':react-native-splash-screen:_debugPublishCopy'. > Could not find com.android.support:appcompat-v7:27.1.1. Required by: GitHubPopular:react-native-splash-screen:unspecified > Could not find com.android.support:appcompat-v7:27.1.1. Required by: GitHubPopular:react-native-splash-screen:unspecified > com.facebook.react:react-native:0.57.8

    • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

    BUILD FAILED

    Reviewed by FinnLian at 2019-01-24 09:02