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 // @flow
import AsyncStorageManager from "./AsyncStorageManager"; import AsyncStorageManager from "./AsyncStorageManager";
import {DarkTheme, DefaultTheme, Theme} from 'react-native-paper'; import {DarkTheme, DefaultTheme} from 'react-native-paper';
import AprilFoolsManager from "./AprilFoolsManager"; import AprilFoolsManager from "./AprilFoolsManager";
import {Appearance} from 'react-native-appearance'; import {Appearance} from 'react-native-appearance';
const colorScheme = Appearance.getColorScheme(); const colorScheme = Appearance.getColorScheme();
export type CustomTheme = { export type CustomTheme = {
...Theme, ...DefaultTheme,
colors: { colors: {
primary: string, primary: string,
accent: string, accent: string,

View file

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

View file

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