screens/Calories.js
/**
   * Automatically loads the user's calories when first entering this screen
   */
Automatically loads the user's calories when first entering this screen
Automatically loads the user ' s calories when first entering this screen
componentDidMount() {
    getFoodCalories()
      .then((FoodList) => {
        this.setState({
          tableData1: FoodList
        })  
      });
    getExerciseCalories()
      .then((ExList) => {
        this.setState({
          tableData2: ExList
        })  
    });
  }
componentDidMount ( ) { getFoodCalories ( ) . then ( ( FoodList ) => { this . setState ( { tableData1 : FoodList } ) } ) ; getExerciseCalories ( ) . then ( ( ExList ) => { this . setState ( { tableData2 : ExList } ) } ) ; }
Automatically loads the user's calories when first entering this screen
Automatically loads the user ' s calories when first entering this screen