Component

Add:
-  components/_ShareComponent/SearchInput.tsx

Job
Add:
-  screens/Job/
-  app/(application)/(user)/job/(tabs)/index.tsx

Forum:
Fix:
- app/(application)/(user)/job/(tabs)/index: Component search input terpusat

# No Issue
This commit is contained in:
2025-07-25 11:19:11 +08:00
parent ed87d4a3f3
commit 7528c449eb
5 changed files with 157 additions and 24 deletions

View File

@@ -0,0 +1,39 @@
import { MainColor } from "@/constants/color-palet";
import { ICON_SIZE_SMALL } from "@/constants/constans-value";
import TextInputCustom from "../TextInput/TextInputCustom";
import { Ionicons } from "@expo/vector-icons";
import { StyleProp, ViewStyle, TextStyle } from "react-native";
interface SearchInputProps {
placeholder?: string;
onPress?: () => void;
iconLeft?: React.ReactNode;
iconRight?: React.ReactNode;
containerStyle?: StyleProp<ViewStyle>;
style?: StyleProp<TextStyle>;
}
export default function SearchInput({
placeholder,
onPress,
iconLeft,
iconRight,
containerStyle = { marginBottom: 0 },
style,
...props
}: SearchInputProps) {
return (
<TextInputCustom
iconLeft={
<Ionicons
name="search-outline"
size={ICON_SIZE_SMALL}
color={MainColor.placeholder}
/>
}
placeholder={placeholder}
borderRadius={50}
containerStyle={containerStyle}
{...props}
/>
);
}

View File

@@ -49,6 +49,7 @@ import AvatarUsernameAndOtherComponent from "./_ShareComponent/AvataraAndOtherHe
import Spacing from "./_ShareComponent/Spacing";
import TabBarBackground from "./_ShareComponent/TabBarBackground";
import ViewWrapper from "./_ShareComponent/ViewWrapper";
import SearchInput from "./_ShareComponent/SearchInput";
export {
AlertCustom,
@@ -91,6 +92,7 @@ export {
// Select
SelectCustom,
// ShareComponent
SearchInput,
Spacing,
// Stack
StackCustom,