From b156447229732d9a69cbf7aa10b8a18f50ee7d12 Mon Sep 17 00:00:00 2001 From: Dastan21 Date: Sat, 22 May 2021 23:12:18 +0200 Subject: [PATCH] enhanced About screen --- assets/img/about_icon.png | Bin 0 -> 2126 bytes assets/styles/styles.js | 26 +++++++++++++++++++++----- components/AboutScreen.js | 16 +++++++++++++--- components/ChapterScreen.js | 3 ++- 4 files changed, 36 insertions(+), 9 deletions(-) create mode 100644 assets/img/about_icon.png diff --git a/assets/img/about_icon.png b/assets/img/about_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..422cd1907176a05594e3b34b6c24f15c5b5d240d GIT binary patch literal 2126 zcmV-U2(kBxP)C00001b5ch_0Itp) z=>Px#1ZP1_K>z@;j|==^1poj7!B9+8MG_YtIwK#LKO`0y9%L^e;#Mc_Stn8|AYm>c z>sTl7S}4CuB^4MRLM0&QS10dTCuuPu7#JQfARkUCAYv~eT`eI|Dj*mc9>Gi{+fyeq zARiMK9+W;K-c%>GNF{GGBFs-FCLJCwA0MVeBy*e!#QR7x8z)K~XKqPcDB2OtGCmkN~ zXF2$;mHzbc{Nmd2VKM4hC%#K1EFK@pPA2u2c=^Jw`_8}kwx9BCLBvcZr9&iwI3r#z zAv_}=EFT}vP$sNJBwH;Zqe3J}Cm^~>C3-d@IU*k@9UtITC$B~&ODG_HHzFz?AL&>p zRVyK!KqPB2BHB|Yph6@^Cm<;vA9gh&nLi{!B_JCa9?MQ9d^aL!F(FnfA+SazO(-BG z9UdPV9@bJOZ89R{Rwsx$BU&sW*HR|aQ6?Z89!e-6w@4)-93GQCBhgSMem5eyNhL)l zARZbX;Z-L=Bp|&?C5t;FW-uYVN+nDvAR`VGd00kCFL_t(|UhUfXUle5=2k-@PYiGd$ z5orMnTna-XB^4DD2y+)RrR@MDD@?kulkRr$=)i6=%Mv9eFhGLR(#r7YFf2{1u+z$l zuD_x=J|Vm8?mV;mecZv!DaT@=XqvL27|$1Fr1DeB1hq9WJHZNpMk>> zai&EOtkGzUfS56Y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A9z!nyI8*!fQ#>yTti0du_CHAwEr0&i@8C5a57u*Z)8Bi&?uRi& z2m1c`m)q;^Ph4+Od;d7a$z_gxL=TD#27|$17=9+xf3~TJNvi91BLDyZ07*qoM6N<$ Ef_5sRD*ylh literal 0 HcmV?d00001 diff --git a/assets/styles/styles.js b/assets/styles/styles.js index 7a78e9c..fb703de 100644 --- a/assets/styles/styles.js +++ b/assets/styles/styles.js @@ -38,8 +38,7 @@ export default StyleSheet.create({ }, text: { fontSize: 18, - color: colors.white, - // fontFamily: "Source Sans Pro" + color: colors.white }, link: { fontSize: 18, @@ -268,12 +267,29 @@ export default StyleSheet.create({ aboutContainer: { flex: 1, marginVertical: 32, - textAlign: 'left' + textAlign: 'left', + alignItems: 'center' }, aboutTitle: { fontSize: 20, fontWeight: 'bold', - marginTop: 16, - marginBottom: 8 + marginTop: 8 + }, + aboutImage: { + width: 80, + height: 80, + borderRadius: 80, + borderColor: colors.orange, + borderWidth: 1 + }, + aboutVersion: { + marginBottom: 16, + marginRight: 32, + width: "100%" + }, + aboutVersionText: { + fontSize: 12, + color: colors.secondary, + textAlign: 'right' } }); diff --git a/components/AboutScreen.js b/components/AboutScreen.js index 4e79cb1..3e3c49d 100644 --- a/components/AboutScreen.js +++ b/components/AboutScreen.js @@ -1,4 +1,4 @@ -import React from 'react'; +import React, { useEffect } from 'react'; import { View, Image, @@ -15,23 +15,33 @@ const AboutScreen = () => { if (supported) Linking.openURL(url).catch(() => {}); }).catch(() => {}); } + + useEffect(() => { + Image.resolveAssetSource({ uri: '../assets/img/about_icon.png' }); + }, []); + return ( - Team Scantrad France : + + Team Scantrad France Équipe de traduction de divers mangas. openURL("https://linktr.ee/scantradfrance")}>Linktree - Dastan21 : + + Dastan21 Développeur de l'application mobile. openURL("https://github.com/Dastan21")}>Github + + v2.2.1 + ); diff --git a/components/ChapterScreen.js b/components/ChapterScreen.js index c8f1ce2..4c6b3a5 100644 --- a/components/ChapterScreen.js +++ b/components/ChapterScreen.js @@ -140,9 +140,10 @@ const ChapterScreen = ({ navigation, route }) => { } useEffect(() => { + Image.resolveAssetSource({uri: '../assets/img/settings.png'}); + updateHeader(); loadChapterPages(); - Image.resolveAssetSource({uri: '../assets/img/settings.png'}); }, []); useEffect(() => {