Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions apps/mobile/src/components/ScrollComposeButton.android.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ import { Box, ExtendedFloatingActionButton, Icon, Text } from "@expo/ui/jetpack-
import {
defaultMinSize,
fillMaxWidth,
graphicsLayer,
height,
onSizeChanged,
size,
} from "@expo/ui/jetpack-compose/modifiers";
import { useState } from "react";
import { Pressable, View, type StyleProp, type ViewStyle } from "react-native";
import { I18nManager, Pressable, View, type StyleProp, type ViewStyle } from "react-native";
import { useAndroidControlSizing } from "./ui/useAndroidControlSizing";
import { useAppearancePreferences } from "../features/settings/appearance/AppearancePreferencesProvider";
import { resolveScaledTextRole } from "../lib/appearancePreferences";
Expand Down Expand Up @@ -37,7 +36,14 @@ export function ScrollComposeButton(props: {
className={props.className}
style={[props.style, { left: 20, height: fabSize }]}
>
<View pointerEvents="none" importantForAccessibility="no-hide-descendants">
<View
pointerEvents="none"
importantForAccessibility="no-hide-descendants"
style={{
transform: [{ scale }],
transformOrigin: I18nManager.isRTL ? "top left" : "top right",
}}
>
<NativeThemeHost
matchContents={{ vertical: true }}
ignoreSafeAreaKeyboardInsets
Expand All @@ -50,12 +56,6 @@ export function ScrollComposeButton(props: {
modifiers={[
defaultMinSize({ minWidth: nativeSize }),
height(nativeSize),
graphicsLayer({
scaleX: scale,
scaleY: scale,
transformOriginX: 1,
transformOriginY: 0,
}),
onSizeChanged(rememberWidth),
]}
>
Expand Down
Loading