From b80c197b9c09be2cc014c0af9f71b724e6357de4 Mon Sep 17 00:00:00 2001 From: Julia Friesel Date: Tue, 8 Jan 2019 09:41:56 +0100 Subject: [PATCH] Use GNU license on license screen --- components/license.js | 13 ++++++++++--- i18n/en/labels.js | 4 +--- i18n/en/settings.js | 5 +---- styles/index.js | 5 +++-- 4 files changed, 15 insertions(+), 12 deletions(-) diff --git a/components/license.js b/components/license.js index 0da53e1..8fdfc9e 100644 --- a/components/license.js +++ b/components/license.js @@ -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 ( - {licenseText} + + {labels.title} + {labels.text} +