From 16fbefc3546a31e173add2d068f8011db0091aca Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Thu, 29 Sep 2022 09:04:49 -0500 Subject: No visual feedback on FAB to reduce jank --- src/view/com/util/FloatingActionButton.tsx | 37 ++++++++++++++++++------------ 1 file changed, 22 insertions(+), 15 deletions(-) (limited to 'src') diff --git a/src/view/com/util/FloatingActionButton.tsx b/src/view/com/util/FloatingActionButton.tsx index bc16c0566..23a83b776 100644 --- a/src/view/com/util/FloatingActionButton.tsx +++ b/src/view/com/util/FloatingActionButton.tsx @@ -1,5 +1,10 @@ import React from 'react' -import {GestureResponderEvent, StyleSheet, TouchableOpacity} from 'react-native' +import { + GestureResponderEvent, + StyleSheet, + TouchableWithoutFeedback, + View, +} from 'react-native' import LinearGradient from 'react-native-linear-gradient' import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome' import {IconProp} from '@fortawesome/fontawesome-svg-core' @@ -9,20 +14,22 @@ import * as zIndex from '../../lib/z-index' type OnPress = ((event: GestureResponderEvent) => void) | undefined export function FAB({icon, onPress}: {icon: IconProp; onPress: OnPress}) { return ( - - - - - + + + + + + + ) } -- cgit 1.4.1