From a32301618c859a6c76c23cdeca5d9a463a8150e7 Mon Sep 17 00:00:00 2001 From: Carmine De Rosa Date: Thu, 13 Aug 2020 12:00:18 +0200 Subject: [PATCH] fix debug error --- vds-app/App/components/Button.js | 2 +- vds-app/App/components/Variables.js | 3 +++ vds-app/App/screens/Quiz.js | 12 ++++++++---- vds-app/App/screens/Setup.js | 16 ++++++++++++++-- vds-app/App/screens/Splash.js | 1 + 5 files changed, 27 insertions(+), 7 deletions(-) diff --git a/vds-app/App/components/Button.js b/vds-app/App/components/Button.js index 7a41ba2..f8bed21 100644 --- a/vds-app/App/components/Button.js +++ b/vds-app/App/components/Button.js @@ -42,7 +42,7 @@ const styles = StyleSheet.create({ marginTop: 20, justifyContent: "space-between", overflow: "hidden", - borderRadius: 20 + borderRadius: 10 }, buttonBg: { flex: 1, diff --git a/vds-app/App/components/Variables.js b/vds-app/App/components/Variables.js index 4999daf..8ef4cc6 100644 --- a/vds-app/App/components/Variables.js +++ b/vds-app/App/components/Variables.js @@ -50,6 +50,7 @@ export const texts = { recapTitle: "Riepilogo risposte sbagliate", infoTitle: "Informazioni App", setupTitle: "Impostazioni", + setupSubtitle: "Configura le funzionalità dell'app", dictionaryTitle: "Terminologia", dictionarySubtitle: "Dizionario ICAO e abbreviazioni", alphabethTitle: "Alfabeto ICAO", @@ -58,6 +59,7 @@ export const texts = { version: "Versione", author: "Autore", exit: "Esci", + save: "Salva", exitQuestion: "Vuoi uscire dall'app?", description: "VDS Quiz è una applicazione che utilizza le 500 domande ufficiali dell'AeCI (Aero Club d'Italia), nella simulazione le domande vengono estrapolate seguendo lo schema ufficiale d'esame:", source: "PDF Domande ufficiali", @@ -82,6 +84,7 @@ export const texts = { trueFalse: "Test Vero/Falso", trueFalseSubtitle: "10 domande casuali con risposte Vero/Falso", goToQuestion: "Seleziona ad una domanda specifica...", + changeQuestion: "Cambia domanda...", lens: "\uD83D\uDD0D" } diff --git a/vds-app/App/screens/Quiz.js b/vds-app/App/screens/Quiz.js index 4731207..01e0a79 100644 --- a/vds-app/App/screens/Quiz.js +++ b/vds-app/App/screens/Quiz.js @@ -49,10 +49,10 @@ const styles = StyleSheet.create({ }, dropdownContainer: { marginTop: 20, - borderRadius: 20, + borderRadius: 10, width: "100%", textAlign: "center", - backgroundColor: colors.black_alpha + backgroundColor: colors.blue }, dropdown: { color: colors.white, @@ -64,6 +64,7 @@ const styles = StyleSheet.create({ }, dropdownItem: { color: colors.white, + backgroundColor: "red", fontSize: 16, borderRadius: 10, textAlign: "center", @@ -120,9 +121,11 @@ class Quiz extends React.Component { }) } + /* componentWillUnmount() { BackHandler.removeEventListener('hardwareBackPress', this.handleBackButton) } + */ handleBackButton = () => { this.props.navigation.navigate("Splash") @@ -240,17 +243,18 @@ class Quiz extends React.Component { + this.jumpTo(itemValue, itemIndex)} > - - + {this.state.availableQuestions.map( (item, index) => ( ))} + diff --git a/vds-app/App/screens/Setup.js b/vds-app/App/screens/Setup.js index 0d5ac86..118ec61 100644 --- a/vds-app/App/screens/Setup.js +++ b/vds-app/App/screens/Setup.js @@ -54,7 +54,7 @@ const styles = StyleSheet.create({ textSmall: { lineHeight: 23, marginTop: 15, - borderRadius: 20, + borderRadius: 10, backgroundColor: colors.white, borderWidth: 0, borderColor: colors.white_alpha, @@ -115,6 +115,9 @@ const styles = StyleSheet.create({ checkboxLabel: { marginLeft: 8, marginRight: 8 + }, + button: { + marginTop: 20 } }) @@ -208,7 +211,16 @@ class Setup extends React.Component { - + +