getting native base, debuggining multiple connections to backend, and no socket connection without debugger

This commit is contained in:
Arjun Patel
2018-07-10 22:07:55 -07:00
parent 6189437670
commit 50c53aa47d
12 changed files with 251 additions and 36 deletions
+10 -9
View File
@@ -13,8 +13,9 @@ import {
} from 'react-native-router-flux';
import { Fonts } from '../utils/Fonts.js';
import { Drawer } from 'native-base';
// imported components for different sections in main component
imoprt Dash from './main/dashboard.js';
import Navbar from './main/navbar.js';
import Chat from './main/chat.js';
import AdSpace from './main/adspace.js';
@@ -34,11 +35,16 @@ export default class Main extends Component<Props> {
render() {
console.log('in Main');
closeDrawer = () => {
this.drawer._root.close()
};
openDrawer = () => {
this.drawer._root.open()
};
return (
<View style={styles.container}>
<View style={styles.dashboard}>
<Dash />
</View>
<View style={styles.navbar}>
<Navbar />
</View>
@@ -60,11 +66,6 @@ const styles = {
justifyContent: 'space-between',
position: 'relative'
},
dashboard: {
height: windowHeight,
width: windowWidth - 60,
backgroundColor: '#595a5b'
},
navbar: {
flex: 2
},