/* @flow */

import React, { Component } from 'react';
import {
  Text,
  View,
  Image
} from 'react-native';
import Button from '../../components/Button';
import images from '../../config/images';
import styles from './styles'

export class Home extends Component {
  static navigationOptions = {
    header: {visible: false},
  };
  render() {
    const { navigate } = this.props.navigation;
    return (
      <View style={styles.container}>
        <Image source={images.logo} style={styles.logo}/>
        <View style={styles.buttons}>
          <Button text="New Game" onPress={() => navigate("NewGame")}></Button>
          <Button text="Continue Game" onPress={() => console.log("Continue Game button pressed!")}></Button>
          <Button text="Settings" onPress={() => console.log("Settings button pressed!")}></Button>
        </View>
      </View>
    );
  }
};

@@ -221,16 +221,53 @@
 /styles'
+%0Aimport I18n from 'react-native-i18n'
 %0A%0Aexport
@@ -599,18 +599,27 @@
 ext=
-%22N
+%7BI18n.t('n
 ew
- 
 Game
-%22
+')%7D
  onP
@@ -688,23 +688,32 @@
 ext=
-%22C
+%7BI18n.t('c
 ontinue
- 
 Game
-%22
+')%7D
  onP
@@ -807,18 +807,28 @@
 ext=
-%22S
+%7BI18n.t('s
 ettings
-%22
+')%7D
  onP
@@ -934,8 +934,261 @@
 %0A  %7D%0A%7D;%0A
+%0AI18n.fallbacks = true%0AI18n.translations = %7B%0A  en: %7B%0A    newGame: %22New Game%22,%0A    continueGame: %22Continue Game%22,%0A    settings: %22Settings%22%0A  %7D,%0A  de: %7B%0A    newGame: %22Neues Spiel%22,%0A    continueGame: %22Spiel fortsetzen%22,%0A    settings: %22Einstellungen%22%0A  %7D%0A%7D%0A

Add i18n to home screen