|
|
@ -96,8 +96,8 @@ class Splash extends React.Component { |
|
|
|
setupData: setup ? JSON.parse(setup) : {} |
|
|
|
} |
|
|
|
}) |
|
|
|
})//.done()
|
|
|
|
})//.done()
|
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
@ -123,8 +123,6 @@ class Splash extends React.Component { |
|
|
|
|
|
|
|
const storeWrongAnswers = this.props.navigation.getParam("storeWrongAnswers") || this.state.storeWrongAnswers |
|
|
|
|
|
|
|
//console.log(storeWrongAnswers.length)
|
|
|
|
|
|
|
|
if(this.state.timer==maxTime) { |
|
|
|
interval = setInterval( () => { |
|
|
|
this.setState( (state) => { |
|
|
@ -154,14 +152,15 @@ class Splash extends React.Component { |
|
|
|
|
|
|
|
<SafeAreaView style={styles.safearea}> |
|
|
|
<View> |
|
|
|
<ButtonContainer isBoxed={true}> |
|
|
|
<ButtonContainer isBoxed={false}> |
|
|
|
<Button |
|
|
|
text={texts.section_quizzes} |
|
|
|
subtitle={`(${texts.section_quizzes_subtitle})`} |
|
|
|
isBig={false} |
|
|
|
hasBg={true} |
|
|
|
noPadding={true} |
|
|
|
noPadding={false} |
|
|
|
hasShadow={true} |
|
|
|
noBorder={true} |
|
|
|
color={colors.white_alpha} |
|
|
|
onPress={() => |
|
|
|
this.props.navigation.navigate("QuizIndex", { |
|
|
@ -175,8 +174,9 @@ class Splash extends React.Component { |
|
|
|
subtitle={`(${texts.exam_simulation})`} |
|
|
|
isBig={false} |
|
|
|
hasBg={true} |
|
|
|
noPadding={true} |
|
|
|
noPadding={false} |
|
|
|
hasShadow={true} |
|
|
|
noBorder={true} |
|
|
|
color={colors.white_alpha} |
|
|
|
onPress={() => |
|
|
|
this.props.navigation.navigate("Exam", { |
|
|
@ -193,8 +193,9 @@ class Splash extends React.Component { |
|
|
|
subtitle={`(${storeWrongAnswers.length} ${texts.wrong_title})`} |
|
|
|
isBig={false} |
|
|
|
hasBg={true} |
|
|
|
noPadding={true} |
|
|
|
noPadding={false} |
|
|
|
hasShadow={true} |
|
|
|
noBorder={true} |
|
|
|
color={colors.white_alpha} |
|
|
|
onPress={() => |
|
|
|
this.props.navigation.navigate("Quiz", { |
|
|
@ -212,8 +213,9 @@ class Splash extends React.Component { |
|
|
|
subtitle={`(${texts.trueFalseSubtitle})`} |
|
|
|
isBig={false} |
|
|
|
hasBg={true} |
|
|
|
noPadding={true} |
|
|
|
noPadding={false} |
|
|
|
hasShadow={true} |
|
|
|
noBorder={true} |
|
|
|
color={colors.white_alpha} |
|
|
|
onPress={() => |
|
|
|
this.props.navigation.navigate("TrueFalse", { |
|
|
@ -227,8 +229,9 @@ class Splash extends React.Component { |
|
|
|
subtitle={`(${texts.dictionarySubtitle})`} |
|
|
|
isBig={false} |
|
|
|
hasBg={true} |
|
|
|
noPadding={true} |
|
|
|
noPadding={false} |
|
|
|
hasShadow={true} |
|
|
|
noBorder={true} |
|
|
|
color={colors.white_alpha} |
|
|
|
onPress={() => this.props.navigation.navigate("Dictionary", {})} |
|
|
|
/> |
|
|
@ -237,8 +240,9 @@ class Splash extends React.Component { |
|
|
|
subtitle={`(${texts.setupSubtitle})`} |
|
|
|
isBig={false} |
|
|
|
hasBg={true} |
|
|
|
noPadding={true} |
|
|
|
noPadding={false} |
|
|
|
hasShadow={true} |
|
|
|
noBorder={true} |
|
|
|
color={colors.white_alpha} |
|
|
|
onPress={() => this.props.navigation.navigate("Setup", {})} |
|
|
|
/> |
|
|
@ -246,8 +250,9 @@ class Splash extends React.Component { |
|
|
|
text={texts.infoTitle} |
|
|
|
isBig={false} |
|
|
|
hasBg={true} |
|
|
|
noPadding={true} |
|
|
|
noPadding={false} |
|
|
|
hasShadow={true} |
|
|
|
noBorder={true} |
|
|
|
color={colors.white_alpha} |
|
|
|
onPress={() => this.props.navigation.navigate("Info", {})} |
|
|
|
/> |
|
|
@ -255,7 +260,7 @@ class Splash extends React.Component { |
|
|
|
text={texts.exit} |
|
|
|
isBig={false} |
|
|
|
hasBg={true} |
|
|
|
noPadding={true} |
|
|
|
noPadding={false} |
|
|
|
hasShadow={true} |
|
|
|
noBorder={true} |
|
|
|
color={colors.white_alpha2} |
|
|
|