Skip to content

Commit

Permalink
Merge pull request #17 from Hiseen/henry-navigation-text
Browse files Browse the repository at this point in the history
[Issue #14] Add title to each navigation
  • Loading branch information
henrychen0220 authored Mar 18, 2019
2 parents d0cc000 + feaea64 commit 7677abd
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 2 deletions.
4 changes: 2 additions & 2 deletions new-gui/.expo/packager-info.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"expoServerPort": 19000,
"expoServerNgrokUrl": "https://mg-3p3.anonymous.new-gui.exp.direct",
"packagerNgrokUrl": "https://packager.mg-3p3.anonymous.new-gui.exp.direct",
"ngrokPid": 10028,
"ngrokPid": 16404,
"devToolsPort": 19002,
"packagerPort": 19001,
"packagerPid": 16372
"packagerPid": 8216
}
7 changes: 7 additions & 0 deletions new-gui/src/components/ConfirmFoodPanel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ class ConfirmFoodPanel extends Component {
}
}

static navigationOptions = {
title: "Select Cuisine",
headerTitleStyle: {
fontWeight: 'bold',
}
}

loadFoodInfo(foodName) {
// TODO: get token and food name from previous clickSuggestionPanel
fetch(FETCH_FOOD_URL, {
Expand Down
7 changes: 7 additions & 0 deletions new-gui/src/components/RecipePanel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ class RecipePanel extends Component
this.setState({"food":food});
}

static navigationOptions = {
title: "Recipe",
headerTitleStyle: {
fontWeight: 'bold',
}
}

getIngredients(ingredients) {
return ingredients.map(function(item, i) {
return (
Expand Down
7 changes: 7 additions & 0 deletions new-gui/src/components/UserInformationPanel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,13 @@ class EditableLabel extends Component{


class UserInformationComponent extends Component {

static navigationOptions = {
title: "User Information",
headerTitleStyle: {
fontWeight: 'bold',
}
}

fetchStepCountThenGetInformation(){
const now = new Date();
Expand Down
6 changes: 6 additions & 0 deletions new-gui/src/components/YelpMapPanel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ class YelpMapPanel extends Component
};
}

static navigationOptions = {
title: "Similar Cuisine Nearby",
headerTitleStyle: {
fontWeight: 'bold',
}
}

async requestLocationPermission() {
const { status } = await Permissions.askAsync(Permissions.LOCATION);
Expand Down

0 comments on commit 7677abd

Please sign in to comment.