90 lines
1.9 KiB
JavaScript
90 lines
1.9 KiB
JavaScript
import * as React from "react";
|
|
|
|
import {
|
|
View,
|
|
StyleSheet,
|
|
Dimensions,
|
|
Text,
|
|
Button,
|
|
ScrollView,
|
|
Image,
|
|
TouchableOpacity,
|
|
FlatList,
|
|
ActivityIndicator,
|
|
Modal
|
|
} from "react-native";
|
|
import IconFA from "react-native-vector-icons/FontAwesome5";
|
|
import { TabView, TabBar, SceneMap } from "react-native-tab-view";
|
|
|
|
import rallyImg from "../assets/rallyTascas.jpg";
|
|
|
|
import { connect } from "react-redux";
|
|
|
|
import { bindActionCreators } from "redux";
|
|
|
|
import * as Actions from "../store/actions"; //Import your actionss
|
|
const SCREEN_HEIGHT = Dimensions.get("window").height;
|
|
const SCREEN_WIDTH = Dimensions.get("window").width;
|
|
|
|
import ImageViewer from 'react-native-image-zoom-viewer';
|
|
import PTRView from "react-native-pull-to-refresh";
|
|
|
|
const images = [{
|
|
url: 'https://enei.pt/imgs/mapa.png'
|
|
},]
|
|
|
|
class map extends React.Component {
|
|
_update = () => {
|
|
this.props.getAllEvents(this.props.internalToken);
|
|
this.props.getEventLocsVisited(
|
|
this.props.team.id,
|
|
this.props.internalToken
|
|
);
|
|
};
|
|
|
|
|
|
componentDidMount() {
|
|
|
|
}
|
|
|
|
render() {
|
|
const { navigate } = this.props.navigation;
|
|
return (
|
|
|
|
<ImageViewer imageUrls={images}/>
|
|
|
|
)
|
|
|
|
}
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
|
|
});
|
|
|
|
function mapStateToProps(state, props) {
|
|
return {
|
|
token: state.apiReducer.token,
|
|
user: state.apiReducer.user,
|
|
logged: state.apiReducer.logged,
|
|
userDetails: state.apiReducer.userDetails,
|
|
onHold: state.apiReducer.onHold,
|
|
bilhete: state.apiReducer.bilhete,
|
|
alimentacao: state.apiReducer.alimentacao,
|
|
alojamento: state.apiReducer.alojamento,
|
|
acesso: state.apiReducer.acesso,
|
|
team: state.apiReducer.team,
|
|
internalToken: state.apiReducer.internalToken,
|
|
eventsInternal: state.apiReducer.eventsInternal
|
|
};
|
|
}
|
|
|
|
function mapDispatchToProps(dispatch) {
|
|
return bindActionCreators(Actions, dispatch);
|
|
}
|
|
|
|
export default connect(
|
|
mapStateToProps,
|
|
mapDispatchToProps
|
|
)(map);
|