diff --git a/src/components/dms/NewMessagesPill.tsx b/src/components/dms/NewMessagesPill.tsx index 7abe528784..fa9520286c 100644 --- a/src/components/dms/NewMessagesPill.tsx +++ b/src/components/dms/NewMessagesPill.tsx @@ -7,7 +7,6 @@ import Animated, { withTiming, } from 'react-native-reanimated' import {useSafeAreaInsets} from 'react-native-safe-area-context' -import {Trans} from '@lingui/react/macro' import { ScaleAndFadeIn, @@ -15,8 +14,8 @@ import { } from '#/lib/custom-animations/ScaleAndFade' import {useHaptics} from '#/lib/haptics' import {atoms as a, useTheme} from '#/alf' -import {Text} from '#/components/Typography' -import {IS_ANDROID, IS_IOS, IS_WEB} from '#/env' +import {ArrowBottom_Stroke2_Corner0_Rounded as ArrowDownIcon} from '#/components/icons/Arrow' +import {IS_WEB} from '#/env' const AnimatedPressable = Animated.createAnimatedComponent(Pressable) @@ -28,8 +27,6 @@ export function NewMessagesPill({ const t = useTheme() const playHaptic = useHaptics() const {bottom: bottomInset} = useSafeAreaInsets() - const bottomBarHeight = IS_IOS ? 42 : IS_ANDROID ? 60 : 0 - const bottomOffset = IS_WEB ? 0 : bottomInset + bottomBarHeight const scale = useSharedValue(1) @@ -60,25 +57,24 @@ export function NewMessagesPill({ a.z_10, a.align_center, { - bottom: bottomOffset + 70, + bottom: bottomInset + 70, // Don't prevent scrolling in this area _except_ for in the pill itself pointerEvents: 'box-none', }, ]}> - - New messages - + )