Commit 8ca71649 authored by Solveig Hergot Langås's avatar Solveig Hergot Langås
Browse files

Merge branch 'Card' into 'master'

Card

See merge request !2
parents 6e776b7e 99096285
import React, { Component } from 'react';
import { StyleSheet, Text, View, Alert, TouchableHighlight } 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(
<TouchableHighlight underlayColor = 'inherit' onPress = {() => Alert.alert("HEI")}>
<View style = {styles.container}>
<View><Text> Bildet her </Text></View>
<View><Text> Bynavn her </Text></View>
</View>
</TouchableHighlight>
)
}
}
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