12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- // @flow
-
- import * as React from 'react';
- import {ScrollView, StyleSheet} from "react-native";
- import {Button, withTheme} from 'react-native-paper';
-
- type Props = {
- navigation: Object,
- route: Object,
- }
-
- type State = {}
-
- class AmicaleHomeScreen extends React.Component<Props, State> {
-
- state = {};
-
- colors: Object;
-
- constructor(props) {
- super(props);
-
- this.colors = props.theme.colors;
- }
-
- render() {
- const nav = this.props.navigation;
- return (
- <ScrollView>
- <Button
- icon={"login"}
- onPress={() => nav.navigate("login")}
- >
- LOGIN
- </Button>
- <Button
- icon={"information"}
- onPress={() => nav.navigate("amicale-contact")}
- >
- INFO
- </Button>
- <Button
- icon={"information"}
- onPress={() => nav.navigate("club-list")}
- >
- CLUBS
- </Button>
- <Button
- icon={"information"}
- onPress={() => nav.navigate("profile")}
- >
- PROFILE
- </Button>
- <Button
- icon={"information"}
- onPress={() => nav.navigate("vote")}
- >
- VOTE
- </Button>
- </ScrollView>
- );
- }
- }
-
- const styles = StyleSheet.create({
- container: {
- flex: 1,
- flexDirection: 'column',
- justifyContent: 'center',
- },
- card: {
- margin: 10,
- },
- header: {
- fontSize: 36,
- marginBottom: 48
- },
- textInput: {},
- btnContainer: {
- marginTop: 5,
- marginBottom: 10,
- }
- });
-
- export default withTheme(AmicaleHomeScreen);
|