-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAbout.js
196 lines (192 loc) · 5.42 KB
/
About.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
import React from 'react'
import {
StyleSheet,
Text,
View,
Linking,
Image,
ScrollView,
TouchableOpacity,
} from 'react-native'
import Button from './components/Button'
import { ContactIcon } from './components/infoComponents'
import language from './helpers/language'
const appJson = require('./app.json')
const AboutScreen = ({ setScreen, settings }) => {
const textColor = settings.isDarkTheme ? 'white' : 'black'
const fontSize = 20
return (
<View
style={{
...styles.container,
backgroundColor: settings.isDarkTheme ? 'black' : 'white',
}}
>
<ScrollView>
<View style={styles.content}>
<Text
style={{
...styles.title,
color: textColor,
}}
>
Force Calc
</Text>
{/* <Text
style={{
...styles.title,
color: settings.isDarkTheme ? 'white' : 'black',
}}
>
О приложении
</Text> */}
<View style={{ paddingHorizontal: 10, paddingTop: 10 }}>
<Text
style={{
...styles.paragraph,
fontSize: fontSize,
color: textColor,
}}
>
{`\t\t\t\t ${language(
settings.language,
'Приложение для форсирования определенного числа или текущей даты и времени'
)}.`}
</Text>
<Text
style={{
...styles.paragraph,
fontSize: fontSize,
color: textColor,
}}
>
{' '}
{`\t\t\t\t ${language(
settings.language,
'Если у Вас появились предложения или замечания по приложению, то сообщите об этом разработчику напрямую'
)}:`}
</Text>
</View>
<View style={styles.contacts}>
<ContactIcon
iconName="telegram"
backgroundColor="#0088cc"
url="http://t.me/escalion"
data="@Escalion"
textColor={textColor}
/>
</View>
<View style={{ ...styles.developer, borderColor: 'gray' }}>
<View style={{ flex: 1 }}>
<Text
style={{
...styles.paragraph,
fontSize: fontSize,
color: textColor,
}}
>
{`${language(settings.language, 'Разработчик')}:`}
</Text>
<Text
style={{
...styles.paragraph,
fontSize: fontSize,
fontStyle: 'italic',
color: textColor,
}}
>
{language(settings.language, 'Алексей Белинский')}
</Text>
<TouchableOpacity
onPress={() => Linking.openURL('https://escalion.ru')}
>
<Text
style={{
...styles.paragraph,
fontStyle: 'italic',
fontSize: fontSize,
color: '#aa77ff',
}}
>
https://Escalion.ru
</Text>
</TouchableOpacity>
</View>
<TouchableOpacity
activeOpacity={1}
// onPressIn={() => setStartToOpenDev(new Date())}
// onPressOut={() => endToOpenDev()}
>
<Image
style={{
width: 96,
height: 96,
}}
source={require('./assets/logo-dev.png')}
// resizeMethod="scale"
resizeMode="cover"
/>
</TouchableOpacity>
</View>
<Button
title={language(settings.language, 'Поблагодарить разработчика')}
color="#aa77ff"
onPress={() =>
Linking.openURL(
'https://www.tinkoff.ru/rm/belinskiy.aleksey5/5Yi7i79252'
)
}
/>
</View>
</ScrollView>
<TouchableOpacity style={{ ...styles.bottom, borderColor: 'gray' }}>
<Text style={{ fontSize: 16, color: textColor }}>
{`${language(settings.language, 'Версия')}: ${appJson.expo.version}`}
</Text>
</TouchableOpacity>
</View>
)
}
export default AboutScreen
const styles = StyleSheet.create({
container: {
display: 'flex',
flex: 1,
paddingVertical: 4,
paddingHorizontal: 6,
},
developer: {
borderTopWidth: 2,
borderBottomWidth: 2,
flexDirection: 'row',
alignItems: 'center',
marginVertical: 20,
paddingHorizontal: 20,
},
contacts: {
flexDirection: 'row',
justifyContent: 'space-evenly',
marginTop: 10,
},
title: {
fontWeight: 'bold',
fontSize: 22,
},
paragraph: {
marginBottom: 6,
},
content: {
flex: 1,
display: 'flex',
alignItems: 'center',
},
bottom: {
// height: 36,
// flex: 1,
// borderLeftColor: 'red',
// borderLeftWidth: 3,
alignItems: 'center',
paddingTop: 5,
borderTopWidth: 1,
},
})