diff --git a/App/app/Router.js b/App/app/Router.js index 511994d6..4fa334cd 100755 --- a/App/app/Router.js +++ b/App/app/Router.js @@ -104,10 +104,7 @@ const AppStack = createBottomTabNavigator( }, { - //initialRouteName: 'Home', - initialRouteName: 'Eventos', - - //initialRouteName: 'Calendário', + initialRouteName: 'Home', tabBarOptions: { showLabel: true, // hide labels @@ -125,7 +122,8 @@ const Stack = createStackNavigator({ screen: AppStack, navigationOptions: ({navigation}) => { const index = navigation.state.index; - + + if (navigation.state.routes[index].routeName == 'Home') { return { headerTitle: `${navigation.state.routes[index].routeName}`, diff --git a/App/app/screens/Calendar.js b/App/app/screens/Calendar.js index b68a44a0..25d9720d 100644 --- a/App/app/screens/Calendar.js +++ b/App/app/screens/Calendar.js @@ -19,7 +19,7 @@ import * as Progress from "react-native-progress"; import { connect } from "react-redux"; import { bindActionCreators } from "redux"; - +import PTRView from 'react-native-pull-to-refresh'; import * as Actions from "../store/actions"; //Import your actionss const formatObj = obj => { @@ -140,6 +140,10 @@ class Calendar extends React.Component { constructor() { super(); } + _refresh=()=>{ + this.props.getEvents(this.props.user); + this.props.getSessions(this.props.userDetails.token); + } render() { const ThirdRoute = () => ( @@ -275,7 +279,9 @@ class Calendar extends React.Component { ); return ( + + {this.props.careerPath != undefined && ( )} + +