//方式一 var React = require('react-native'); //方式二 import TabBarNavigator from 'react-native-tabbar-navigator';