fix(mobile): prevent Android compose FAB animation jitter (#12169)

This commit is contained in:
Alex authored and GitHub committed 2026-09-16 17:51:20 -07:00
1 parent 892b86da12
commit ed88937cf0
3 files changed
+87

No files matched your search

@@ -1,10 +1,14 @@
import type { ComponentProps } from "react";
import { MaterialFloatingActionButton } from "./MaterialFloatingActionButton.android";
import { MaterialScrollComposeButton } from "./MaterialScrollComposeButton.android";
import type { MaterialNewThreadButton as SharedMaterialNewThreadButton } from "./MaterialNewThreadButton.shared";
export function MaterialNewThreadButton(
props: ComponentProps<typeof SharedMaterialNewThreadButton>,
) {
if (props.extended && props.expanded !== undefined) {
return <MaterialScrollComposeButton {...props} expanded={props.expanded} />;
}
return (
<MaterialFloatingActionButton
{...props}