Commit 58ebafa8 authored by W.D.R.P. Sandeepa's avatar W.D.R.P. Sandeepa

Merge branch 'it18218640' into 'master'

color and shape card add to home page

See merge request !14
parents e9f52db4 d593dfc8
import React from "react";
import { StyleSheet, View, Text, Pressable } from 'react-native';
import { StyleSheet, View, Text, Pressable, SafeAreaView, ScrollView, Image } from 'react-native';
export default function Home({ navigation }){
......@@ -8,9 +8,47 @@ export default function Home({ navigation }){
}
return (
<View>
<Text>Home</Text>
</View>
<SafeAreaView>
<ScrollView>
<View style={styles.imageContainer}>
<View style={styles.imageView}>
<Image style={styles.image} source={require('../assets/color/background.png')} resizeMode="contain">
</Image>
<Text style={styles.text}>Color And Shape</Text>
</View>
</View>
</ScrollView>
</SafeAreaView>
)
}
\ No newline at end of file
}
const styles = StyleSheet.create({
imageContainer:{
flexDirection: "row",
marginTop: 70,
},
imageView: {
width: 180,
height: 300,
// borderWidth:1,
// borderColor: "#000",
marginHorizontal: 15,
borderRadius: 50
},
image: {
width: "100%",
height: "100%",
borderRadius: 50
},
text: {
fontSize: 40,
justifyContent: "center",
textAlign: "center",
marginTop: -190,
color:'#ffff',
fontWeight: "bold"
},
})
\ 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