App/Containers/TabBarView.js
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
``
import React, { Component } from 'react';
import {
View,
Text,
Image,
TabBarIOS,
} from 'react-native';
import TabNavigator from 'react-native-tab-navigator';
import Icon from 'react-native-vector-icons/Ionicons';
// import HomeContainer from '../containers/HomeContainer';
// import ClassContainer from '../containers/ClassContainer';
// import weixin from '../pages/weixin';
import Home from '../Components/Home';
import Brand from '../Components/Brand';
import Classify from '../Components/Classify';
import ShoppingCart from '../Components/ShoppingCart';
import AboutMe from '../Components/AboutMe';
import HomeContainer from './HomeContainer';
import BrandContainer from './BrandContainer';
import ShopCarContainer from './ShopCarContainer';
import FontAwesome from 'react-native-vector-icons/FontAwesome';
// const tabBarItems = [
// { title: '首页', icon:() => <Icon name={'md-home'} size={30} /> , component: HomeContainer },
// { title: '品牌', icon:() => <Icon name={'md-bookmark'} size={30} />, component: BrandContainer },
// { title: '分类', icon: () =><Icon name={'md-apps'} size={30} />, component: Classify },
// { title: '购物车', icon: () =><Icon name={'md-cart'} size={30} /> , component: ShopCarContainer },
// { title: '我的', icon:() => <Icon name={'md-contact'} size={30} /> , component: AboutMe },
// ]
const tabBarItems = [
{ title: '首页', icon:'home' , component: HomeContainer },
{ title: '品牌', icon:'bookmark', component: BrandContainer },
{ title: '分类', icon:'th', component: Classify },
{ title: '购物车', icon:'shopping-cart', component: ShopCarContainer },
{ title: '我的', icon:'user' , component: AboutMe },
]
export default class TarBarView extends Component {
constructor(props) {
super(props);
this.state = {
selectedTab: tabBarItems[0].title,
};
}
render() {
后面还有 54 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
