forked from vergnet/application-amicale
Hide WIP planning text on IOS to allow publishing the app on appstore
This commit is contained in:
parent
f76628313f
commit
82924b2a4b
1 changed files with 43 additions and 28 deletions
|
@ -3,7 +3,7 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import {Button, H3, Text} from 'native-base';
|
import {Button, H3, Text} from 'native-base';
|
||||||
import i18n from "i18n-js";
|
import i18n from "i18n-js";
|
||||||
import {View} from "react-native";
|
import {View, Platform} from "react-native";
|
||||||
import CustomMaterialIcon from "../components/CustomMaterialIcon";
|
import CustomMaterialIcon from "../components/CustomMaterialIcon";
|
||||||
import ThemeManager from "../utils/ThemeManager";
|
import ThemeManager from "../utils/ThemeManager";
|
||||||
import {Linking} from "expo";
|
import {Linking} from "expo";
|
||||||
|
@ -26,6 +26,7 @@ function openWebLink(link) {
|
||||||
*/
|
*/
|
||||||
export default class PlanningScreen extends React.Component<Props> {
|
export default class PlanningScreen extends React.Component<Props> {
|
||||||
|
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const nav = this.props.navigation;
|
const nav = this.props.navigation;
|
||||||
return (
|
return (
|
||||||
|
@ -34,6 +35,12 @@ export default class PlanningScreen extends React.Component<Props> {
|
||||||
flexGrow: 1,
|
flexGrow: 1,
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
|
}}>
|
||||||
|
{ Platform.OS === 'android' ?
|
||||||
|
<View
|
||||||
|
style={{
|
||||||
|
justifyContent: 'center',
|
||||||
|
alignItems: 'center',
|
||||||
}}>
|
}}>
|
||||||
<View style={{
|
<View style={{
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
|
@ -63,6 +70,14 @@ export default class PlanningScreen extends React.Component<Props> {
|
||||||
}}>
|
}}>
|
||||||
{i18n.t('planningScreen.wipSubtitle')}
|
{i18n.t('planningScreen.wipSubtitle')}
|
||||||
</Text>
|
</Text>
|
||||||
|
</View>
|
||||||
|
:
|
||||||
|
<View/>
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<Button block style={{marginTop: 20, marginRight: 10, marginLeft: 10}}
|
<Button block style={{marginTop: 20, marginRight: 10, marginLeft: 10}}
|
||||||
onPress={() => openWebLink('https://www.facebook.com/groups/2054302624595234/')}>
|
onPress={() => openWebLink('https://www.facebook.com/groups/2054302624595234/')}>
|
||||||
<Text>Clubs et Evenements</Text>
|
<Text>Clubs et Evenements</Text>
|
||||||
|
|
Loading…
Reference in a new issue