Use GNU license on license screen

This commit is contained in:
Julia Friesel
2019-01-08 09:41:56 +01:00
parent 480e4533be
commit b80c197b9c
4 changed files with 15 additions and 12 deletions
+10 -3
View File
@@ -1,15 +1,22 @@
import React from 'react'
import { ScrollView, View, BackHandler } from 'react-native'
import Hyperlink from 'react-native-hyperlink'
import AppText from './app-text'
import { licenseText, shared } from '../i18n/en/labels'
import { shared } from '../i18n/en/labels'
import settingsLabels from '../i18n/en/settings'
import styles,{secondaryColor} from '../styles'
import Button from './button'
import { saveLicenseFlag } from '../local-storage';
import { saveLicenseFlag } from '../local-storage'
import replace from './helpers/replace-url-with-text'
const labels = settingsLabels.license
export default function License({setLicense}) {
return (
<ScrollView style={styles.licensePage}>
<AppText>{licenseText}</AppText>
<Hyperlink linkStyle={styles.link} linkText={replace}>
<AppText style={styles.settingsSegmentTitle}>{labels.title}</AppText>
<AppText>{labels.text}</AppText>
</Hyperlink>
<View style={styles.licenseButtons}>
<Button
style={styles.licenseButton}