From 6e01d834534be10a77e4b6f09d598a34a9c72c96 Mon Sep 17 00:00:00 2001 From: KimHyeongKeun <107840065+KimHyeongKeun@users.noreply.github.com> Date: Mon, 19 Jun 2023 02:19:53 +0900 Subject: [PATCH 1/6] ToDo.js --- src/components/CheckBox2.js | 37 +++++++++++++++++++++++++++++ src/components/Checkbox.js | 2 +- src/components/input2.js | 21 +++++++++------- src/screens/Calendar/BottomSheet.js | 4 +--- src/screens/Calendar/ToDo.js | 27 ++++++++++++++++++--- 5 files changed, 76 insertions(+), 15 deletions(-) create mode 100644 src/components/CheckBox2.js diff --git a/src/components/CheckBox2.js b/src/components/CheckBox2.js new file mode 100644 index 0000000..a577ad1 --- /dev/null +++ b/src/components/CheckBox2.js @@ -0,0 +1,37 @@ +import { Pressable, StyleSheet, Text, View } from "react-native"; +import React from "react"; +import { MaterialCommunityIcons } from "@expo/vector-icons"; + +const CheckBox2 = (props) => { + const iconName = props.isChecked ? + "checkbox-marked" : "checkbox-blank-outline"; + + return ( + + + + + + ); +}; + +export default CheckBox2; + +const styles = StyleSheet.create({ + container: { + // justifyContent: "flex-start", + // alignItems: "center", + flexDirection: "row", + width: 20, + marginTop: 28, + marginHorizontal: 5, + }, + title: { + fontSize: 18, + color: "#000", + marginLeft: 5, + fontWeight: "500", + + }, +}); \ No newline at end of file diff --git a/src/components/Checkbox.js b/src/components/Checkbox.js index 652de27..235c8b3 100644 --- a/src/components/Checkbox.js +++ b/src/components/Checkbox.js @@ -25,7 +25,7 @@ const styles = StyleSheet.create({ // alignItems: "center", flexDirection: "row", width: 250, - marginTop: 20, + marginTop: 30, marginHorizontal: 5, }, title: { diff --git a/src/components/input2.js b/src/components/input2.js index ae3b61d..77f810b 100644 --- a/src/components/input2.js +++ b/src/components/input2.js @@ -40,26 +40,31 @@ Input2.displayName = "Input2"; const defaultStyles = StyleSheet.create({ container: { width: "50%", - marginRight: 10, - // justifyContent: 'center' + // marginRight: 100, + marginRight: 20, + justifyContent: 'flex-start', + marginLeft: 3, + }, title: { - marginBottom: 4, - fontWeight: "100", + marginBottom: 17, + fontWeight: "700", + fontSize: 16, + width:'150%', + }, input: { // flexDirection: "row", - borderBottomWidth: 2, - borderRadius: 1, - height: 15, + // borderRadius: 1, + // height: 15, // justifyContent: 'center' // paddingHorizontal: 10, }, icon: { - paddingHorizontal:100, + paddingHorizontal:300, // position: "absolute", // left: 8, // height: "100%", diff --git a/src/screens/Calendar/BottomSheet.js b/src/screens/Calendar/BottomSheet.js index dea12c5..0864f81 100644 --- a/src/screens/Calendar/BottomSheet.js +++ b/src/screens/Calendar/BottomSheet.js @@ -15,11 +15,9 @@ import Button2 from '../../components/Button2'; import { BLACK, GRAY, PRIMARY, WHITE, GHOSTWHITE, LIGHTGRAY, ALICEBLUE } from '../../colors'; import Calendar from 'react-calendar'; import ToDo from './ToDo'; -import Logo from '../../components/Logo'; import { AuthRoutes } from '../../navigations/routes'; import { useNavigation } from '@react-navigation/native'; - - +import Logo from '../../components/Logo'; diff --git a/src/screens/Calendar/ToDo.js b/src/screens/Calendar/ToDo.js index 8bdef19..4118cb1 100644 --- a/src/screens/Calendar/ToDo.js +++ b/src/screens/Calendar/ToDo.js @@ -24,6 +24,7 @@ import { import React from 'react'; import BottomSheet from './BottomSheet'; import Button2 from '../../components/Button2'; + import CheckBox2 from '../../components/CheckBox2'; @@ -130,21 +131,26 @@ import { - + setBlank(!isBlank)} isChecked={isBlank} + /> + + setEmail(email.trim())} /> + - +