import React, {Component} from 'react'; import TitleBar from '../views/TitleBar.js'; import ListItem from '../views/ListItem.js'; import ListItemDivider from '../views/ListItemDivider.js'; import Global from '../utils/Global'; import {Dimensions, Image, PixelRatio, ScrollView, StyleSheet, View} from 'react-native'; const {width} = Dimensions.get('window'); export default class FindScreen extends Component { static navigationOptions = { tabBarLabel: '发现', tabBarIcon: ({focused, tintColor}) => { if (focused) { return ( ); } return ( ); }, }; render() { return ( { this.props.navigation.navigate("Moment") }}/> { this.props.navigation.navigate("Scan") }}/> { this.props.navigation.navigate("Shake") }}/> { this.props.navigation.navigate("Shopping") }}/> ); } } const styles = StyleSheet.create({ container: { flex: 1, flexDirection: 'column', justifyContent: 'center', alignItems: 'center' }, divider: { width: width, height: 1 / PixelRatio.get(), backgroundColor: '#D3D3D3' }, content: { flex: 1, width: width, flexDirection: 'column', backgroundColor: Global.pageBackgroundColor }, tabBarIcon: { width: 24, height: 24, }, });