From 7418fc2ccea6e5e62bcfa743a9df99d5dd3bf50f Mon Sep 17 00:00:00 2001 From: bl00dymarie Date: Tue, 12 Dec 2023 15:18:02 +0100 Subject: [PATCH 1/3] Give some marginTop on very first License screen --- components/settings/License.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/components/settings/License.js b/components/settings/License.js index 8e47147..c43809e 100644 --- a/components/settings/License.js +++ b/components/settings/License.js @@ -1,18 +1,20 @@ import React from 'react' import PropTypes from 'prop-types' import { useTranslation } from 'react-i18next' +import { StyleSheet } from 'react-native' import AppPage from '../common/app-page' import AppText from '../common/app-text' import AppLink from '../common/AppLink' import Segment from '../common/segment' +import { Spacing } from '../../styles' const License = ({ children }) => { const { t } = useTranslation(null, { keyPrefix: 'hamburgerMenu.license' }) const currentYear = new Date().getFullYear() const link = 'https://www.gnu.org/licenses/gpl-3.0.html' return ( - + {t('text', { currentYear })} {link} @@ -26,4 +28,10 @@ License.propTypes = { children: PropTypes.node, } +const styles = StyleSheet.create({ + contentContainer: { + marginTop: Spacing.large, + }, +}) + export default License From 79ab093584a1d996b4d872c18120d6e2235e2b28 Mon Sep 17 00:00:00 2001 From: bl00dymarie Date: Tue, 12 Dec 2023 15:57:46 +0100 Subject: [PATCH 2/3] Update license snapshot for jest --- test/__snapshots__/License.spec.js.snap | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/__snapshots__/License.spec.js.snap b/test/__snapshots__/License.spec.js.snap index 370a193..3d11134 100644 --- a/test/__snapshots__/License.spec.js.snap +++ b/test/__snapshots__/License.spec.js.snap @@ -16,7 +16,9 @@ exports[`License screen should match the snapshot 1`] = ` "backgroundColor": "#E9F2ED", "flexGrow": 1, }, - undefined, + { + "marginTop": 42.857142857142854, + }, ] } > From a0ee20014901b3d15ae73c159069c64b686eea8c Mon Sep 17 00:00:00 2001 From: bl00dymarie Date: Tue, 12 Dec 2023 15:58:39 +0100 Subject: [PATCH 3/3] Add iPhone 14 simulator --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 2748eea..0afa863 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "start": "react-native start", "android": "react-native run-android", "ios": "react-native run-ios --simulator=\"iPhone 8 Plus\"", + "ios14": "react-native run-ios --simulator=\"iPhone 14 Plus\"", "log": "react-native log-android", "test": "jest test && yarn lint", "test-watch": "jest --watch test",