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/

相关文章:

  • 2021-11-17
  • 2021-12-09
  • 2021-05-22
  • 2021-10-20
  • 2021-08-03
  • 2021-08-12
  • 2021-12-03
  • 2021-06-26
猜你喜欢
  • 2021-06-01
  • 2021-09-13
  • 2021-06-30
  • 2022-12-23
  • 2021-06-18
相关资源
相似解决方案