feat: 메인 화면 바텀 네비게이션 생성
This commit is contained in:
@@ -1,20 +1,15 @@
|
||||
import AsyncStorage from "@react-native-async-storage/async-storage";
|
||||
import { Button, StyleSheet, View } from "react-native";
|
||||
import AppText from "../components/ui/AppText";
|
||||
import { useAuth } from "../store/auth";
|
||||
import { Colors } from "../theme/colors";
|
||||
|
||||
export default function HomeScreen() {
|
||||
const { signOut } = useAuth();
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<Button
|
||||
title="Debug Storage"
|
||||
onPress={async () => {
|
||||
const keys = await AsyncStorage.getAllKeys();
|
||||
const entries = await AsyncStorage.multiGet(keys);
|
||||
console.log(entries);
|
||||
}}
|
||||
/>
|
||||
<Button title="logout" onPress={() => signOut()}></Button>
|
||||
<AppText>fewfeaw</AppText>
|
||||
<AppText>fewfeaw</AppText>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
@@ -22,8 +17,14 @@ export default function HomeScreen() {
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
flex: 1,
|
||||
backgroundColor: "red",
|
||||
backgroundColor: Colors.bg,
|
||||
alignContent: "center",
|
||||
justifyContent: "center",
|
||||
},
|
||||
row: {
|
||||
flexDirection: "row",
|
||||
gap: 12,
|
||||
justifyContent: "center",
|
||||
alignItems: "center",
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user