adding in functionality for menu, disabling ad space for now, and deplying config

This commit is contained in:
Arjun Patel
2018-07-29 10:57:28 -07:00
parent d6dfcd1994
commit 1ab6d52245
9 changed files with 39 additions and 88 deletions
+4 -2
View File
@@ -69,7 +69,9 @@ export default class Main extends Component<Props> {
<DrawerLayoutAndroid
drawerWidth={300}
drawerPosition={DrawerLayoutAndroid.positions.Left}
renderNavigationView={() => <Menu />}>
renderNavigationView={() => <Menu refreshConnection={this.refreshConnection}
refreshAvatar={this.refreshAvatar}
disconnect={this.disconnect} />}>
<View style={styles.container}>
<View style={styles.navbar}>
<Navbar avatar={avatarLink} />
@@ -100,6 +102,6 @@ const styles = {
flex: 15
},
adspace: {
flex: 2
flex: 0
}
}
+4 -3
View File
@@ -22,13 +22,14 @@ const backgroundLink = '../../assets/images/homeBg.jpg';
type Props = {};
export default class Menu extends Component<Props> {
render() {
const { refreshConnection, refreshAvatar, disconnect } = this.props;
return (
<View style={styles.container}>
<ImageBackground style={styles.header} source={require(backgroundLink)} >
<Text style={styles.hdrTxt}>Menu</Text>
</ImageBackground>
<View style={styles.main}>
<TouchableOpacity>
<TouchableOpacity onPress={refreshConnection}>
<View style={styles.option}>
<Text style={styles.optTxt}>Refresh Connection</Text>
<Icon
@@ -37,7 +38,7 @@ export default class Menu extends Component<Props> {
/>
</View>
</TouchableOpacity>
<TouchableOpacity>
<TouchableOpacity onPress={refreshAvatar}>
<View style={styles.option}>
<Text style={styles.optTxt}>Change Avatar</Text>
<Icon
@@ -46,7 +47,7 @@ export default class Menu extends Component<Props> {
/>
</View>
</TouchableOpacity>
<TouchableOpacity>
<TouchableOpacity onPress={disconnect}>
<View style={styles.option}>
<Text style={styles.optTxt}>Disconnect</Text>
<Icon