content: import React from 'react';
  import {
    Scene,
    Router,
    Switch,
    Modal,
    Actions,
    ActionConst,
  } from 'react-native-router-flux';
  import {
    StyleSheet,
  } from "react-native";
  import Splash from './containers/Splash';
  import GameList from './containers/GameListView';
  import GameDetail from './containers/GameDetailView';
  import Game from './containers/Game';
  import { Icon } from 'native-base';
  
  class GameHallIcon extends React.Component {
    render() {
      return (
        <Icon name={'home'} size={30} color={'gray'} />
      );
    }
  }
  
  class MyGameIcon extends React.Component {
    render() {
      return (
        <Icon name={'ios-game-controller-b-outline'} size={30} color={'gray'} />
      );
    }
  }
  
  class SettingIcon extends React.Component {
    render() {
      return (
        <Icon name={'ios-settings-outline'} size={30} color={'gray'} />
      );
    }
  }
  
  export default class router extends React.Component {
    render() {
      return (
        <Router >
          <Scene key="root">
            <Scene key="splash" component={Splash} hideNavBar={true} />
            <Scene key="main" tabs={true} style={styles.tabbarContainer} >
              <Scene key="hall" hideNavBar={true} icon={GameHallIcon} title='游戏空间' initial={true}>
                <Scene key="gameList" component={GameList} />
                <Scene key='gameDetail' component={GameDetail} title='游戏介绍' />
                <Scene key='game' component={Game} />
              </Scene>
              <Scene key="myGame" component={GameList} icon={MyGameIcon} title='我的游戏' />
              <Scene key="setting" component={GameList} icon={SettingIcon} title='设置' />
            </Scene>
          </Scene>
        </Router>
      )
    }
  }
  
  var styles = StyleSheet.create({
    tabbarContainer: {
      flex: 1,
      backgroundColor: "#e6e6e6",
    },
    tabbarItem: {
      alignItems: "center",
      justifyContent: "center",
      textAlign: "center",
      marginLeft: -3
    }
  })
  