diff --git a/src/components/Input.tsx b/src/components/InputWithTopLabel.tsx similarity index 90% rename from src/components/Input.tsx rename to src/components/InputWithTopLabel.tsx index f405315..25ca24e 100644 --- a/src/components/Input.tsx +++ b/src/components/InputWithTopLabel.tsx @@ -1,7 +1,7 @@ import type { VariantProps } from "@shopify/restyle"; import type { Theme } from "@themes/Theme"; -import { TextInput } from "react-native"; import type { TextInputProps } from "react-native"; +import { TextInput } from "react-native"; import Box from "./bases/Box"; import Text from "./bases/Text"; @@ -10,7 +10,7 @@ type Props = TextInputProps & label: string; }; -const Input = ({ label, textVariants, ...rest }: Props) => { +const InputWithTopLabel = ({ label, textVariants, ...rest }: Props) => { return ( {label} @@ -21,4 +21,4 @@ const Input = ({ label, textVariants, ...rest }: Props) => { ); }; -export default Input; +export default InputWithTopLabel; diff --git a/src/screens/NumberAndOtpForPaymentScreen.tsx b/src/screens/NumberAndOtpForPaymentScreen.tsx index 70695e4..69a2121 100644 --- a/src/screens/NumberAndOtpForPaymentScreen.tsx +++ b/src/screens/NumberAndOtpForPaymentScreen.tsx @@ -2,7 +2,7 @@ import type { PaymentStackScreenComponentProps } from "@/navigations/Types"; import BeasyLogoIcon from "@components/BeasyLogoIcon"; import Button from "@components/Button"; import GoBackIconButton from "@components/GoBackIconButton"; -import Input from "@components/Input"; +import InputWithTopLabel from "@components/InputWithTopLabel"; import PaymentOption from "@components/PaymentOption"; import BackgroundGreenWhiteContentArea from "@components/backgrounds/BackgroundGreenWhiteContentArea"; import Box from "@components/bases/Box"; @@ -40,12 +40,16 @@ const NumberAndOtpForPaymentScreen: PaymentStackScreenComponentProps< {}} paymentMethod={"OM"} /> - - +