comm
This commit is contained in:
parent
c2b7539e2f
commit
ce8d7ed01d
|
@ -30,6 +30,7 @@ import { createStore } from "redux";
|
|||
import PTRView from "react-native-pull-to-refresh";
|
||||
import {Provider} from "react-redux";
|
||||
import {ScrollView} from "react-native-gesture-handler";
|
||||
|
||||
const SCREEN_HEIGHT = Dimensions.get("window").height;
|
||||
const SCREEN_WIDTH = Dimensions.get("window").width;
|
||||
import {Card, Divider} from "react-native-elements";
|
||||
|
@ -43,6 +44,7 @@ class Home extends Component {
|
|||
// this.props.dispatch(connectionState({ status: isConnected }));
|
||||
console.log("fck that");
|
||||
};
|
||||
|
||||
_refresh() {
|
||||
return new Promise(resolve => {
|
||||
setTimeout(() => {
|
||||
|
@ -50,9 +52,11 @@ class Home extends Component {
|
|||
}, 2000);
|
||||
});
|
||||
}
|
||||
|
||||
_callApi() {
|
||||
this.props.getUserInfo(this.props.token);
|
||||
}
|
||||
|
||||
constructor(props) {
|
||||
super(props);
|
||||
|
||||
|
@ -65,6 +69,7 @@ class Home extends Component {
|
|||
appState: AppState.currentState
|
||||
};
|
||||
}
|
||||
|
||||
handleConnectivityChange = () => {
|
||||
console.log("asdasdasdasdasd");
|
||||
};
|
||||
|
@ -84,7 +89,9 @@ class Home extends Component {
|
|||
|
||||
//console.log(th2is.props)
|
||||
}
|
||||
componentWillUnmount() {}
|
||||
|
||||
componentWillUnmount() {
|
||||
}
|
||||
|
||||
bClick() {
|
||||
//this.props.logoutUser();
|
||||
|
@ -96,10 +103,16 @@ class Home extends Component {
|
|||
|
||||
//var navigate = this.props.navigation.navigate
|
||||
}
|
||||
|
||||
_update = () => {
|
||||
this.props.getUserInfo(this.props.userDetails.token);
|
||||
};
|
||||
|
||||
|
||||
/*_removeMember = (membro.id) => {
|
||||
|
||||
};*/
|
||||
|
||||
render() {
|
||||
const {navigate} = this.props.navigation;
|
||||
|
||||
|
@ -185,7 +198,8 @@ class Home extends Component {
|
|||
5/6 elementos
|
||||
</Text>
|
||||
</View>
|
||||
<View style={{alignItems:'center', alignContent:'center',alignSelf:'center'}}>
|
||||
<View
|
||||
style={{alignItems: 'center', alignContent: 'center', alignSelf: 'center'}}>
|
||||
<IconFA name="plus" color={'white'} size={30}/>
|
||||
<Text style={{color: 'white'}}>Adicionar</Text>
|
||||
</View>
|
||||
|
@ -202,7 +216,7 @@ class Home extends Component {
|
|||
<Text>AFFJASDXZ</Text>
|
||||
</View>
|
||||
|
||||
<TouchableOpacity style={styles.userRemove}>
|
||||
<TouchableOpacity style={styles.userRemove} /*onPress={() => this._removeMember(membro.id)}*/>
|
||||
|
||||
<Text style={{fontWeight: 'bold'}}>rm equipa</Text>
|
||||
</TouchableOpacity>
|
||||
|
@ -409,6 +423,7 @@ const styles = StyleSheet.create({
|
|||
// transform: [{ rotate: '-15deg'}],
|
||||
}
|
||||
});
|
||||
|
||||
function mapStateToProps(state, props) {
|
||||
return {
|
||||
token: state.apiReducer.token,
|
||||
|
|
|
@ -0,0 +1,46 @@
|
|||
import * as React from "react";
|
||||
import {View, StyleSheet, Dimensions, Text, Button, ScrollView} from "react-native";
|
||||
import {TabView, TabBar, SceneMap} from "react-native-tab-view";
|
||||
|
||||
import * as Actions from "../store/actions";
|
||||
import {connect} from "react-redux";
|
||||
import {bindActionCreators} from "redux";
|
||||
|
||||
export default class rallyDetail extends React.Component {
|
||||
|
||||
|
||||
renderHeader = () => {
|
||||
|
||||
};
|
||||
|
||||
|
||||
render() {
|
||||
return (
|
||||
<View>
|
||||
|
||||
</View>
|
||||
)
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function mapStateToProps(state, props) {
|
||||
|
||||
return {
|
||||
|
||||
token: state.apiReducer.token,
|
||||
user: state.apiReducer.user,
|
||||
logged: state.apiReducer.logged,
|
||||
events: state.apiReducer.events
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
function mapDispatchToProps(dispatch) {
|
||||
|
||||
return bindActionCreators(Actions, dispatch);
|
||||
}
|
||||
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(rallyDetail);
|
|
@ -34,7 +34,7 @@ function mapStateToProps(state, props) {
|
|||
token: state.apiReducer.token,
|
||||
user: state.apiReducer.user,
|
||||
logged: state.apiReducer.logged,
|
||||
events: state.apiReducer.events
|
||||
//rally: state.apiReducer.rally
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue