From 82924b2a4bd51bb14cd023e075986674bebd8cc3 Mon Sep 17 00:00:00 2001 From: keplyx Date: Tue, 27 Aug 2019 19:40:17 +0200 Subject: [PATCH] Hide WIP planning text on IOS to allow publishing the app on appstore --- screens/PlanningScreen.js | 71 ++++++++++++++++++++++++--------------- 1 file changed, 43 insertions(+), 28 deletions(-) diff --git a/screens/PlanningScreen.js b/screens/PlanningScreen.js index 4fd8a92..b8ccd77 100644 --- a/screens/PlanningScreen.js +++ b/screens/PlanningScreen.js @@ -3,7 +3,7 @@ import * as React from 'react'; import {Button, H3, Text} from 'native-base'; import i18n from "i18n-js"; -import {View} from "react-native"; +import {View, Platform} from "react-native"; import CustomMaterialIcon from "../components/CustomMaterialIcon"; import ThemeManager from "../utils/ThemeManager"; import {Linking} from "expo"; @@ -26,6 +26,7 @@ function openWebLink(link) { */ export default class PlanningScreen extends React.Component { + render() { const nav = this.props.navigation; return ( @@ -35,34 +36,48 @@ export default class PlanningScreen extends React.Component { justifyContent: 'center', alignItems: 'center', }}> - - - + { Platform.OS === 'android' ? + + + + + +

+ {i18n.t('planningScreen.wipTitle')} +

+ + {i18n.t('planningScreen.wipSubtitle')} + +
+ : + + + } + + -

- {i18n.t('planningScreen.wipTitle')} -

- - {i18n.t('planningScreen.wipSubtitle')} -