From 2b720405ae3a19ac78fbf3e7231394364ba83c99 Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Mon, 11 Mar 2024 01:37:22 +0000 Subject: mobile: Prepare to merge into main repo --- packages/mobile/components/ui/Input.tsx | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 packages/mobile/components/ui/Input.tsx (limited to 'packages/mobile/components/ui/Input.tsx') diff --git a/packages/mobile/components/ui/Input.tsx b/packages/mobile/components/ui/Input.tsx new file mode 100644 index 00000000..6fc90b8f --- /dev/null +++ b/packages/mobile/components/ui/Input.tsx @@ -0,0 +1,28 @@ +import { forwardRef } from "react"; +import { Text, TextInput, View } from "react-native"; + +import { cn } from "@/lib/utils"; + +export interface InputProps + extends React.ComponentPropsWithoutRef { + label?: string; + labelClasses?: string; + inputClasses?: string; +} + +const Input = forwardRef, InputProps>( + ({ className, label, labelClasses, inputClasses, ...props }, ref) => ( + + {label && {label}} + + + ), +); + +export { Input }; -- cgit v1.2.3-70-g09d2