-
-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathAbout.js
66 lines (63 loc) · 1.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
import { useTheme } from "@react-navigation/native";
import { StatusBar } from "expo-status-bar";
import React from "react";
import {
StyleSheet,
View,
Text,
Linking,
TouchableWithoutFeedback,
} from "react-native";
export default function About({ i18n }) {
const { colors, dark } = useTheme();
return (
<View
style={{
paddingVertical: 20,
paddingHorizontal: 20,
flex: 1,
}}
>
<StatusBar style={dark ? "light" : "dark"} />
<Text style={[styles.credit, { color: colors.text }]}>
{i18n.t("about.credit")}
</Text>
<Text style={[styles.item, { color: colors.text }]}>
{i18n.t("about.dict")}
<Text
style={{ color: colors.primary }}
onPress={() => {
Linking.openURL("https://dictionaryapi.dev/");
}}
>
https://dictionaryapi.dev/
</Text>
.
</Text>
<Text style={[styles.item, { color: colors.text }]}>
{i18n.t("about.font")}
<Text
style={{ color: colors.primary }}
onPress={() => {
Linking.openURL("https://ia.net/");
}}
>
https://ia.net/
</Text>
.
</Text>
</View>
);
}
const styles = StyleSheet.create({
credit: {
fontSize: 18,
marginBottom: 24,
fontWeight: "bold",
},
item: {
fontSize: 16,
marginBottom: 16,
lineHeight: 20,
},
});