From 308ff45c1c8c16177beb0b94390d151b2ec7681d Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 5 Jun 2017 18:44:09 -0400 Subject: rebuild --- client/src/lib/components/touchable.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'client/src/lib/components/touchable.js') diff --git a/client/src/lib/components/touchable.js b/client/src/lib/components/touchable.js index fd72c60..bfdfec3 100644 --- a/client/src/lib/components/touchable.js +++ b/client/src/lib/components/touchable.js @@ -2,6 +2,7 @@ import React, { Component } from 'react'; import { TouchableOpacity, TouchableWithoutFeedback, + View, } from 'react-native'; const isIphone = (navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) @@ -14,8 +15,16 @@ const isFirefox = navigator.userAgent.match('Firefox') export default class Touchable extends Component { render() { if (isFirefox) { + let { children, ...props } = this.props + if (children.length > 1) { + children = ( + + {children} + + ) + } return ( - + ) } else { -- cgit v1.2.3-70-g09d2