fix: scroll

Deskripsi:
- scrool down saat menambahkan anggota dan memilih admin pada saat tambah divisi

No Issues
This commit is contained in:
2025-10-07 11:02:47 +08:00
parent d2cb7d7738
commit 5fcabc5d77
2 changed files with 7 additions and 7 deletions

View File

@@ -74,7 +74,7 @@ export default function CreateDivisionAddAdmin() {
return (
<SafeAreaView>
<>
<Stack.Screen
options={{
headerLeft: () => <ButtonBackHeader onPress={() => { router.back() }} />,
@@ -91,7 +91,7 @@ export default function CreateDivisionAddAdmin() {
)
}}
/>
<View style={[Styles.p15]}>
<View style={[Styles.p15, { flex: 1 }]}>
<ScrollView>
{
data.length > 0 ?
@@ -126,6 +126,6 @@ export default function CreateDivisionAddAdmin() {
}
</ScrollView>
</View>
</SafeAreaView>
</>
)
}

View File

@@ -12,7 +12,7 @@ import { useAuthSession } from "@/providers/AuthProvider";
import { AntDesign } from "@expo/vector-icons";
import { router, Stack, useLocalSearchParams } from "expo-router";
import { useEffect, useState } from "react";
import { Pressable, SafeAreaView, ScrollView, View } from "react-native";
import { Pressable, ScrollView, View } from "react-native";
import { useDispatch, useSelector } from "react-redux";
type Props = {
@@ -60,7 +60,7 @@ export default function CreateDivisionAddMember() {
return (
<SafeAreaView>
<>
<Stack.Screen
options={{
headerLeft: () => <ButtonBackHeader onPress={() => { router.back() }} />,
@@ -74,7 +74,7 @@ export default function CreateDivisionAddMember() {
)
}}
/>
<View style={[Styles.p15]}>
<View style={[Styles.p15, { flex: 1 }]}>
<InputSearch onChange={(val) => setSearch(val)} value={search} />
{
@@ -135,6 +135,6 @@ export default function CreateDivisionAddMember() {
}
</ScrollView>
</View>
</SafeAreaView>
</>
)
}