From 3c767aea658b3052290b2f544f57e89566a8e1fe Mon Sep 17 00:00:00 2001 From: Yohan Simard Date: Sun, 8 Mar 2020 13:01:12 +0100 Subject: [PATCH] Fixed translation --- navigation/MainTabNavigator.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/navigation/MainTabNavigator.js b/navigation/MainTabNavigator.js index ea4caaf..89bdc16 100644 --- a/navigation/MainTabNavigator.js +++ b/navigation/MainTabNavigator.js @@ -15,6 +15,8 @@ import {MaterialCommunityIcons} from "@expo/vector-icons"; import AsyncStorageManager from "../utils/AsyncStorageManager"; import HeaderButton from "../components/HeaderButton"; import {withTheme} from 'react-native-paper'; +import i18n from "i18n-js"; + const TAB_ICONS = { Home: 'triangle', @@ -154,7 +156,7 @@ function HomeStackComponent() { options={({navigation}) => { const openDrawer = getDrawerButton.bind(this, navigation); return { - title: 'Home', + title: i18n.t('screens.home'), headerLeft: openDrawer }; }} @@ -225,6 +227,7 @@ function TabNavigator(props) {