|
@@ -3,7 +3,7 @@
|
3
|
3
|
import * as React from 'react';
|
4
|
4
|
import {Button, H3, Text} from 'native-base';
|
5
|
5
|
import i18n from "i18n-js";
|
6
|
|
-import {View} from "react-native";
|
|
6
|
+import {View, Platform} from "react-native";
|
7
|
7
|
import CustomMaterialIcon from "../components/CustomMaterialIcon";
|
8
|
8
|
import ThemeManager from "../utils/ThemeManager";
|
9
|
9
|
import {Linking} from "expo";
|
|
@@ -26,6 +26,7 @@ function openWebLink(link) {
|
26
|
26
|
*/
|
27
|
27
|
export default class PlanningScreen extends React.Component<Props> {
|
28
|
28
|
|
|
29
|
+
|
29
|
30
|
render() {
|
30
|
31
|
const nav = this.props.navigation;
|
31
|
32
|
return (
|
|
@@ -35,34 +36,48 @@ export default class PlanningScreen extends React.Component<Props> {
|
35
|
36
|
justifyContent: 'center',
|
36
|
37
|
alignItems: 'center',
|
37
|
38
|
}}>
|
38
|
|
- <View style={{
|
39
|
|
- justifyContent: 'center',
|
40
|
|
- alignItems: 'center',
|
41
|
|
- width: '100%',
|
42
|
|
- height: 100,
|
43
|
|
- marginBottom: 20
|
44
|
|
- }}>
|
45
|
|
- <CustomMaterialIcon
|
46
|
|
- icon={'forklift'}
|
47
|
|
- fontSize={100}
|
48
|
|
- width={100}
|
49
|
|
- color={ThemeManager.getCurrentThemeVariables().fetchedDataSectionListErrorText}/>
|
50
|
|
- </View>
|
|
39
|
+ { Platform.OS === 'android' ?
|
|
40
|
+ <View
|
|
41
|
+ style={{
|
|
42
|
+ justifyContent: 'center',
|
|
43
|
+ alignItems: 'center',
|
|
44
|
+ }}>
|
|
45
|
+ <View style={{
|
|
46
|
+ justifyContent: 'center',
|
|
47
|
+ alignItems: 'center',
|
|
48
|
+ width: '100%',
|
|
49
|
+ height: 100,
|
|
50
|
+ marginBottom: 20
|
|
51
|
+ }}>
|
|
52
|
+ <CustomMaterialIcon
|
|
53
|
+ icon={'forklift'}
|
|
54
|
+ fontSize={100}
|
|
55
|
+ width={100}
|
|
56
|
+ color={ThemeManager.getCurrentThemeVariables().fetchedDataSectionListErrorText}/>
|
|
57
|
+ </View>
|
|
58
|
+
|
|
59
|
+ <H3 style={{
|
|
60
|
+ textAlign: 'center',
|
|
61
|
+ marginRight: 20,
|
|
62
|
+ marginLeft: 20,
|
|
63
|
+ color: ThemeManager.getCurrentThemeVariables().fetchedDataSectionListErrorText
|
|
64
|
+ }}>
|
|
65
|
+ {i18n.t('planningScreen.wipTitle')}
|
|
66
|
+ </H3>
|
|
67
|
+ <Text style={{
|
|
68
|
+ textAlign: 'center',
|
|
69
|
+ color: ThemeManager.getCurrentThemeVariables().fetchedDataSectionListErrorText
|
|
70
|
+ }}>
|
|
71
|
+ {i18n.t('planningScreen.wipSubtitle')}
|
|
72
|
+ </Text>
|
|
73
|
+ </View>
|
|
74
|
+ :
|
|
75
|
+ <View/>
|
|
76
|
+
|
|
77
|
+ }
|
|
78
|
+
|
|
79
|
+
|
51
|
80
|
|
52
|
|
- <H3 style={{
|
53
|
|
- textAlign: 'center',
|
54
|
|
- marginRight: 20,
|
55
|
|
- marginLeft: 20,
|
56
|
|
- color: ThemeManager.getCurrentThemeVariables().fetchedDataSectionListErrorText
|
57
|
|
- }}>
|
58
|
|
- {i18n.t('planningScreen.wipTitle')}
|
59
|
|
- </H3>
|
60
|
|
- <Text style={{
|
61
|
|
- textAlign: 'center',
|
62
|
|
- color: ThemeManager.getCurrentThemeVariables().fetchedDataSectionListErrorText
|
63
|
|
- }}>
|
64
|
|
- {i18n.t('planningScreen.wipSubtitle')}
|
65
|
|
- </Text>
|
66
|
81
|
<Button block style={{marginTop: 20, marginRight: 10, marginLeft: 10}}
|
67
|
82
|
onPress={() => openWebLink('https://www.facebook.com/groups/2054302624595234/')}>
|
68
|
83
|
<Text>Clubs et Evenements</Text>
|