Commit db58b364 authored by Lihinikaduwa D.N.R.  's avatar Lihinikaduwa D.N.R.

Change ReadActivity

parent 90beda59
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.9" project-jdk-type="Python SDK" /> <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.8" project-jdk-type="Python SDK" />
</project> </project>
\ No newline at end of file
This diff is collapsed.
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
"native-base": "^3.2.2", "native-base": "^3.2.2",
"react": "17.0.2", "react": "17.0.2",
"react-native": "0.66.2", "react-native": "0.66.2",
"react-native-elements": "^3.4.2",
"react-native-fontawesome": "^7.0.0", "react-native-fontawesome": "^7.0.0",
"react-native-gesture-handler": "^1.10.3", "react-native-gesture-handler": "^1.10.3",
"react-native-orientation-locker": "^1.4.0", "react-native-orientation-locker": "^1.4.0",
......
...@@ -20,14 +20,25 @@ import ImageButton from '../component/ImageButton'; ...@@ -20,14 +20,25 @@ import ImageButton from '../component/ImageButton';
import ButtonView from '../component/buttonView'; import ButtonView from '../component/buttonView';
// const {width,height} = Dimensions.get('screen'); // const {width,height} = Dimensions.get('screen');
const webUrel = 'http://192.168.8.101:5000/ru'; const webUrel = 'http://127.0.0.1:5000/reading';
export default function Read() { export default function Read() {
const [names, setNames] = useState([]); const [activity, setActivity] = useState([]);
const navigation = useNavigation(); const navigation = useNavigation();
function getColorActivities() {
axios
.get(webUrel)
.then(response => {
setActivity(response.data);
console.log('response.data');
})
.catch(err => {});
}
React.useEffect(() => { React.useEffect(() => {
getColorActivities();
const unsubscribe = navigation.addListener('focus', () => { const unsubscribe = navigation.addListener('focus', () => {
// The screen is focused // The screen is focused
// Call any action // Call any action
...@@ -52,6 +63,10 @@ export default function Read() { ...@@ -52,6 +63,10 @@ export default function Read() {
</View> </View>
</View> </View>
{/* {activity.map((data, index) => {
return <ButtonView title={data.round} color="#00008B" />;
})} */}
<ButtonView title="First Round" color="#00008B"></ButtonView> <ButtonView title="First Round" color="#00008B"></ButtonView>
<ButtonView title="Second Round" color="#00008B"></ButtonView> <ButtonView title="Second Round" color="#00008B"></ButtonView>
<ButtonView title="Third Round" color="#00008B"></ButtonView> <ButtonView title="Third Round" color="#00008B"></ButtonView>
......
...@@ -35,7 +35,7 @@ export default function ReadActivity() { ...@@ -35,7 +35,7 @@ export default function ReadActivity() {
source={require('../../assets/read/background2.jpeg')}> source={require('../../assets/read/background2.jpeg')}>
<View> <View>
<View style={styles.textBody}> <View style={styles.textBody}>
<Text style={styles.text}>Say the name of this color?</Text> <Text style={styles.text}>Pronounce this Word!</Text>
</View> </View>
<Image <Image
...@@ -93,7 +93,7 @@ const styles = StyleSheet.create({ ...@@ -93,7 +93,7 @@ const styles = StyleSheet.create({
textBody: { textBody: {
marginTop: 150, marginTop: 150,
marginLeft: 95, marginLeft: 95,
backgroundColor: '#1DCE92', backgroundColor: '#00008B',
width: 200, width: 200,
borderRadius: 50, borderRadius: 50,
padding: 5, padding: 5,
......
...@@ -22,7 +22,7 @@ export default function Home({ navigation }){ ...@@ -22,7 +22,7 @@ export default function Home({ navigation }){
<View style={styles.imageView}> <View style={styles.imageView}>
<Image <Image
style={styles.image} style={styles.image}
source={require('../assets/color/background.png')} source={require('../assets/read/background4.jpg')}
resizeMode="contain"></Image> resizeMode="contain"></Image>
<ImageButton path="Read" title="Read Activity" /> <ImageButton path="Read" title="Read Activity" />
</View> </View>
...@@ -43,9 +43,8 @@ export default function Home({ navigation }){ ...@@ -43,9 +43,8 @@ export default function Home({ navigation }){
} }
const styles = StyleSheet.create({ const styles = StyleSheet.create({
imageContainer: {
imageContainer:{ flexDirection: 'row',
flexDirection: "row",
marginTop: 70, marginTop: 70,
}, },
imageView: { imageView: {
...@@ -54,13 +53,11 @@ const styles = StyleSheet.create({ ...@@ -54,13 +53,11 @@ const styles = StyleSheet.create({
// borderWidth:1, // borderWidth:1,
// borderColor: "#000", // borderColor: "#000",
marginHorizontal: 15, marginHorizontal: 15,
borderRadius: 50 borderRadius: 50,
}, },
image: { image: {
width: "100%", width: '100%',
height: "100%", height: '100%',
borderRadius: 50 borderRadius: 50,
}, },
});
\ No newline at end of file
})
\ No newline at end of file
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