Commit 8fabfb54 authored by W.D.R.P. Sandeepa's avatar W.D.R.P. Sandeepa

Merge branch 'it18218640' into 'master'

Add color activity component

See merge request !28
parents 37f2bd5b 7d1ccf7e
import { useNavigation } from "@react-navigation/native"; import { useNavigation } from "@react-navigation/native";
import React from "react"; import React from "react";
import { StyleSheet, View, Text, Pressable, SafeAreaView, ScrollView, Image, ImageBackground } from 'react-native'; import { StyleSheet, View, Text, Pressable, SafeAreaView, ScrollView, Image, ImageBackground, Dimensions, Animated, Easing } from 'react-native';
import ImageButton from "../component/ImageButton";
import ColorActivity from "../component/colorActivity";
// const {width,height} = Dimensions.get('screen');
export default function Color(){ export default function Color(){
const navigation = useNavigation(); const navigation = useNavigation();
return ( return (
<SafeAreaView> <SafeAreaView>
<ScrollView> <ScrollView>
<View> <View>
<Image style={styles.imagebackground} source={require('../assets/color/background.png')} resizeMode="contain"> <View>
<ImageBackground source={require("../assets/color/background.png")}
style={styles.image}>
<Text style={styles.title}>Color Activity</Text>
</ImageBackground>
</View>
</View>
<ColorActivity>
</Image> </ColorActivity>
<ColorActivity>
</View> </ColorActivity>
<ColorActivity>
</ColorActivity>
<ColorActivity>
</ColorActivity>
<ColorActivity>
</ColorActivity>
</ScrollView> </ScrollView>
</SafeAreaView> </SafeAreaView>
) )
} }
const styles = StyleSheet.create({ const styles = StyleSheet.create({
imagebackground:{ imageContainer:{
flexDirection: "row",
marginTop: 70,
},
imageView: {
flex: 1,
width: "90%",
height: 200,
// borderWidth:1,
// borderColor: "#000",
marginHorizontal: 15,
borderRadius: 50
},
image: {
width: "100%",
height: 250,
},
title: {
color: "white",
fontSize: 40,
position: "absolute",
left: 50,
bottom: 50
} }
}) })
\ 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