fix(mobile): prevent Android compose FAB animation jitter (#12169)
This commit is contained in:
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}
|
||||
|
||||
Reference in new issue
Block a user