Hide WIP planning text on IOS to allow publishing the app on appstore

This commit is contained in:
keplyx 2019-08-27 19:40:17 +02:00
parent f76628313f
commit 82924b2a4b

View file

@ -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<Props> {
render() {
const nav = this.props.navigation;
return (
@ -34,6 +35,12 @@ export default class PlanningScreen extends React.Component<Props> {
flexGrow: 1,
justifyContent: 'center',
alignItems: 'center',
}}>
{ Platform.OS === 'android' ?
<View
style={{
justifyContent: 'center',
alignItems: 'center',
}}>
<View style={{
justifyContent: 'center',
@ -63,6 +70,14 @@ export default class PlanningScreen extends React.Component<Props> {
}}>
{i18n.t('planningScreen.wipSubtitle')}
</Text>
</View>
:
<View/>
}
<Button block style={{marginTop: 20, marginRight: 10, marginLeft: 10}}
onPress={() => openWebLink('https://www.facebook.com/groups/2054302624595234/')}>
<Text>Clubs et Evenements</Text>