-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
42 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,8 @@ | ||
import React, { Component} from 'react'; | ||
import { StyleSheet, View, StatusBar } from 'react-native'; | ||
import {Container, Content, Header, Title, Button, Subtitle, Left, | ||
Right, Body, Icon, Tabs} from 'native-base'; | ||
import Dimensions from 'Dimensions'; | ||
|
||
import JournalTab from './JournalTab'; | ||
import PredictorTab from './PredictorTab'; | ||
|
||
const height = Dimensions.get('window').height; | ||
const width = Dimensions.get('window').height; | ||
|
||
export default class tabHolder extends Component{ | ||
render() { | ||
return ( | ||
<Container theme = {{brandPrimary:'#029c88'}}> | ||
<Header style = {{backgroundColor: '#029c88'}}> | ||
<Left> | ||
<Button transparent> | ||
<Icon name="menu" /> | ||
</Button> | ||
</Left> | ||
<Body> | ||
<Title>Food Sense</Title> | ||
</Body> | ||
<Right> | ||
<Button transparent> | ||
<Icon name="settings" /> | ||
</Button> | ||
</Right> | ||
</Header> | ||
|
||
<Content> | ||
<View> | ||
<StatusBar | ||
backgroundColor='#029c88' | ||
barStyle="light-content" | ||
/> | ||
</View> | ||
<Tabs style = {styles.tabStyle}> | ||
<JournalTab tabLabel='Journal' /> | ||
<PredictorTab tabLabel='Predictor' /> | ||
</Tabs> | ||
</Content> | ||
</Container> | ||
); | ||
} | ||
} | ||
|
||
const styles = StyleSheet.create({ | ||
tabStyle:{ | ||
backgroundColor: '#029c88' | ||
} | ||
|
||
}); | ||
<View style = {styles.header}> | ||
<View style = {styles.headerRect} > | ||
<Button transparent> | ||
<Icon name='ios-arrow-back' style={{color: "#FFFFFF", fontSize: height * .08, marginTop: height * .02}} /> | ||
</Button> | ||
<Text style = {styles.headerText}>Food Sense</Text> | ||
</View> | ||
</View> |