Improve linking and link more things

This commit is contained in:
Julia Friesel
2018-12-23 18:15:03 +01:00
parent 300d7178f1
commit 27b4a454ec
7 changed files with 76 additions and 39 deletions
+5 -1
View File
@@ -1,16 +1,20 @@
import React, { Component } from 'react'
import { ScrollView } from 'react-native'
import Hyperlink from 'react-native-hyperlink'
import AppText from '../app-text'
import SettingsSegment from './settings-segment'
import styles from '../../styles/index'
import labels from '../../i18n/en/settings'
import replace from '../helpers/replace-url-with-text'
export default class AboutSection extends Component {
render() {
return (
<ScrollView>
<SettingsSegment title={`${labels.aboutSection.title} `}>
<AppText>{`${labels.aboutSection.segmentExplainer} `}</AppText>
<Hyperlink linkStyle={styles.link} linkText={replace}>
<AppText>{`${labels.aboutSection.segmentExplainer} `}</AppText>
</Hyperlink>
</SettingsSegment>
<SettingsSegment title={`${labels.credits.title} `} style={styles.settingsSegmentLast}>
<AppText>{`${labels.credits.note}`}</AppText>