import React from 'react' import { StyleSheet, Text, View, TouchableOpacity, Dimensions, PixelRatio, } from 'react-native' import Icon from '../../../components/Iconfont/Iconfont' import { NavigationActions } from '../../../utils' import { isIphoneX } from '../../common/theme/config' const { width, height } = Dimensions.get('window') class DetailTabBar extends React.Component { constructor(props) { super(props) } render() { return ( this.props.dispatch(NavigationActions.back())} > {this.props.tabs.map((tab, i) => { return ( this.props.goToPage(i)} style={styles.tab} > {tab} ) })} ) } } const styles = StyleSheet.create({ tab: { flex: 1, alignItems: 'center', justifyContent: 'center', paddingBottom: 10, }, tabs: { marginLeft: 40, height: 40, flexDirection: 'row', paddingTop: 10, }, }) export default DetailTabBar