Files
hipmi-mobile/components/Button/ButtonCenteredOnly.tsx
Bagasbanuna02 21c6460220 API
Add:
- hooks/
- ios.build.device : untuk mendownload di ios

Fix:
- service/api.t : mengatur api
- context/AuthContext.tsx: Provider untuk access token

### No Issue
2025-08-21 15:22:14 +08:00

37 lines
899 B
TypeScript

import { MainColor } from "@/constants/color-palet";
import { ICON_SIZE_BUTTON } from "@/constants/constans-value";
import { GStyles } from "@/styles/global-styles";
import { Feather } from "@expo/vector-icons";
import React from "react";
import ButtonCustom from "./ButtonCustom";
interface ButtonCenteredOnlyProps {
children?: React.ReactNode;
icon?: "plus" | "upload" | string;
onPress: () => void;
isLoading?: boolean;
}
export default function ButtonCenteredOnly({
onPress,
children,
icon = "plus",
isLoading = false,
}: ButtonCenteredOnlyProps) {
return (
<ButtonCustom
isLoading={isLoading}
onPress={onPress}
iconLeft={
<Feather
name={icon as any}
size={ICON_SIZE_BUTTON}
color={MainColor.black}
/>
}
style={[GStyles.buttonCentered50Percent]}
>
{children}
</ButtonCustom>
);
}