Files
hipmi-mobile/app/(application)/profile/[id]/update-background.tsx
Bagasbanuna02 0b1fd05eec feature
deskripsi:
- folder take-picture
2025-07-04 16:32:44 +08:00

42 lines
1.1 KiB
TypeScript

import { BaseBox, ButtonCustom } from "@/components";
import ViewWrapper from "@/components/_ShareComponent/ViewWrapper";
import ButtonUpload from "@/components/Button/ButtonUpload";
import DUMMY_IMAGE from "@/constants/dummy-image-value";
import { router, useLocalSearchParams } from "expo-router";
import { Image } from "react-native";
export default function UpdateBackgroundProfile() {
const { id } = useLocalSearchParams();
return (
<ViewWrapper
bottomBarComponent={
<ButtonCustom
onPress={() => {
console.log("Simpan foto background >>", id);
router.back();
}}
>
Simpan
</ButtonCustom>
}
>
<BaseBox
style={{ alignItems: "center", justifyContent: "center", height: 250 }}
>
<Image
source={DUMMY_IMAGE.background}
resizeMode="cover"
style={{ width: "100%", height: "100%", borderRadius: 10 }}
/>
</BaseBox>
<ButtonUpload
title="Update"
onPress={() =>
router.navigate(`/(application)/take-picture/${id}`)
}
/>
</ViewWrapper>
);
}