Renamed game to a more general name

This commit is contained in:
Arnaud Vergnet 2020-07-18 15:52:41 +02:00
parent ca107356d1
commit 494b319f19
22 changed files with 6 additions and 6 deletions

View file

@ -1,14 +1,14 @@
// @flow
import AsyncStorageManager from "./AsyncStorageManager";
import {DarkTheme, DefaultTheme, Theme} from 'react-native-paper';
import {DarkTheme, DefaultTheme} from 'react-native-paper';
import AprilFoolsManager from "./AprilFoolsManager";
import {Appearance} from 'react-native-appearance';
const colorScheme = Appearance.getColorScheme();
export type CustomTheme = {
...Theme,
...DefaultTheme,
colors: {
primary: string,
accent: string,

View file

@ -8,7 +8,7 @@ import DebugScreen from '../screens/About/DebugScreen';
import {createStackNavigator, TransitionPresets} from "@react-navigation/stack";
import i18n from "i18n-js";
import TabNavigator from "./TabNavigator";
import TetrisScreen from "../screens/Tetris/TetrisScreen";
import GameScreen from "../screens/Game/GameScreen";
import VoteScreen from "../screens/Amicale/VoteScreen";
import LoginScreen from "../screens/Amicale/LoginScreen";
import {Platform} from "react-native";
@ -93,7 +93,7 @@ function MainStackComponent(props: { createTabNavigator: () => React.Node }) {
/>
<MainStack.Screen
name="tetris"
component={TetrisScreen}
component={GameScreen}
options={{
title: i18n.t("screens.game.title"),
}}

View file

@ -22,7 +22,7 @@ type State = {
gameLevel: number,
}
class TetrisScreen extends React.Component<Props, State> {
class GameScreen extends React.Component<Props, State> {
colors: Object;
@ -296,4 +296,4 @@ class TetrisScreen extends React.Component<Props, State> {
}
export default withTheme(TetrisScreen);
export default withTheme(GameScreen);