fix & featur

deskripsi:
- fix component stack dan drawer
- new page list path profile
This commit is contained in:
2025-07-09 17:22:43 +08:00
parent bfb029058c
commit ee7efaef6a
12 changed files with 199 additions and 83 deletions

View File

@@ -1,10 +1,10 @@
import React, { useRef } from "react";
import {
Animated,
InteractionManager,
PanResponder,
StyleSheet,
View,
Animated,
PanResponder,
StyleSheet,
View,
InteractionManager,
} from "react-native";
import { AccentColor, MainColor } from "@/constants/color-palet";
@@ -86,7 +86,7 @@ DrawerCustomProps) {
{...panResponder.panHandlers}
>
<View
style={[styles.headerBar, { backgroundColor: MainColor.white_gray }]}
style={[styles.headerBar, { backgroundColor: MainColor.white }]}
/>
{children}
@@ -152,7 +152,7 @@ const styles = StyleSheet.create({
headerBar: {
width: 40,
height: 5,
backgroundColor: MainColor.white_gray,
backgroundColor: MainColor.white,
borderRadius: 5,
alignSelf: "center",
marginVertical: 10,

View File

@@ -19,7 +19,7 @@ const StackCustom: React.FC<StackProps> = ({
children,
align = "stretch",
justify = "flex-start",
gap = "xs",
gap = "md",
direction = "column",
style,
}) => {

View File

@@ -89,19 +89,14 @@ const TextInputCustom = ({
disabled && GStyles.disabledBox,
]}
>
{iconLeft && (
{/* {iconLeft && (
<View style={GStyles.inputIcon}>{renderIcon(iconLeft)}</View>
)}
)} */}
<RNTextInput
style={[
GStyles.inputText,
{ color: fontColor },
disabled
? GStyles.inputTextDisabled // <-- custom style untuk text saat disabled
: GStyles.inputText,
disabled
? GStyles.inputPlaceholderDisabled // <-- placeholder saat disabled
: GStyles.inputPlaceholder,
disabled && GStyles.inputPlaceholderDisabled, // <-- placeholder saat disabled
]}
editable={!disabled}
secureTextEntry={secureTextEntry && !isPasswordVisible}