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 (
|
||||||
|
@ -35,34 +36,48 @@ export default class PlanningScreen extends React.Component<Props> {
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
}}>
|
}}>
|
||||||
<View style={{
|
{ Platform.OS === 'android' ?
|
||||||
justifyContent: 'center',
|
<View
|
||||||
alignItems: 'center',
|
style={{
|
||||||
width: '100%',
|
justifyContent: 'center',
|
||||||
height: 100,
|
alignItems: 'center',
|
||||||
marginBottom: 20
|
}}>
|
||||||
}}>
|
<View style={{
|
||||||
<CustomMaterialIcon
|
justifyContent: 'center',
|
||||||
icon={'forklift'}
|
alignItems: 'center',
|
||||||
fontSize={100}
|
width: '100%',
|
||||||
width={100}
|
height: 100,
|
||||||
color={ThemeManager.getCurrentThemeVariables().fetchedDataSectionListErrorText}/>
|
marginBottom: 20
|
||||||
</View>
|
}}>
|
||||||
|
<CustomMaterialIcon
|
||||||
|
icon={'forklift'}
|
||||||
|
fontSize={100}
|
||||||
|
width={100}
|
||||||
|
color={ThemeManager.getCurrentThemeVariables().fetchedDataSectionListErrorText}/>
|
||||||
|
</View>
|
||||||
|
|
||||||
|
<H3 style={{
|
||||||
|
textAlign: 'center',
|
||||||
|
marginRight: 20,
|
||||||
|
marginLeft: 20,
|
||||||
|
color: ThemeManager.getCurrentThemeVariables().fetchedDataSectionListErrorText
|
||||||
|
}}>
|
||||||
|
{i18n.t('planningScreen.wipTitle')}
|
||||||
|
</H3>
|
||||||
|
<Text style={{
|
||||||
|
textAlign: 'center',
|
||||||
|
color: ThemeManager.getCurrentThemeVariables().fetchedDataSectionListErrorText
|
||||||
|
}}>
|
||||||
|
{i18n.t('planningScreen.wipSubtitle')}
|
||||||
|
</Text>
|
||||||
|
</View>
|
||||||
|
:
|
||||||
|
<View/>
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<H3 style={{
|
|
||||||
textAlign: 'center',
|
|
||||||
marginRight: 20,
|
|
||||||
marginLeft: 20,
|
|
||||||
color: ThemeManager.getCurrentThemeVariables().fetchedDataSectionListErrorText
|
|
||||||
}}>
|
|
||||||
{i18n.t('planningScreen.wipTitle')}
|
|
||||||
</H3>
|
|
||||||
<Text style={{
|
|
||||||
textAlign: 'center',
|
|
||||||
color: ThemeManager.getCurrentThemeVariables().fetchedDataSectionListErrorText
|
|
||||||
}}>
|
|
||||||
{i18n.t('planningScreen.wipSubtitle')}
|
|
||||||
</Text>
|
|
||||||
<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