forked from vergnet/application-amicale
Compare commits
6 commits
133df5bdb7
...
3d482753ed
Author | SHA1 | Date | |
---|---|---|---|
|
3d482753ed | ||
|
195cc68389 | ||
|
e2ad2476b6 | ||
|
a4c602c098 | ||
|
19290a96b1 | ||
|
f16f121dc4 |
5 changed files with 306 additions and 53 deletions
BIN
assets/android.icon.round.png
Normal file
BIN
assets/android.icon.round.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
|
@ -346,12 +346,21 @@
|
||||||
"license": "License",
|
"license": "License",
|
||||||
"debug": "Debug",
|
"debug": "Debug",
|
||||||
"team": "Team",
|
"team": "Team",
|
||||||
"author": "Author and maintainer",
|
|
||||||
"authorMail": "Send an email",
|
|
||||||
"additionalDev": "Thanks",
|
|
||||||
"technologies": "Technologies",
|
"technologies": "Technologies",
|
||||||
"reactNative": "Made with React Native",
|
"reactNative": "Made with React Native",
|
||||||
"libs": "Libraries used"
|
"libs": "Libraries used",
|
||||||
|
"thanks": "Thanks",
|
||||||
|
"user": {
|
||||||
|
"youName": "You",
|
||||||
|
"you": "[NON TRADUIT] Toi aussi devient le prochaint dévelopeur à rejoindre la team, passe voir le git de l'application y'a tout plein d'info",
|
||||||
|
"arnaud": "[NON TRADUIT] Étudiant en IR (2020). C'est le créateur de cette magnifique application que t'utilise tout les jour. Et il est vraiment BG aussi.",
|
||||||
|
"yohan": "[NON TRADUIT] Étudiant en [Je sais pas quoi] (2020). Il nous aide à corriger les bug. Et j'imagine aussi qu'il est BG mais je le connait pas.",
|
||||||
|
"beranger": "[NON TRADUIT] Étudiant en AE (2020) et Président de l’Amicale au moment de la création et du lancement du projet. L’application, c’était son idée. Il a beaucoup aidé pour trouver des bugs, de nouvelles fonctionnalités et faire de la com.",
|
||||||
|
"celine": "[NON TRADUIT] Étudiante en GPE (2020). Sans elle, tout serait moins mignon. Elle a aidé pour écrire le texte, faire de la com, et aussi à créer la mascotte 🦊.",
|
||||||
|
"damien": "[NON TRADUIT] Étudiant en IR (2020) et créateur de la dernière version du site de l’Amicale. Grâce à son aide, intégrer les services de l’Amicale à l’application a été très simple.",
|
||||||
|
"titouan": "[NON TRADUIT] Étudiant en IR (2020). Il a beaucoup aidé pour trouver des bugs et proposer des nouvelles fonctionnalités.",
|
||||||
|
"theo": "[NON TRADUIT] Étudiant en AE (2020). Si l’application marche sur iOS, c’est grâce à son aide lors de ses nombreux tests."
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"feedback": {
|
"feedback": {
|
||||||
"title": "Feedback",
|
"title": "Feedback",
|
||||||
|
|
|
@ -345,12 +345,21 @@
|
||||||
"license": "Licence",
|
"license": "Licence",
|
||||||
"debug": "Debug",
|
"debug": "Debug",
|
||||||
"team": "Équipe",
|
"team": "Équipe",
|
||||||
"author": "Auteur et mainteneur",
|
|
||||||
"authorMail": "Envoyer un mail",
|
|
||||||
"additionalDev": "Remerciements",
|
|
||||||
"technologies": "Technologies",
|
"technologies": "Technologies",
|
||||||
"reactNative": "Créé avec React Native",
|
"reactNative": "Créé avec React Native",
|
||||||
"libs": "Librairies utilisées"
|
"libs": "Librairies utilisées",
|
||||||
|
"thanks": "Remerciements",
|
||||||
|
"user": {
|
||||||
|
"youName": "Toi",
|
||||||
|
"you": "Toi aussi devient le prochaint dévelopeur à rejoindre la team, passe voir le git de l'application y'a tout plein d'info",
|
||||||
|
"arnaud": "Étudiant en IR (2020). C'est le créateur de cette magnifique application que t'utilise tout les jour. Et il est vraiment BG aussi.",
|
||||||
|
"yohan": "Étudiant en [Je sais pas quoi] (2020). Il nous aide à corriger les bug. Et j'imagine aussi qu'il est BG mais je le connait pas.",
|
||||||
|
"beranger": "Étudiant en AE (2020) et Président de l’Amicale au moment de la création et du lancement du projet. L’application, c’était son idée. Il a beaucoup aidé pour trouver des bugs, de nouvelles fonctionnalités et faire de la com.",
|
||||||
|
"celine": "Étudiante en GPE (2020). Sans elle, tout serait moins mignon. Elle a aidé pour écrire le texte, faire de la com, et aussi à créer la mascotte 🦊.",
|
||||||
|
"damien": "Étudiant en IR (2020) et créateur de la dernière version du site de l’Amicale. Grâce à son aide, intégrer les services de l’Amicale à l’application a été très simple.",
|
||||||
|
"titouan": "Étudiant en IR (2020). Il a beaucoup aidé pour trouver des bugs et proposer des nouvelles fonctionnalités.",
|
||||||
|
"theo": "Étudiant en AE (2020). Si l’application marche sur iOS, c’est grâce à son aide lors de ses nombreux tests."
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"feedback": {
|
"feedback": {
|
||||||
"title": "Feedback",
|
"title": "Feedback",
|
||||||
|
|
|
@ -6,6 +6,7 @@ import {FlatList} from 'react-native';
|
||||||
|
|
||||||
export type OptionsDialogButtonType = {
|
export type OptionsDialogButtonType = {
|
||||||
title: string,
|
title: string,
|
||||||
|
icon?: string,
|
||||||
onPress: () => void,
|
onPress: () => void,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -19,10 +20,19 @@ type PropsType = {
|
||||||
|
|
||||||
class OptionsDialog extends React.PureComponent<PropsType> {
|
class OptionsDialog extends React.PureComponent<PropsType> {
|
||||||
getButtonRender = ({item}: {item: OptionsDialogButtonType}): React.Node => {
|
getButtonRender = ({item}: {item: OptionsDialogButtonType}): React.Node => {
|
||||||
return <Button onPress={item.onPress}>{item.title}</Button>;
|
return (
|
||||||
|
<Button onPress={item.onPress} icon={item.icon}>
|
||||||
|
{item.title}
|
||||||
|
</Button>
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
keyExtractor = (item: OptionsDialogButtonType): string => item.title;
|
keyExtractor = (item: OptionsDialogButtonType): string => {
|
||||||
|
if (item.icon != null) {
|
||||||
|
return item.title + item.icon;
|
||||||
|
}
|
||||||
|
return item.title;
|
||||||
|
};
|
||||||
|
|
||||||
render(): React.Node {
|
render(): React.Node {
|
||||||
const {props} = this;
|
const {props} = this;
|
||||||
|
|
|
@ -1,17 +1,19 @@
|
||||||
// @flow
|
// @flow
|
||||||
|
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import {FlatList, Linking, Platform, Image} from 'react-native';
|
import {FlatList, Linking, Platform, Image, View} from 'react-native';
|
||||||
import i18n from 'i18n-js';
|
import i18n from 'i18n-js';
|
||||||
import {Avatar, Card, List, Title, withTheme} from 'react-native-paper';
|
import {Avatar, Card, List, withTheme} from 'react-native-paper';
|
||||||
import {StackNavigationProp} from '@react-navigation/stack';
|
import {StackNavigationProp} from '@react-navigation/stack';
|
||||||
|
import {Modalize} from 'react-native-modalize';
|
||||||
import packageJson from '../../../package.json';
|
import packageJson from '../../../package.json';
|
||||||
import CollapsibleFlatList from '../../components/Collapsible/CollapsibleFlatList';
|
import CollapsibleFlatList from '../../components/Collapsible/CollapsibleFlatList';
|
||||||
import APP_LOGO from '../../../assets/android.icon.png';
|
import APP_LOGO from '../../../assets/android.icon.round.png';
|
||||||
import type {
|
import type {
|
||||||
CardTitleIconPropsType,
|
CardTitleIconPropsType,
|
||||||
ListIconPropsType,
|
ListIconPropsType,
|
||||||
} from '../../constants/PaperStyles';
|
} from '../../constants/PaperStyles';
|
||||||
|
import OptionsDialog from '../../components/Dialogs/OptionsDialog';
|
||||||
|
|
||||||
type ListItemType = {
|
type ListItemType = {
|
||||||
onPressCallback: () => void,
|
onPressCallback: () => void,
|
||||||
|
@ -20,6 +22,14 @@ type ListItemType = {
|
||||||
showChevron: boolean,
|
showChevron: boolean,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
type AthorsItemType = {
|
||||||
|
name: string,
|
||||||
|
message: string,
|
||||||
|
btnTrool: OptionsDialogButtonType,
|
||||||
|
btnLinkedin: OptionsDialogButtonType,
|
||||||
|
btnMail: OptionsDialogButtonType,
|
||||||
|
};
|
||||||
|
|
||||||
const links = {
|
const links = {
|
||||||
appstore: 'https://apps.apple.com/us/app/campus-amicale-insat/id1477722148',
|
appstore: 'https://apps.apple.com/us/app/campus-amicale-insat/id1477722148',
|
||||||
playstore:
|
playstore:
|
||||||
|
@ -30,13 +40,13 @@ const links = {
|
||||||
'https://git.etud.insa-toulouse.fr/vergnet/application-amicale/src/branch/master/Changelog.md',
|
'https://git.etud.insa-toulouse.fr/vergnet/application-amicale/src/branch/master/Changelog.md',
|
||||||
license:
|
license:
|
||||||
'https://git.etud.insa-toulouse.fr/vergnet/application-amicale/src/branch/master/LICENSE',
|
'https://git.etud.insa-toulouse.fr/vergnet/application-amicale/src/branch/master/LICENSE',
|
||||||
authorMail:
|
arnaudMail:
|
||||||
'mailto:vergnet@etud.insa-toulouse.fr?' +
|
'mailto:vergnet@etud.insa-toulouse.fr?' +
|
||||||
'subject=' +
|
'subject=' +
|
||||||
'Application Amicale INSA Toulouse' +
|
'Application Amicale INSA Toulouse' +
|
||||||
'&body=' +
|
'&body=' +
|
||||||
'Coucou !\n\n',
|
'Coucou !\n\n',
|
||||||
authorLinkedin: 'https://www.linkedin.com/in/arnaud-vergnet-434ba5179/',
|
arnaudLinkedin: 'https://www.linkedin.com/in/arnaud-vergnet-434ba5179/',
|
||||||
yohanMail:
|
yohanMail:
|
||||||
'mailto:ysimard@etud.insa-toulouse.fr?' +
|
'mailto:ysimard@etud.insa-toulouse.fr?' +
|
||||||
'subject=' +
|
'subject=' +
|
||||||
|
@ -64,6 +74,119 @@ function openWebLink(link: string) {
|
||||||
* Class defining an about screen. This screen shows the user information about the app and it's author.
|
* Class defining an about screen. This screen shows the user information about the app and it's author.
|
||||||
*/
|
*/
|
||||||
class AboutScreen extends React.Component<PropsType> {
|
class AboutScreen extends React.Component<PropsType> {
|
||||||
|
modalRef: Modalize | null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Data team
|
||||||
|
*/
|
||||||
|
teamUsers = {
|
||||||
|
arnaud: {
|
||||||
|
name: 'Arnaud Vergnrt',
|
||||||
|
message: i18n.t('screens.about.user.arnaud'),
|
||||||
|
icon: 'crown',
|
||||||
|
btnTrool: {
|
||||||
|
title: 'SWAG',
|
||||||
|
onPress: () => {
|
||||||
|
openWebLink(links.meme);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
btnLinkedin: {
|
||||||
|
title: '',
|
||||||
|
icon: 'linkedin',
|
||||||
|
onPress: () => {
|
||||||
|
openWebLink(links.arnaudMail);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
btnMail: {
|
||||||
|
title: '',
|
||||||
|
icon: 'email-edit',
|
||||||
|
onPress: () => {
|
||||||
|
openWebLink(links.arnaudLinkedin);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
yohan: {
|
||||||
|
name: 'Yohan Simard',
|
||||||
|
message: i18n.t('screens.about.user.yohan'),
|
||||||
|
icon: 'xml',
|
||||||
|
btnTrool: null,
|
||||||
|
btnLinkedin: {
|
||||||
|
title: '',
|
||||||
|
icon: 'linkedin',
|
||||||
|
onPress: () => {
|
||||||
|
openWebLink(links.yohanLinkedin);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
btnMail: {
|
||||||
|
title: '',
|
||||||
|
icon: 'email-edit',
|
||||||
|
onPress: () => {
|
||||||
|
openWebLink(links.yohanMail);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
you: {
|
||||||
|
name: i18n.t('screens.about.user.youName'),
|
||||||
|
message: i18n.t('screens.about.user.you'),
|
||||||
|
icon: 'hand-pointing-right',
|
||||||
|
btnTrool: {
|
||||||
|
title: '',
|
||||||
|
icon: 'git',
|
||||||
|
onPress: () => {
|
||||||
|
openWebLink(links.git);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
btnLinkedin: null,
|
||||||
|
btnMail: null,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Data thanks
|
||||||
|
*/
|
||||||
|
thanksUsers = {
|
||||||
|
beranger: {
|
||||||
|
name: 'Béranger Quintana Y Arciosana',
|
||||||
|
message: i18n.t('screens.about.user.beranger'),
|
||||||
|
icon: 'account-heart',
|
||||||
|
btnTrool: null,
|
||||||
|
btnLinkedin: null,
|
||||||
|
btnMail: null,
|
||||||
|
},
|
||||||
|
celine: {
|
||||||
|
name: 'Céline Tassin',
|
||||||
|
message: i18n.t('screens.about.user.celine'),
|
||||||
|
icon: 'brush',
|
||||||
|
btnTrool: null,
|
||||||
|
btnLinkedin: null,
|
||||||
|
btnMail: null,
|
||||||
|
},
|
||||||
|
damien: {
|
||||||
|
name: 'Damien Molina',
|
||||||
|
message: i18n.t('screens.about.user.damien'),
|
||||||
|
icon: 'web',
|
||||||
|
btnTrool: null,
|
||||||
|
btnLinkedin: null,
|
||||||
|
btnMail: null,
|
||||||
|
},
|
||||||
|
titouan: {
|
||||||
|
name: 'Titouan Labourdette',
|
||||||
|
message: i18n.t('screens.about.user.titouan'),
|
||||||
|
icon: 'shield-bug',
|
||||||
|
btnTrool: null,
|
||||||
|
btnLinkedin: null,
|
||||||
|
btnMail: null,
|
||||||
|
},
|
||||||
|
theo: {
|
||||||
|
name: 'Théo Tami',
|
||||||
|
message: i18n.t('screens.about.user.theo'),
|
||||||
|
icon: 'food-apple',
|
||||||
|
btnTrool: null,
|
||||||
|
btnLinkedin: null,
|
||||||
|
btnMail: null,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Data to be displayed in the app card
|
* Data to be displayed in the app card
|
||||||
*/
|
*/
|
||||||
|
@ -115,60 +238,78 @@ class AboutScreen extends React.Component<PropsType> {
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Data to be displayed in the author card
|
* Data to be displayed in the additional developer card
|
||||||
*/
|
*/
|
||||||
authorData = [
|
teamData = [
|
||||||
{
|
{
|
||||||
onPressCallback: () => {
|
onPressCallback: () => {
|
||||||
openWebLink(links.meme);
|
this.onListItemPress(this.teamUsers.arnaud);
|
||||||
},
|
},
|
||||||
icon: 'account-circle',
|
icon: this.teamUsers.arnaud.icon,
|
||||||
text: 'Arnaud VERGNET',
|
text: this.teamUsers.arnaud.name,
|
||||||
showChevron: false,
|
showChevron: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
onPressCallback: () => {
|
onPressCallback: () => {
|
||||||
openWebLink(links.authorMail);
|
this.onListItemPress(this.teamUsers.yohan);
|
||||||
},
|
},
|
||||||
icon: 'email',
|
icon: this.teamUsers.yohan.icon,
|
||||||
text: i18n.t('screens.about.authorMail'),
|
text: this.teamUsers.yohan.name,
|
||||||
showChevron: true,
|
showChevron: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
onPressCallback: () => {
|
onPressCallback: () => {
|
||||||
openWebLink(links.authorLinkedin);
|
this.onListItemPress(this.teamUsers.you);
|
||||||
},
|
},
|
||||||
icon: 'linkedin',
|
icon: this.teamUsers.you.icon,
|
||||||
text: 'Linkedin',
|
text: this.teamUsers.you.name,
|
||||||
showChevron: true,
|
showChevron: false,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Data to be displayed in the additional developer card
|
* Data to be displayed in the thanks card
|
||||||
*/
|
*/
|
||||||
additionalDevData = [
|
thanksData = [
|
||||||
{
|
{
|
||||||
onPressCallback: () => {},
|
onPressCallback: () => {
|
||||||
icon: 'account',
|
this.onListItemPress(this.thanksUsers.beranger);
|
||||||
text: 'Yohan SIMARD',
|
},
|
||||||
|
icon: this.thanksUsers.beranger.icon,
|
||||||
|
text: this.thanksUsers.beranger.name,
|
||||||
showChevron: false,
|
showChevron: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
onPressCallback: () => {
|
onPressCallback: () => {
|
||||||
openWebLink(links.yohanMail);
|
this.onListItemPress(this.thanksUsers.celine);
|
||||||
},
|
},
|
||||||
icon: 'email',
|
icon: this.thanksUsers.celine.icon,
|
||||||
text: i18n.t('screens.about.authorMail'),
|
text: this.thanksUsers.celine.name,
|
||||||
showChevron: true,
|
showChevron: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
onPressCallback: () => {
|
onPressCallback: () => {
|
||||||
openWebLink(links.yohanLinkedin);
|
this.onListItemPress(this.thanksUsers.damien);
|
||||||
},
|
},
|
||||||
icon: 'linkedin',
|
icon: this.thanksUsers.damien.icon,
|
||||||
text: 'Linkedin',
|
text: this.thanksUsers.damien.name,
|
||||||
showChevron: true,
|
showChevron: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
onPressCallback: () => {
|
||||||
|
this.onListItemPress(this.thanksUsers.titouan);
|
||||||
|
},
|
||||||
|
icon: this.thanksUsers.titouan.icon,
|
||||||
|
text: this.thanksUsers.titouan.name,
|
||||||
|
showChevron: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
onPressCallback: () => {
|
||||||
|
this.onListItemPress(this.thanksUsers.theo);
|
||||||
|
},
|
||||||
|
icon: this.thanksUsers.theo.icon,
|
||||||
|
text: this.thanksUsers.theo.name,
|
||||||
|
showChevron: false,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -205,11 +346,59 @@ class AboutScreen extends React.Component<PropsType> {
|
||||||
{
|
{
|
||||||
id: 'team',
|
id: 'team',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 'thanks',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: 'techno',
|
id: 'techno',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
constructor(props: PropsType) {
|
||||||
|
super(props);
|
||||||
|
this.state = {
|
||||||
|
dialogVisible: false,
|
||||||
|
dialogTitle: '',
|
||||||
|
dialogMessage: '',
|
||||||
|
dialogButtons: [],
|
||||||
|
onDialogDismiss: () => {
|
||||||
|
this.setState({dialogVisible: false});
|
||||||
|
},
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Callback used when clicking an article in the list.
|
||||||
|
* It opens the modal to show detailed information about the article
|
||||||
|
*
|
||||||
|
* @param user A user key
|
||||||
|
*/
|
||||||
|
onListItemPress(user: AthorsItemType) {
|
||||||
|
const dialogBtn: Array<IconOptionsDialogButtonType> = [
|
||||||
|
{
|
||||||
|
title: 'OK',
|
||||||
|
onPress: () => {
|
||||||
|
this.setState({dialogVisible: false});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
];
|
||||||
|
if (user.btnMail != null) {
|
||||||
|
dialogBtn.push(user.btnMail);
|
||||||
|
}
|
||||||
|
if (user.btnLinkedin != null) {
|
||||||
|
dialogBtn.push(user.btnLinkedin);
|
||||||
|
}
|
||||||
|
if (user.btnTrool != null) {
|
||||||
|
dialogBtn.push(user.btnTrool);
|
||||||
|
}
|
||||||
|
this.setState({
|
||||||
|
dialogVisible: true,
|
||||||
|
dialogTitle: user.name,
|
||||||
|
dialogMessage: user.message,
|
||||||
|
dialogButtons: dialogBtn,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the app card showing information and links about the app.
|
* Gets the app card showing information and links about the app.
|
||||||
*
|
*
|
||||||
|
@ -255,18 +444,34 @@ class AboutScreen extends React.Component<PropsType> {
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
<Card.Content>
|
<Card.Content>
|
||||||
<Title>{i18n.t('screens.about.author')}</Title>
|
|
||||||
<FlatList
|
<FlatList
|
||||||
data={this.authorData}
|
data={this.teamData}
|
||||||
keyExtractor={this.keyExtractor}
|
keyExtractor={this.keyExtractor}
|
||||||
listKey="1"
|
|
||||||
renderItem={this.getCardItem}
|
renderItem={this.getCardItem}
|
||||||
/>
|
/>
|
||||||
<Title>{i18n.t('screens.about.additionalDev')}</Title>
|
</Card.Content>
|
||||||
|
</Card>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the thank you card showing support information and links
|
||||||
|
*
|
||||||
|
* @return {*}
|
||||||
|
*/
|
||||||
|
getThanksCard(): React.Node {
|
||||||
|
return (
|
||||||
|
<Card style={{marginBottom: 10}}>
|
||||||
|
<Card.Title
|
||||||
|
title={i18n.t('screens.about.thanks')}
|
||||||
|
left={(iconProps: CardTitleIconPropsType): React.Node => (
|
||||||
|
<Avatar.Icon size={iconProps.size} icon="hand-heart" />
|
||||||
|
)}
|
||||||
|
/>
|
||||||
|
<Card.Content>
|
||||||
<FlatList
|
<FlatList
|
||||||
data={this.additionalDevData}
|
data={this.thanksData}
|
||||||
keyExtractor={this.keyExtractor}
|
keyExtractor={this.keyExtractor}
|
||||||
listKey="2"
|
|
||||||
renderItem={this.getCardItem}
|
renderItem={this.getCardItem}
|
||||||
/>
|
/>
|
||||||
</Card.Content>
|
</Card.Content>
|
||||||
|
@ -282,8 +487,13 @@ class AboutScreen extends React.Component<PropsType> {
|
||||||
getTechnoCard(): React.Node {
|
getTechnoCard(): React.Node {
|
||||||
return (
|
return (
|
||||||
<Card style={{marginBottom: 10}}>
|
<Card style={{marginBottom: 10}}>
|
||||||
|
<Card.Title
|
||||||
|
title={i18n.t('screens.about.technologies')}
|
||||||
|
left={(iconProps: CardTitleIconPropsType): React.Node => (
|
||||||
|
<Avatar.Icon size={iconProps.size} icon="wrench" />
|
||||||
|
)}
|
||||||
|
/>
|
||||||
<Card.Content>
|
<Card.Content>
|
||||||
<Title>{i18n.t('screens.about.technologies')}</Title>
|
|
||||||
<FlatList
|
<FlatList
|
||||||
data={this.technoData}
|
data={this.technoData}
|
||||||
keyExtractor={this.keyExtractor}
|
keyExtractor={this.keyExtractor}
|
||||||
|
@ -358,6 +568,8 @@ class AboutScreen extends React.Component<PropsType> {
|
||||||
return this.getAppCard();
|
return this.getAppCard();
|
||||||
case 'team':
|
case 'team':
|
||||||
return this.getTeamCard();
|
return this.getTeamCard();
|
||||||
|
case 'thanks':
|
||||||
|
return this.getThanksCard();
|
||||||
case 'techno':
|
case 'techno':
|
||||||
return this.getTechnoCard();
|
return this.getTechnoCard();
|
||||||
default:
|
default:
|
||||||
|
@ -374,12 +586,25 @@ class AboutScreen extends React.Component<PropsType> {
|
||||||
keyExtractor = (item: ListItemType): string => item.icon;
|
keyExtractor = (item: ListItemType): string => item.icon;
|
||||||
|
|
||||||
render(): React.Node {
|
render(): React.Node {
|
||||||
|
const {state} = this;
|
||||||
return (
|
return (
|
||||||
|
<View
|
||||||
|
style={{
|
||||||
|
height: '100%',
|
||||||
|
}}>
|
||||||
<CollapsibleFlatList
|
<CollapsibleFlatList
|
||||||
style={{padding: 5}}
|
style={{padding: 5}}
|
||||||
data={this.dataOrder}
|
data={this.dataOrder}
|
||||||
renderItem={this.getMainCard}
|
renderItem={this.getMainCard}
|
||||||
/>
|
/>
|
||||||
|
<OptionsDialog
|
||||||
|
visible={state.dialogVisible}
|
||||||
|
title={state.dialogTitle}
|
||||||
|
message={state.dialogMessage}
|
||||||
|
buttons={state.dialogButtons}
|
||||||
|
onDismiss={state.onDialogDismiss}
|
||||||
|
/>
|
||||||
|
</View>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue