Commit 9bc704e4 authored by Solveig Hergot Langås's avatar Solveig Hergot Langås
Browse files

#12 Card outline

parent 6e776b7e
import React, { Component } from 'react';
import { StyleSheet, Text, View } from 'react-native';
class Card extends Component {
render(){
const styles = StyleSheet.create({
container: {
borderRadius: 7,
shadowOffset: {
width: 0.5, height: 0.5
},
shadowColor: '#AAAAAA',
shadowOpacity: 1,
backgroundColor: 'white',
margin: 10,
padding: 10,
alignItems: "center"
}
})
return(
<View style = {styles.container}>
<View><Text> Bildet her </Text></View>
<View><Text> Bynavn her </Text></View>
<View><Text> Knapp her </Text></View>
</View>
)
}
}
export default Card;
import React, { Component } from 'react';
import { StyleSheet, Text, View } from 'react-native';
import Card from '../components/Card'
class HomePage extends Component{
render(){
return(
<Text> HomePage </Text>
<Card />
)
}
}
......
Supports Markdown
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