diff options
| author | MohamedBassem <me@mbassem.com> | 2024-03-10 23:06:49 +0000 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-03-10 23:06:49 +0000 |
| commit | f14c6f43c386fde627d786cf695c63eb1feab09a (patch) | |
| tree | e73ae8b7aa3c4da94aae2c2a25ae81fec69b2d08 /app | |
| parent | 3616e1aa7c1da030f5155e4fffa5c3c0b9769e8c (diff) | |
| download | karakeep-f14c6f43c386fde627d786cf695c63eb1feab09a.tar.zst | |
prep: Install lucide react native
Diffstat (limited to 'app')
| -rw-r--r-- | app/_layout.tsx | 12 | ||||
| -rw-r--r-- | app/index.tsx | 20 | ||||
| -rw-r--r-- | app/signin.tsx | 13 |
3 files changed, 31 insertions, 14 deletions
diff --git a/app/_layout.tsx b/app/_layout.tsx new file mode 100644 index 00000000..38ccb408 --- /dev/null +++ b/app/_layout.tsx @@ -0,0 +1,12 @@ +import { Slot } from "expo-router"; +import { StatusBar } from "expo-status-bar"; +import { View } from "react-native"; + +export default function RootLayout() { + return ( + <View className="w-full h-full bg-white"> + <Slot /> + <StatusBar style="auto" /> + </View> + ); +} diff --git a/app/index.tsx b/app/index.tsx index c6131fa0..e352ba54 100644 --- a/app/index.tsx +++ b/app/index.tsx @@ -1,20 +1,12 @@ -import { StatusBar } from "expo-status-bar"; -import { StyleSheet, Text, View } from "react-native"; +import { Link } from "expo-router"; +import { View } from "react-native"; export default function App() { return ( - <View style={styles.container}> - <Text>Open up App.tsx to start working on your app!</Text> - <StatusBar style="auto" /> + <View className="flex-1 items-center justify-center bg-white"> + <Link href="/signin" className=""> + Signin + </Link> </View> ); } - -const styles = StyleSheet.create({ - container: { - flex: 1, - backgroundColor: "#fff", - alignItems: "center", - justifyContent: "center", - }, -}); diff --git a/app/signin.tsx b/app/signin.tsx new file mode 100644 index 00000000..fbb59698 --- /dev/null +++ b/app/signin.tsx @@ -0,0 +1,13 @@ +import Logo from "@/components/Logo"; +import { TextInput, View } from "react-native"; + +export default function Signin() { + return ( + <View className="items-center justify-center h-full"> + <Logo /> + + <TextInput /> + + </View> + ); +} |
