Commit 4f8e1209 authored by W.D.R.P. Sandeepa's avatar W.D.R.P. Sandeepa

Merge branch 'it18218640' into 'master'

final

See merge request !205
parents f03f2d61 ae67aeb3
...@@ -256,4 +256,4 @@ def predict_pronounce(FPFN): ...@@ -256,4 +256,4 @@ def predict_pronounce(FPFN):
if __name__ == "__main__": if __name__ == "__main__":
app.run(host='192.168.8.100') app.run(host='192.168.8.102')
import React, {Component} from 'react'; import React, { Component, useState } from 'react';
import { import {
StyleSheet, StyleSheet,
TouchableOpacity, TouchableOpacity,
...@@ -14,23 +14,59 @@ import { ...@@ -14,23 +14,59 @@ import {
Easing, Easing,
NativeModules, NativeModules,
Button, Button,
Modal
} from 'react-native'; } from 'react-native';
import {useNavigation} from '@react-navigation/native'; import { useNavigation } from '@react-navigation/native';
export default function Progress() { export default function Progress() {
const [modalVisible2, setModalVisible2] = useState(false);
const Separator = () => <View style={styles.separator} />; const Separator = () => <View style={styles.separator} />;
const navigation = useNavigation(); const navigation = useNavigation();
return ( return (
<SafeAreaView style={styles.container}> <SafeAreaView style={styles.container}>
<View>
<Modal
animationType="fade"
transparent={true}
hidden={true}
visible={modalVisible2}
onRequestClose={() => {
setModalVisible2(!modalVisible2);
}}
>
<View style={styles.centeredView2}>
<View style={styles.modalView2}>
<Text style={styles.headStyle2}>Color Activity Progress</Text>
<TouchableOpacity>
<Text style={{ borderColor: "black", borderWidth: 2, padding: 10, marginTop: 10, marginBottom: 5, fontSize: 20, borderRadius: 5 }}>Accuracy</Text>
</TouchableOpacity>
<TouchableOpacity>
<Text style={{ borderColor: "black", borderWidth: 2, padding: 10, marginBottom: 5, fontSize: 20, borderRadius: 5 }}>Time</Text>
</TouchableOpacity>
<TouchableOpacity>
<Text style={{ borderColor: "black", borderWidth: 2, padding: 10, fontSize: 20, borderRadius: 5 }}>Count</Text>
</TouchableOpacity>
</View>
</View>
</Modal>
</View>
<View> <View>
<Button <Button
title="Color Activity" title="Color Activity"
onPress={() => onPress={() => setModalVisible2(true)}></Button>
navigation.navigate('PrimaryType', {
title: 'Primary Activities',
id: 1,
})
}></Button>
</View> </View>
<Separator /> <Separator />
...@@ -53,4 +89,70 @@ const styles = StyleSheet.create({ ...@@ -53,4 +89,70 @@ const styles = StyleSheet.create({
separator: { separator: {
marginVertical: 10, marginVertical: 10,
}, },
centeredView2: {
flex: 1,
justifyContent: "center",
alignItems: "center",
marginTop: 22
},
modalView2: {
marginTop: -10,
margin: 20,
backgroundColor: "#FFFFFF",
borderRadius: 20,
padding: 35,
borderWidth: 5,
borderColor: "#1DCE92",
alignItems: "center",
shadowColor: "green",
shadowOffset: {
width: 0,
height: 2
},
shadowOpacity: 0.25,
shadowRadius: 4,
elevation: 5
},
button2: {
borderRadius: 20,
padding: 10,
elevation: 2
},
buttonOpen2: {
backgroundColor: "#F194FF",
},
buttonClose2: {
// backgroundColor: "#1DCE92",
},
textStyle2: {
color: "white",
fontWeight: "bold",
textAlign: "center"
},
modalText2: {
marginBottom: 15,
textAlign: "center"
},
headStyle2: {
color: "black",
fontWeight: "bold",
textAlign: "center",
fontSize: 30,
marginBottom: 5,
},
head2Style2: {
color: "black",
fontWeight: "bold",
textAlign: "center",
fontSize: 30,
marginBottom: 20,
}, alert2: {
backgroundColor: "white",
borderRadius: 50,
width: 100,
height: 100,
marginBottom: 20,
marginTop: -80
},
}); });
...@@ -2,6 +2,6 @@ import axios from 'axios'; ...@@ -2,6 +2,6 @@ import axios from 'axios';
// export default axios.create({ baseURL: 'http://192.168.8.102:5000/', timeout: 15000, }); // export default axios.create({ baseURL: 'http://192.168.8.102:5000/', timeout: 15000, });
export default axios.create({ export default axios.create({
baseURL: 'http://192.168.8.100:5000/', baseURL: 'http://192.168.8.102:5000/',
timeout: 15000, timeout: 15000,
}); });
...@@ -26,7 +26,7 @@ import CountDownModal from '../../../component/reading/CountDownModal'; ...@@ -26,7 +26,7 @@ import CountDownModal from '../../../component/reading/CountDownModal';
export default function ReadActivityGo() { export default function ReadActivityGo() {
const navigation = useNavigation(); const navigation = useNavigation();
const [count, setCount] = useState(0); const [count, setCount] = useState(1);
const [modalVisible, setModalVisible] = useState(false); const [modalVisible, setModalVisible] = useState(false);
const [modalVisible2, setModalVisible2] = useState(false); const [modalVisible2, setModalVisible2] = useState(false);
const [modalVisible3, setModalVisible3] = useState(false); const [modalVisible3, setModalVisible3] = useState(false);
......
...@@ -26,7 +26,7 @@ import CountDownModal from '../../../component/reading/CountDownModal'; ...@@ -26,7 +26,7 @@ import CountDownModal from '../../../component/reading/CountDownModal';
export default function ReadActivityHe() { export default function ReadActivityHe() {
const navigation = useNavigation(); const navigation = useNavigation();
const [count, setCount] = useState(0); const [count, setCount] = useState(1);
const [modalVisible, setModalVisible] = useState(false); const [modalVisible, setModalVisible] = useState(false);
const [modalVisible2, setModalVisible2] = useState(false); const [modalVisible2, setModalVisible2] = useState(false);
const [modalVisible3, setModalVisible3] = useState(false); const [modalVisible3, setModalVisible3] = useState(false);
......
...@@ -28,7 +28,7 @@ import CountDownModal from '../../../component/reading/CountDownModal'; ...@@ -28,7 +28,7 @@ import CountDownModal from '../../../component/reading/CountDownModal';
export default function ReadActivityNo() { export default function ReadActivityNo() {
const navigation = useNavigation(); const navigation = useNavigation();
const [count, setCount] = useState(0); const [count, setCount] = useState(1);
const [modalVisible, setModalVisible] = useState(false); const [modalVisible, setModalVisible] = useState(false);
const [modalVisible2, setModalVisible2] = useState(false); const [modalVisible2, setModalVisible2] = useState(false);
const [modalVisible3, setModalVisible3] = useState(false); const [modalVisible3, setModalVisible3] = useState(false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment