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/index.js b/vds-app/App/index.js index 9c72672..2716458 100644 --- a/vds-app/App/index.js +++ b/vds-app/App/index.js @@ -1,4 +1,3 @@ - import 'react-native-gesture-handler' import { createStackNavigator, createAppContainer } from "react-navigation" diff --git a/vds-app/App/screens/Exam.js b/vds-app/App/screens/Exam.js index 6806c30..c361dba 100644 --- a/vds-app/App/screens/Exam.js +++ b/vds-app/App/screens/Exam.js @@ -110,7 +110,7 @@ class Exam extends React.Component { AsyncStorage.getItem('setupData').then((value) => { let setupData = JSON.parse(value) - console.log('handleBackButton setupData',setupData) + //console.log('handleBackButton setupData',setupData) examScheme.forEach( (elem) => { let currentSection = setupData.excludeDelta ? allQuestions[elem.section].filter(item => !item.delta) : allQuestions[elem.section] for(let i=0; i {`${texts.version}: ${pkg.expo.version}`} + {/* {`${texts.author}: Dslak`} - + */} {texts.description} diff --git a/vds-app/App/screens/Quiz.js b/vds-app/App/screens/Quiz.js index 4731207..3254839 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", @@ -105,7 +106,7 @@ class Quiz extends React.Component { } bannerError = (e) => { - console.log("Banner error (footer): ", e) + //console.log("Banner error (footer): ", e) } componentDidMount() { @@ -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/RecapTrueFalse.js b/vds-app/App/screens/RecapTrueFalse.js index 3b5d644..c3c65e6 100644 --- a/vds-app/App/screens/RecapTrueFalse.js +++ b/vds-app/App/screens/RecapTrueFalse.js @@ -108,7 +108,7 @@ class RecapTrueFalse extends React.Component { componentDidMount() { BackHandler.addEventListener('hardwareBackPress', this.handleBackButton) AsyncStorage.getItem('storeWrongAnswers').then((value) => { - console.log(value) + //console.log(value) }).done() } 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 { - + +