|
|
@ -1,17 +1,17 @@ |
|
|
|
import React from "react" |
|
|
|
import { View, ScrollView, StyleSheet, StatusBar, Text, CheckBox, SafeAreaView, Dimensions, Image, BackHandler, AsyncStorage} from "react-native" |
|
|
|
import { View, ScrollView, StyleSheet, StatusBar, Text, CheckBox, SafeAreaView, Dimensions, Image, ImageBackground, BackHandler, AsyncStorage} from "react-native" |
|
|
|
|
|
|
|
import { Button, ButtonContainer } from "../components/Button" |
|
|
|
import { colors, texts, examScheme, resultsScheme} from "../components/Variables" |
|
|
|
|
|
|
|
const bgImage = require("../assets/bg.jpg") |
|
|
|
const screen = Dimensions.get("window") |
|
|
|
const header = require("../assets/header.png") |
|
|
|
|
|
|
|
const pkg = require('../../app.json') |
|
|
|
|
|
|
|
const styles = StyleSheet.create({ |
|
|
|
container: { |
|
|
|
backgroundColor: colors.dark_blue, |
|
|
|
//backgroundColor: colors.dark_blue,
|
|
|
|
flex: 1 |
|
|
|
}, |
|
|
|
safearea: { |
|
|
@ -20,7 +20,10 @@ const styles = StyleSheet.create({ |
|
|
|
justifyContent: "space-between", |
|
|
|
paddingHorizontal: 10 |
|
|
|
}, |
|
|
|
|
|
|
|
bg: { |
|
|
|
width: "100%", |
|
|
|
height: "100%" |
|
|
|
}, |
|
|
|
box: { |
|
|
|
width: screen.width-20, |
|
|
|
paddingHorizontal: 10 |
|
|
@ -36,7 +39,8 @@ const styles = StyleSheet.create({ |
|
|
|
textShadowRadius: 5 |
|
|
|
}, |
|
|
|
title: { |
|
|
|
paddingTop: 30, |
|
|
|
paddingTop: 40, |
|
|
|
paddingBottom: 20, |
|
|
|
color: colors.white, |
|
|
|
fontSize: 18, |
|
|
|
textTransform: "uppercase", |
|
|
@ -171,45 +175,47 @@ class Setup extends React.Component { |
|
|
|
render() { |
|
|
|
|
|
|
|
return ( |
|
|
|
<View style={styles.container} > |
|
|
|
|
|
|
|
<SafeAreaView style={styles.safearea}> |
|
|
|
<ScrollView> |
|
|
|
<View style={styles.box}> |
|
|
|
|
|
|
|
<Text style={styles.title}> |
|
|
|
{texts.setupScheme} |
|
|
|
</Text> |
|
|
|
<ImageBackground source={bgImage} style={styles.bg} resizeMode="cover"> |
|
|
|
<View style={styles.container} > |
|
|
|
|
|
|
|
<SafeAreaView style={styles.safearea}> |
|
|
|
<ScrollView> |
|
|
|
<View style={styles.box}> |
|
|
|
|
|
|
|
<Text style={styles.title}> |
|
|
|
{texts.setupScheme} |
|
|
|
</Text> |
|
|
|
|
|
|
|
<View style={styles.textSmall}> |
|
|
|
|
|
|
|
<View style={styles.checkboxContainer}> |
|
|
|
<CheckBox |
|
|
|
value={this.state.setupData.randomQuestions} |
|
|
|
onValueChange={() => this.changeSetup('randomQuestions')} |
|
|
|
style={styles.checkbox} |
|
|
|
/> |
|
|
|
<Text style={styles.checkboxLabel}>{texts.setupRandomCheck}</Text> |
|
|
|
</View> |
|
|
|
|
|
|
|
<View style={[styles.checkboxContainer, styles.noBorder]}> |
|
|
|
<CheckBox |
|
|
|
value={this.state.setupData.excludeDelta} |
|
|
|
onValueChange={() => this.changeSetup('excludeDelta')} |
|
|
|
style={styles.checkbox} |
|
|
|
/> |
|
|
|
<Text style={styles.checkboxLabel}>{texts.setupExcludeDelta}</Text> |
|
|
|
</View> |
|
|
|
|
|
|
|
<View style={styles.textSmall}> |
|
|
|
|
|
|
|
<View style={styles.checkboxContainer}> |
|
|
|
<CheckBox |
|
|
|
value={this.state.setupData.randomQuestions} |
|
|
|
onValueChange={() => this.changeSetup('randomQuestions')} |
|
|
|
style={styles.checkbox} |
|
|
|
/> |
|
|
|
<Text style={styles.checkboxLabel}>{texts.setupRandomCheck}</Text> |
|
|
|
</View> |
|
|
|
|
|
|
|
<View style={styles.checkboxContainer}> |
|
|
|
<CheckBox |
|
|
|
value={this.state.setupData.excludeDelta} |
|
|
|
onValueChange={() => this.changeSetup('excludeDelta')} |
|
|
|
style={styles.checkbox} |
|
|
|
/> |
|
|
|
<Text style={styles.checkboxLabel}>{texts.setupExcludeDelta}</Text> |
|
|
|
</View> |
|
|
|
|
|
|
|
|
|
|
|
</View> |
|
|
|
</ScrollView> |
|
|
|
|
|
|
|
</View> |
|
|
|
</ScrollView> |
|
|
|
|
|
|
|
</SafeAreaView> |
|
|
|
</SafeAreaView> |
|
|
|
|
|
|
|
</View> |
|
|
|
</View> |
|
|
|
</ImageBackground> |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|