<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>u1427461940 (rabbit-cheng)</title>
    <link>https://ruby-china.org/u1427461940</link>
    <description/>
    <language>en-us</language>
    <item>
      <title>使用 react-native 开发一个移动端的类似 ruby on rails 的开发框架，怎么样？</title>
      <description>&lt;p&gt;自己用 rails 很多年，做了不少项目，最近在用 react-native 写个移动端的项目，觉得如果能在移动端也有个类似 rails 的开发框架，开发起来岂不是很爽？&lt;/p&gt;

&lt;p&gt;rails 是 mvc 的框架，实现基本思路如下：&lt;/p&gt;

&lt;p&gt;m:
redux-orm。&lt;/p&gt;

&lt;p&gt;v 和 c:
react-native component，分为 Presentational 和 Container Components，分别充当 v 和 c 的角色，可以参考这片文章 &lt;a href="https://medium.com/@dan_abramov/smart-and-dumb-components-7ca2f9a7c7d0" rel="nofollow" target="_blank"&gt;https://medium.com/@dan_abramov/smart-and-dumb-components-7ca2f9a7c7d0&lt;/a&gt;。&lt;/p&gt;

&lt;p&gt;router:
使用 react-native-navigation 来实现。&lt;/p&gt;

&lt;p&gt;有兴趣的可以探讨探讨。&lt;/p&gt;</description>
      <author>u1427461940</author>
      <pubDate>Sat, 05 May 2018 16:33:48 +0800</pubDate>
      <link>https://ruby-china.org/topics/36685</link>
      <guid>https://ruby-china.org/topics/36685</guid>
    </item>
  </channel>
</rss>
