App_20190416150507.js 748 Bytes
Newer Older
baiguangyao committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
import React, { Component } from 'react';
import { BrowserRouter, HashRouter, Switch, Router, Route } from 'react-router-dom'
import { TabBar, Icon } from 'antd-mobile'
// import TabBarExample from "./common/Tabbar"

class App extends Component {
  constructor(props) {
    super(props);
    this.state = {
      selectedTab: 'redTab',
      hidden: false,
      fullScreen: false,
    };
  }

  render() {
    return (
      <div className="App">
        <NavBar
          mode="dark"
          leftContent="Back"
          rightContent={[
            <Icon key="0" type="search" style={{ marginRight: '16px' }} />,
            <Icon key="1" type="ellipsis" />,
          ]}
        >NavBar</NavBar>

      </div>
    )
  }
}

export default App;