React Native也正式发布了

var React = require('react-native');
var { TabBarIOS, NavigatorIOS } = React;

var App = React.createClass({
  render: function() {
    return (
      <TabBarIOS>
        <TabBarIOS.Item title="React Native" selected={true}>
          <NavigatorIOS initialRoute={{ title: 'React Native' }} />
        </TabBarIOS.Item>
      </TabBarIOS>
    );
  },
});

  看着这奇怪的写法,顿时无爱了。

整体思路和NativeScript基本一致,封装javascript引擎,提供组件api.

相比这下,还是感觉NativeScript做得更“专业”一些。

 http://facebook.github.io/react-native/

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章