2023-11-14 01:34:10 +00:00
|
|
|
import { ComponentProps } from "react";
|
2023-11-14 01:44:10 +00:00
|
|
|
import { FAB, useTheme } from "react-native-paper";
|
2022-07-08 02:59:19 +00:00
|
|
|
|
2022-12-29 00:57:19 +00:00
|
|
|
export default function AppFab(props: Partial<ComponentProps<typeof FAB>>) {
|
2023-11-14 01:44:10 +00:00
|
|
|
const { colors } = useTheme();
|
|
|
|
|
2022-07-08 02:59:19 +00:00
|
|
|
return (
|
2022-07-15 06:06:33 +00:00
|
|
|
<FAB
|
2023-10-19 05:28:56 +00:00
|
|
|
icon="plus"
|
2023-08-12 03:22:50 +00:00
|
|
|
testID="add"
|
2023-11-14 01:44:10 +00:00
|
|
|
color={colors.background}
|
2022-07-15 06:06:33 +00:00
|
|
|
style={{
|
2023-08-12 03:22:50 +00:00
|
|
|
position: "absolute",
|
2022-11-15 06:51:15 +00:00
|
|
|
right: 20,
|
|
|
|
bottom: 20,
|
2023-11-14 01:44:10 +00:00
|
|
|
backgroundColor: colors.primary,
|
2022-07-15 06:06:33 +00:00
|
|
|
}}
|
2022-09-26 01:38:25 +00:00
|
|
|
{...props}
|
2022-07-08 02:59:19 +00:00
|
|
|
/>
|
2023-08-12 03:22:50 +00:00
|
|
|
);
|
2022-07-08 02:59:19 +00:00
|
|
|
}
|