From 31a8d46644606fe5778677d78c137decf5f5da45 Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Mon, 11 Mar 2024 00:08:35 +0000 Subject: prep: Setup nativecn-ui --- app/_layout.tsx | 2 + app/signin.tsx | 5 +- babel.config.js | 6 +- components/ui/Button.tsx | 81 +++++++++++ components/ui/Input.tsx | 28 ++++ globals.css | 80 +++++++++++ lib/utils.ts | 6 + metro.config.js | 7 + package.json | 8 +- pnpm-lock.yaml | 354 ++++++++++++++++++++++++++++++++--------------- tailwind.config.js | 67 ++++++++- 11 files changed, 526 insertions(+), 118 deletions(-) create mode 100644 components/ui/Button.tsx create mode 100644 components/ui/Input.tsx create mode 100644 globals.css create mode 100644 lib/utils.ts create mode 100644 metro.config.js diff --git a/app/_layout.tsx b/app/_layout.tsx index 38ccb408..7403c6ff 100644 --- a/app/_layout.tsx +++ b/app/_layout.tsx @@ -1,3 +1,5 @@ +import "@/globals.css"; + import { Slot } from "expo-router"; import { StatusBar } from "expo-status-bar"; import { View } from "react-native"; diff --git a/app/signin.tsx b/app/signin.tsx index fbb59698..641d1b97 100644 --- a/app/signin.tsx +++ b/app/signin.tsx @@ -1,4 +1,6 @@ import Logo from "@/components/Logo"; +import { Button } from "@/components/ui/Button"; +import { Input } from "@/components/ui/Input"; import { TextInput, View } from "react-native"; export default function Signin() { @@ -6,7 +8,8 @@ export default function Signin() { - + +