Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Commit

Permalink
enhanced About screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Dastan21 committed May 22, 2021
1 parent bf1ed77 commit b156447
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 9 deletions.
Binary file added assets/img/about_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 21 additions & 5 deletions assets/styles/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ export default StyleSheet.create({
},
text: {
fontSize: 18,
color: colors.white,
// fontFamily: "Source Sans Pro"
color: colors.white
},
link: {
fontSize: 18,
Expand Down Expand Up @@ -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'
}
});
16 changes: 13 additions & 3 deletions components/AboutScreen.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import React, { useEffect } from 'react';
import {
View,
Image,
Expand All @@ -15,23 +15,33 @@ const AboutScreen = () => {
if (supported) Linking.openURL(url).catch(() => {});
}).catch(() => {});
}

useEffect(() => {
Image.resolveAssetSource({ uri: '../assets/img/about_icon.png' });
}, []);

return (
<BackgroundImage>
<View style={styles.container}>
<View style={styles.container}>
<View style={styles.aboutContainer}>
<Text style={[styles.text, styles.aboutTitle]}>Team Scantrad France :</Text>
<Image style={styles.aboutImage} source={require('../assets/img/about_icon.png')}></Image>
<Text style={[styles.text, styles.aboutTitle]}>Team Scantrad France</Text>
<Text style={styles.text}>Équipe de traduction de divers mangas.</Text>
<Text style={styles.link} onPress={() => openURL("https://linktr.ee/scantradfrance")}>Linktree</Text>
</View>
</View>
<View style={styles.container}>
<View style={styles.aboutContainer}>
<Text style={[styles.text, styles.aboutTitle]}>Dastan21 :</Text>
<Image style={styles.aboutImage} source={{ uri: "https://avatars.githubusercontent.com/u/58090137?v=4" }}></Image>
<Text style={[styles.text, styles.aboutTitle]}>Dastan21</Text>
<Text style={styles.text}>Développeur de l'application mobile.</Text>
<Text style={styles.link} onPress={() => openURL("https://github.com/Dastan21")}>Github</Text>
</View>
</View>
<View style={styles.aboutVersion}>
<Text style={[styles.text, styles.aboutVersionText]}>v2.2.1</Text>
</View>
</View>
</BackgroundImage>
);
Expand Down
3 changes: 2 additions & 1 deletion components/ChapterScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit b156447

Please sign in to comment.