upd: text input area

Deskripsi>;
- update tambah dan edit deskripsi pengumuman
- update tambah dan edit deskripsi divisi

No Issues
This commit is contained in:
2025-07-14 17:34:30 +08:00
parent 5f8fac2518
commit 3808de683a
5 changed files with 23 additions and 3 deletions

View File

@@ -10,7 +10,7 @@ import { useAuthSession } from "@/providers/AuthProvider";
import { Entypo } from "@expo/vector-icons";
import { router, Stack } from "expo-router";
import { useEffect, useState } from "react";
import { SafeAreaView, ScrollView, Text, ToastAndroid, View } from "react-native";
import { SafeAreaView, ScrollView, StyleSheet, Text, ToastAndroid, View } from "react-native";
import { useDispatch, useSelector } from "react-redux";
export default function CreateAnnouncement() {
@@ -123,6 +123,7 @@ export default function CreateAnnouncement() {
error={error.desc}
errorText="Pengumuman harus diisi"
onChange={(val) => validationForm("desc", val)}
multiline
/>
<ButtonSelect
value="Pilih divisi penerima pengumuman"
@@ -171,3 +172,16 @@ export default function CreateAnnouncement() {
</SafeAreaView>
);
}
const styles = StyleSheet.create({
container: {
padding: 20,
},
textArea: {
height: 100, // Or use flex-based sizing
borderColor: 'gray',
borderWidth: 1,
padding: 10,
textAlignVertical: 'top', // Important for Android to align text at the top
},
});

View File

@@ -168,6 +168,7 @@ export default function EditAnnouncement() {
errorText="Pengumuman harus diisi"
onChange={(val) => validationForm("desc", val)}
value={dataForm.desc}
multiline
/>
<ButtonSelect
value="Pilih divisi penerima pengumuman"

View File

@@ -106,6 +106,7 @@ export default function EditDivision() {
onChange={(value) => {
setData({ ...data, desc: value })
}}
multiline
/>
</View>
</ScrollView>

View File

@@ -118,6 +118,7 @@ export default function CreateDivision() {
placeholder="Deskripsi Divisi"
value={dataForm.desc}
onChange={(val) => setDataForm({ ...dataForm, desc: val })}
multiline
/>
</View>
</ScrollView>