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

#12 Alert when pressed

parent 9bc704e4
import React, { Component } from 'react';
import { StyleSheet, Text, View } from 'react-native';
import { StyleSheet, Text, View, Alert, TouchableHighlight } from 'react-native';
class Card extends Component {
......@@ -19,11 +19,12 @@ class Card extends Component {
}
})
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><Text> Knapp her </Text></View>
</View>
</TouchableHighlight>
)
}
}
......
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