• 请不要在回答技术问题时复制粘贴 AI 生成的内容
KevinOfNeu
V2EX  ›  程序员

用 react-native+redux 写了一个 Reddit 客户端,又一次感觉 js 要统治世界

  •  2
     
  •   KevinOfNeu ·
    KevinOfNeu · Apr 20, 2016 · 5775 views
    This topic created in 3853 days ago, the information mentioned may be changed or developed.

    花了大约 2 天的时间,从看教程,到读别人代码,然后写出了一个 react-native 的 Android 的客户端。

    Gif 预览

    repo 地址: https://github.com/KevinOfNeu/xReddit 。

    Supplement 1  ·  Apr 24, 2016
    可以看下 redux 是如何影响 native 开发的:用 Swift 中的单向数据流
    来替代臃肿的视图控制器,链接 https://realm.io/cn/news/benji-encz-unidirectional-data-flow-swift/?from=singlemessage&isappinstalled=1
    Supplement 2  ·  Apr 24, 2016
    redux 架构的 Android 开发。链接: https://github.com/trikita/jedux
    19 replies  •  2016-04-25 13:34:37 +08:00
    KevinOfNeu
    KevinOfNeu
    OP
    Apr 20, 2016
    1
    欢迎大家提 PR , issue !更欢迎给出 star!
    Patrick95
    Patrick95
    Apr 20, 2016
    2
    it seems all right
    KevinOfNeu
    KevinOfNeu
    OP
    Apr 20, 2016
    3
    Gif 图不知道为啥显示不出来。大家可以直接看 repo 地址, https://github.com/KevinOfNeu/xReddit 。欢迎提 issue , pr ,一起学习!
    pppssspsp
    pppssspsp
    Apr 20, 2016❤️1
    4
    react-native 怎么样啊?新人是学 OC 和 swift 好还是直接这个好
    KevinOfNeu
    KevinOfNeu
    OP
    Apr 20, 2016❤️1
    5
    @pppssspsp 好问题。如果更想了解 native 的话,还是学习 OC 或者 swift 了,其实更建议现学 OC ,因为优秀代码更多, swift 出来没多久,优秀的学习开源代码并不如 OC 多。
    pppssspsp
    pppssspsp
    Apr 20, 2016
    6
    @KevinOfNeu 嗯嗯,谢谢.
    dibage
    dibage
    Apr 20, 2016
    7
    gif 点击就可以看了,看起来 very nice 啊!
    KevinOfNeu
    KevinOfNeu
    OP
    Apr 20, 2016
    8
    @dibage 多谢,用了不到两天,还有很多地方要改进。
    keifer
    keifer
    Apr 20, 2016
    9
    前几天的 F8 开发者大会上面, windwos 和三星宣布将 react native 集成到自家的 windows 和 tizen 系统上,是不是想想都有点小激动呢!
    KevinOfNeu
    KevinOfNeu
    OP
    Apr 20, 2016
    11
    @WildCat 哇哦, nice blog
    KevinOfNeu
    KevinOfNeu
    OP
    Apr 20, 2016
    12
    @keifer windows 现在想全面兼容各种**
    murmur
    murmur
    Apr 20, 2016
    13
    @keifer 想多了, wp 的安卓计划已经流产了,微软最靠不住了
    saberlily
    saberlily
    Apr 21, 2016
    14
    看了下 F8 的源码, 感觉自己都不会写 JS 了 function aaa(): bbb {....}
    这个 bbb 是什么....
    KevinOfNeu
    KevinOfNeu
    OP
    Apr 21, 2016
    15
    @saberlily 还没看 F8 源码,不过这名够屌
    saberlily
    saberlily
    Apr 24, 2016
    16
    @KevinOfNeu 不是, aaa/bbb 我只是举例说的, 就是第一个 setup.js , 感觉语法和 swift 混了。。
    另外想问下, 你在开发的时候怎么 debug 的,好像 redux_devtools 不支持 RN , Chrome_devtool 里面看不到页面,也没办法用 React_Debug 的 Chrome 插件啊
    KevinOfNeu
    KevinOfNeu
    OP
    Apr 24, 2016
    17
    @saberlily 我主要用 chrome , js 不是可以断点吗?至于 redux 的支持,我就是脑补了下,你若是发现好的也推荐啊
    saberlily
    saberlily
    Apr 24, 2016❤️1
    18
    @KevinOfNeu 找到一个, atom 升级, nuclide , 据说不错
    KevinOfNeu
    KevinOfNeu
    OP
    Apr 25, 2016
    19
    @saberlily 🐂
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1045 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 17:19 · PVG 01:19 · LAX 09:19 · JFK 12:19
    ♥ Do have faith in what you're doing.