-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
typescript navigation error corrected
- Loading branch information
Showing
3 changed files
with
60 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { StyleSheet, Text, View } from "react-native"; | ||
import React from "react"; | ||
|
||
const LoginScreen = () => { | ||
return ( | ||
<View> | ||
<Text>LoginScreen</Text> | ||
</View> | ||
); | ||
}; | ||
|
||
export default LoginScreen; | ||
|
||
const styles = StyleSheet.create({}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { | ||
View, | ||
Text, | ||
StyleSheet, | ||
Pressable, | ||
useColorScheme, | ||
} from "react-native"; | ||
import React from "react"; | ||
import { Ionicons } from "@expo/vector-icons"; | ||
|
||
import { light, dark } from "../constants/Colors"; | ||
import { showCreateProp } from "../types/type"; | ||
import FONT from "../constants/FONT"; | ||
|
||
const Head = ({ showCreate }: showCreateProp) => { | ||
const DarkMode = useColorScheme() === "dark"; | ||
return ( | ||
<View style={{ flexDirection: "row", alignItems: "center", gap: 5 }}> | ||
<Pressable onPress={() => showCreate(false)}> | ||
<Ionicons | ||
name="arrow-back-circle-outline" | ||
size={30} | ||
color={DarkMode ? dark.text2 : light.text2} | ||
/> | ||
</Pressable> | ||
<Text style={[styles.header1Txt, DarkMode && { color: dark.text }]}> | ||
Create To-do | ||
</Text> | ||
</View> | ||
); | ||
}; | ||
|
||
export default Head; | ||
|
||
const styles = StyleSheet.create({ | ||
header1Txt: { | ||
fontFamily: FONT.JBold, | ||
fontSize: 30, | ||
color: "black", | ||
textAlign: "left", | ||
}, | ||
}); |