Application Android et IOS pour l'amicale des élèves
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

GameStartScreen.js 868B

123456789101112131415161718192021222324252627282930313233343536
  1. // @flow
  2. import * as React from "react";
  3. import {StackNavigationProp} from "@react-navigation/stack";
  4. import type {CustomTheme} from "../../../managers/ThemeManager";
  5. import {Button, Headline, withTheme} from "react-native-paper";
  6. import {View} from "react-native";
  7. type Props = {
  8. navigation: StackNavigationProp,
  9. theme: CustomTheme,
  10. }
  11. type State = {
  12. }
  13. class GameStartScreen extends React.Component<Props, State> {
  14. render() {
  15. return (
  16. <View style={{flex: 1}}>
  17. <Headline style={{textAlign: "center"}}>Coucou</Headline>
  18. <Button
  19. mode={"contained"}
  20. onPress={() => this.props.navigation.navigate("game-main")}
  21. >
  22. PLAY
  23. </Button>
  24. </View>
  25. );
  26. }
  27. }
  28. export default withTheme(GameStartScreen);