diff --git a/App/app/Router.js b/App/app/Router.js
index cdd6d7c8..511994d6 100755
--- a/App/app/Router.js
+++ b/App/app/Router.js
@@ -104,7 +104,10 @@ const AppStack = createBottomTabNavigator(
},
{
- initialRouteName: 'Home',
+ //initialRouteName: 'Home',
+ initialRouteName: 'Eventos',
+
+ //initialRouteName: 'Calendário',
tabBarOptions: {
showLabel: true, // hide labels
diff --git a/App/app/screens/Eventos.js b/App/app/screens/Eventos.js
index 043d39c4..1c87c9b4 100644
--- a/App/app/screens/Eventos.js
+++ b/App/app/screens/Eventos.js
@@ -1,47 +1,96 @@
import * as React from "react";
-import { View, StyleSheet, Dimensions, Text, Button } from "react-native";
-import { TabView, TabBar, SceneMap } from "react-native-tab-view";
+import {View, StyleSheet, Dimensions, Text, Button, ScrollView} from "react-native";
+import {TabView, TabBar, SceneMap} from "react-native-tab-view";
+
+
+const SCREEN_HEIGHT = Dimensions.get("window").height;
+const SCREEN_WIDTH = Dimensions.get("window").width;
const FirstRoute = () => (
-
+
);
const SecondRoute = () => (
-
+
);
const ThirdRoute = () => (
-
+
);
const FourthRoute = () => (
-
+
);
-export default class Eventos extends React.Component {
- state = {
- index: 0,
- routes: [
- { key: "first", title: "Festarola" },
- { key: "second", title: "Febrada" },
- { key: "third", title: "Rally" },
- { key: "fourth", title: "Peddy" }
- ]
- };
- render() {
- return (
-
-
- );
- }
+
+export default class Eventos extends React.Component {
+ state = {
+ index: 0,
+ routes: [
+ {key: "first", title: "Festarola"},
+ {key: "second", title: "Febrada"},
+ {key: "third", title: "Rally"},
+ {key: "fourth", title: "Peddy"}
+ ]
+ };
+
+
+ renderFebrada = () => {
+ return (
+
+ Ola mundo
+
+ );
+
+ };
+
+ renderRally = () => {
+
+ };
+
+ renderCaching = () => {
+
+ };
+
+ render() {
+ return (
+
+
+
+ {this.renderFebrada()}
+
+
+
+
+
+
+
+
+
+ );
+ }
}
const styles = StyleSheet.create({
- scene: {
- flex: 1
- }
+ container: {
+ backgroundColor: '#eee',
+ flex: 1,
+ },
+
+ scroll: {
+ flex: 1,
+ },
+
+ cardContainer: {
+ flex: 1,
+ padding: 10,
+ margin: 20,
+ backgroundColor: 'white',
+ borderRadius: 5,
+ height: SCREEN_WIDTH * (1/2),
+ },
+
+ scene: {
+ flex: 1
+ }
});
diff --git a/App/app/screens/Profile.js b/App/app/screens/Profile.js
index dde2531f..23e74b5f 100644
--- a/App/app/screens/Profile.js
+++ b/App/app/screens/Profile.js
@@ -45,8 +45,8 @@ class Profile extends Component {
super(props);
this.state = {
- name:this.props.user.Name,
- userDetails:{},
+ name: this.props.user.Name,
+ userDetails: {},
token: false,
tokenData: '',
loggedIn: false,
@@ -87,10 +87,10 @@ class Profile extends Component {
};
- _validateData = (name,jobs, email, phone, address, city) => {
+ _validateData = (name, jobs, email, phone, address, city) => {
let valid = null;
- v = Validate('name',name );
+ v = Validate('name', name);
let v = Validate('email', email);
@@ -138,29 +138,29 @@ class Profile extends Component {
saveData() {
- const {name,jobs, email, phone, address, city, formValid} = this.state;
+ const {name, jobs, email, phone, address, city, formValid} = this.state;
- this._validateData(name,jobs, email, phone, address, city);
+ this._validateData(name, jobs, email, phone, address, city);
console.log(formValid);
- if (formValid){
+ if (formValid) {
console.log("data valid");
- this.props.updateUser(this.props.userDetails.token,{
- Name: this.state.name,
- // LastName: "Último",
- Company: jobs,
- // Job: jobs,
- Address: address,
- City: city,
- // PostalCode: "3000-010",
+ this.props.updateUser(this.props.userDetails.token, {
+ Name: this.state.name,
+ // LastName: "Último",
+ Company: jobs,
+ // Job: jobs,
+ Address: address,
+ City: city,
+ // PostalCode: "3000-010",
- Mobile: phone,
- Avatar: "base64"
-} ); this.props.getUserInfo(this.props.userDetails.token);
+ Mobile: phone,
+ Avatar: "base64"
+ });
+ this.props.getUserInfo(this.props.userDetails.token);
}
-
else
@@ -190,7 +190,7 @@ class Profile extends Component {
{
- this.setState({name:n })
+ this.setState({name: n})
}}
value={this.state.name}/>
@@ -206,7 +206,6 @@ class Profile extends Component {
-
@@ -261,16 +260,16 @@ class Profile extends Component {
-
+
Old Password:
-
+
Nova Password:
@@ -279,7 +278,7 @@ class Profile extends Component {
/>
-
+
Repetir Password:
@@ -293,9 +292,14 @@ class Profile extends Component {
-
- Logout
-
+
+ Logout
+
@@ -330,23 +334,27 @@ const styles = StyleSheet.create({
flex: 1,
flexDirection: 'row',
justifyContent: 'flex-start',
- padding: 10
+ padding: 10,
+ borderWidth: 2,
+ alignItems: 'center',
},
userBioText: {
- width: SCREEN_WIDTH * 0.50,
+ width: SCREEN_WIDTH * 0.40,
+ flex: 2,
+ borderWidth: 2,
},
userPassText: {
flex: 1,
- flexDirection: 'row',
- justifyContent: 'flex-start',
+ //alignSelf: 'flex-start',
+ justifyContent: 'flex-end',
+ borderWidth: 2,
},
userBioLogo: {
marginLeft: SCREEN_WIDTH * 0.05,
width: SCREEN_WIDTH * 0.15,
-
},
bottomLogOut: {
diff --git a/App/app/screens/calendarDetail.js b/App/app/screens/calendarDetail.js
index 171acf8c..9068d0d6 100644
--- a/App/app/screens/calendarDetail.js
+++ b/App/app/screens/calendarDetail.js
@@ -47,7 +47,7 @@ const formatObj = (obj) => {
class calendarDetail extends React.Component {
-
+
static navigationOptions = ({navigation}) => ({
header: (
{
return (
-
-
- Onde está o ramo? xD
-
-
- {info.time === info.timeEnd ? info.time : `${info.time} - ${info.timeEnd}`}
-
+
+
+ Onde está o ramo? xD
+
+
+ {info.time === info.timeEnd ? info.time : `${info.time} - ${info.timeEnd}`}
+
+
-
-
- Attendee Name
-
- {info.Enrolled} / {info.MaxAttendees}
-
+
+ Attendee Name
+
+ {info.Enrolled} / {info.MaxAttendees}
+
-
- Descrição
+
+ Descrição
-
+
{info.description}
-
)
@@ -136,22 +135,22 @@ class calendarDetail extends React.Component {
renderMap = () => {
return (
- {
+ {
- console.log(region);
+ console.log(region);
- }}
+ }}
- />
+ />
)
};
@@ -203,13 +202,14 @@ class calendarDetail extends React.Component {
-
+
{this.renderHeader(info)}
{this.renderDescription(info)}
-
- Localização
+
+
+ Localização
{this.renderMap()}
@@ -234,7 +234,7 @@ const styles = StyleSheet.create({
},
centerRow: {
- alignItems: 'flex-start',
+ alignItems: 'center',
backgroundColor: 'transparent',
flex: 3,
flexDirection: 'column',
@@ -246,7 +246,7 @@ const styles = StyleSheet.create({
flex: 1,
flexDirection: 'row',
justifyContent: 'flex-start',
- alignSelf: 'center'
+ alignSelf: 'center',
},
rightRow: {
alignItems: 'flex-end',
@@ -292,7 +292,7 @@ const styles = StyleSheet.create({
timeText: {
alignItems: 'flex-end',
flex: 2,
- marginBottom: 5,
+ lineHeight: 10,
marginRight: 4,
},
@@ -303,14 +303,23 @@ const styles = StyleSheet.create({
},
scroll: {
- backgroundColor: '#FFF',
+ backgroundColor: '#eee',
flex: 1,
//marginBottom: 55,
},
cardContainer: {
flex: 1,
+ padding: 10,
+ margin: 20,
+ backgroundColor: 'white',
+ borderRadius: 5,
},
+
+ headerContainer: {
+ flex: 1,
+ },
+
container: {
flex: 1,
flexDirection: 'column',
@@ -322,10 +331,10 @@ const styles = StyleSheet.create({
height: Dimensions.get('window').width * (2 / 4),
width: Dimensions.get('window').width,
},
- headerContainer: {
+ /*headerContainer: {
alignItems: 'center',
backgroundColor: '#FFF',
- },
+ },*/
carreerPathContainer: {