Compare commits

...

2 commits

Author SHA1 Message Date
0e741a02e2 Make mascot heart eyes red 2020-08-07 14:06:51 +02:00
92603cbaf7 Use transparent header for game 2020-08-07 14:00:21 +02:00
3 changed files with 19 additions and 14 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View file

@ -98,6 +98,9 @@ function MainStackComponent(props: {
MainStack, MainStack,
GameStartScreen, GameStartScreen,
i18n.t('screens.game.title'), i18n.t('screens.game.title'),
true,
null,
'transparent',
)} )}
<MainStack.Screen <MainStack.Screen
name="game-main" name="game-main"

View file

@ -384,6 +384,7 @@ class GameStartScreen extends React.Component<PropsType> {
recoverGameScore() { recoverGameScore() {
const {route} = this.props; const {route} = this.props;
this.gameStats = route.params; this.gameStats = route.params;
if (this.gameStats.score != null) {
this.isHighScore = this.isHighScore =
this.scores.length === 0 || this.gameStats.score > this.scores[0]; this.scores.length === 0 || this.gameStats.score > this.scores[0];
for (let i = 0; i < 3; i += 1) { for (let i = 0; i < 3; i += 1) {
@ -401,6 +402,7 @@ class GameStartScreen extends React.Component<PropsType> {
this.scores, this.scores,
); );
} }
}
render(): React.Node { render(): React.Node {
const {props} = this; const {props} = this;