deskripsi: feature: - floating button - Forum create fix: - Base box - Avatar : penambahan onPres & href - Text custom : penambahan warna props green - Text Area : penambhaan hight - ViewWrapper : penambahan props floating # No Issue "
38 lines
759 B
TypeScript
38 lines
759 B
TypeScript
import {
|
|
BoxButtonOnFooter,
|
|
ButtonCustom,
|
|
TextAreaCustom,
|
|
ViewWrapper,
|
|
} from "@/components";
|
|
import { router } from "expo-router";
|
|
import { useState } from "react";
|
|
|
|
export default function ForumCreate() {
|
|
const [text, setText] = useState("");
|
|
|
|
const buttonFooter = (
|
|
<BoxButtonOnFooter>
|
|
<ButtonCustom
|
|
onPress={() => {
|
|
console.log("Posting", text);
|
|
router.back();
|
|
}}
|
|
>
|
|
Posting
|
|
</ButtonCustom>
|
|
</BoxButtonOnFooter>
|
|
);
|
|
|
|
return (
|
|
<ViewWrapper footerComponent={buttonFooter}>
|
|
<TextAreaCustom
|
|
placeholder="Ketik diskusi anda..."
|
|
maxLength={1000}
|
|
showCount
|
|
value={text}
|
|
onChangeText={setText}
|
|
/>
|
|
</ViewWrapper>
|
|
);
|
|
}
|