Another set of UI updates (FAB returns, a few others) (#281)

* Bring back the FAB and move compose out of the footer

* Increase the touch target sizes of the header back btns (close #279)

* Trigger 'load more' sooner (close #280)
This commit is contained in:
Paul Frazee
2023-03-07 17:17:44 -06:00
committed by GitHub
parent e74f94bc72
commit 181121b451
10 changed files with 54 additions and 60 deletions
+4 -6
View File
@@ -7,9 +7,7 @@ import {
TouchableWithoutFeedback,
} from 'react-native'
import LinearGradient from 'react-native-linear-gradient'
import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome'
import {IconProp} from '@fortawesome/fontawesome-svg-core'
import {colors, gradients} from 'lib/styles'
import {gradients} from 'lib/styles'
import {useAnimatedValue} from 'lib/hooks/useAnimatedValue'
import {useStores} from 'state/index'
@@ -21,7 +19,7 @@ export const FAB = observer(
onPress,
}: {
testID?: string
icon: IconProp
icon: JSX.Element
onPress: OnPress
}) => {
const store = useStores()
@@ -45,7 +43,7 @@ export const FAB = observer(
start={{x: 0, y: 0}}
end={{x: 1, y: 1}}
style={styles.inner}>
<FontAwesomeIcon size={24} icon={icon} color={colors.white} />
{icon}
</LinearGradient>
</Animated.View>
</TouchableWithoutFeedback>
@@ -57,7 +55,7 @@ const styles = StyleSheet.create({
outer: {
position: 'absolute',
zIndex: 1,
right: 22,
right: 28,
bottom: 94,
width: 60,
height: 60,
+1 -1
View File
@@ -10,7 +10,7 @@ import {useAnimatedValue} from 'lib/hooks/useAnimatedValue'
import {useAnalytics} from 'lib/analytics'
import {isDesktopWeb} from '../../../platform/detection'
const BACK_HITSLOP = {left: 10, top: 10, right: 30, bottom: 10}
const BACK_HITSLOP = {left: 20, top: 20, right: 50, bottom: 20}
export const ViewHeader = observer(function ViewHeader({
title,
+1
View File
@@ -100,6 +100,7 @@ export function ViewSelector({
onScroll={onScroll}
onRefresh={onRefresh}
onEndReached={onEndReached}
onEndReachedThreshold={0.6}
contentContainerStyle={s.contentContainer}
removeClippedSubviews={true}
/>