提交 52220da4 authored 作者: 吴强's avatar 吴强

Merge branch 'master' of git://192.168.1.116/bolan-root/frontend/manager-app-sz into wq

# Conflicts: # src/models/login.js # src/routes/login.js #添加新界面到main ,个人中心和房屋信息
上级 7958ee2c
This source diff could not be displayed because it is too large. You can view the blob instead.
import React, { Component } from 'react';
import { Image, StyleSheet, Button } from 'react-native';
class fwInfo extends Component {
static navigationOptions = {
tabBarLabel: '房屋信息',
// Note: By default the icon is only shown on iOS. Search the showIcon option below.
tabBarIcon: ({ tintColor }) => (
<Image
source={require('../../../../image/chats-icon.png')}
style={[styles.icon, { tintColor: { tintColor } }]}
/>
),
};
render() {
return (
<Button
onPress={() => this.props.navigation.navigate('Notifications')}
title="Go to notifications"
/>
);
}
}
const styles = StyleSheet.create({
icon: {
width: 26,
height: 26,
},
});
export default fwInfo;
import React, { Component } from 'react';
import { View, Text } from 'react-native';
import { TabNavigator } from 'react-navigation';
import userInfoPageScreen from './userinfopage';
import fwInfo from './fwInfo';
class HomeScreen extends Component {
render() {
return (
<View>
<Text>main</Text>
</View>
<MainScreenNavigator />
);
}
}
const MainScreenNavigator = TabNavigator({
FWInfo: {
screen: fwInfo,
},
UserInfoPageScreen: {
screen: userInfoPageScreen,
},
}, {
tabBarPosition: 'bottom',
animationEnabled: true,
tabBarOptions: {
activeTintColor: '#e91e63',
},
});
export default HomeScreen;
import React, { Component } from 'react';
import { Image, StyleSheet, Button } from 'react-native';
class userInfoPageScreen extends Component {
static navigationOptions = {
tabBarLabel: '个人中心',
tabBarIcon: () => (
<Image
source={require('../../../../image/chats-icon.png')}
style={styles}
/>
),
};
render() {
return (
<Button
onPress={() => this.props.navigation.goBack()}
title="Go back home"
/>
);
}
}
const styles = StyleSheet.create({
icon: {
width: 26,
height: 26,
},
});
export default userInfoPageScreen;
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论