From 3e94df56e29ced785e624ec54689315fdd29d77d Mon Sep 17 00:00:00 2001 From: Julia Friesel <julia.friesel@gmail.com> Date: Sat, 2 Feb 2019 10:54:51 +0100 Subject: [PATCH] Limit press handler to just button --- components/home.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/home.js b/components/home.js index 327f0c0b..1412ec35 100644 --- a/components/home.js +++ b/components/home.js @@ -1,5 +1,5 @@ import React, { Component } from 'react' -import { ScrollView, View, TouchableHighlight, TouchableOpacity, Dimensions } from 'react-native' +import { ScrollView, View, TouchableHighlight, Dimensions } from 'react-native' import { LocalDate, ChronoUnit } from 'js-joda' import Icon from 'react-native-vector-icons/Entypo' import Hyperlink from 'react-native-hyperlink' @@ -49,7 +49,7 @@ const IconText = ({ children, wrapperStyles }) => { const HomeElement = ({ children, onPress, buttonColor, buttonLabel }) => { return ( - <TouchableOpacity + <View onPress={ onPress } style={ styles.homeIconElement } > @@ -59,7 +59,7 @@ const HomeElement = ({ children, onPress, buttonColor, buttonLabel }) => { backgroundColor={ buttonColor }> { buttonLabel } </Button> - </TouchableOpacity> + </View> ) } -- GitLab