-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemp
More file actions
93 lines (64 loc) · 1.9 KB
/
Copy pathtemp
File metadata and controls
93 lines (64 loc) · 1.9 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
import React from 'react';
import { StyleSheet, Text, View, ImageBackground, TextInput, Image, TouchableOpacity, Dimensions, TouchableWithoutFeedback, Keyboard, ScrollView } from 'react-native';
import { Button } from 'react-native-elements';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import normalize from '../../helpers/sizeHelper';
import Footer from '../footer';
import Header from '../header';
import * as commonActions from '../../actions/common';
import * as userActions from '../../actions/user';
const { height, width } = Dimensions.get('window');
const mapDispatchToProps = (dispatch) => {
return ({
userActions: bindActionCreators({...userActions}, dispatch),
commonActions: bindActionCreators({...commonActions}, dispatch)
});
}
const mapStateToProps = (state) => {
return ({
authedUser: state.user.authedUser,
loading: state.common.loading,
label: state.common.label,
});
}
class Profile extends React.Component {
constructor(props) {
super(props);
this.state = {
}
}
render() {
return (
<View style={styles.screen}>
<View style={styles.headerSection}>
<Header header={ 'Profile' } />
</View>
<View style={styles.container}>
</View>
<View style={styles.footerSection}>
<Footer
onPressHome={ () => this.props.navigation.navigate('Dashboard') }
onPressMenu={ () => this.props.navigation.openDrawer() }
/>
</View>
</View>
);
}
}
const styles = StyleSheet.create({
screen: {
flex: 1
},
headerSection: {
flex: 1,
},
footerSection: {
flex: 1
},
container: {
flex: 10,
backgroundColor: '#ffffff'
},
});
export default connect(mapStateToProps, mapDispatchToProps)(Profile);