diff options
Diffstat (limited to 'client/src/lib/components/touchable.js')
| -rw-r--r-- | client/src/lib/components/touchable.js | 11 |
1 files changed, 10 insertions, 1 deletions
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 = ( + <View> + {children} + </View> + ) + } return ( - <TouchableWithoutFeedback {...this.props} /> + <TouchableWithoutFeedback children={children} {...props} /> ) } else { |
