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

color and shape card add to home page

parent c5dcb363
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>
<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>
)
}
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