diff --git a/.eslintrc.js b/.eslintrc.js index 6ce8c58..3ccd63b 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,6 +1,9 @@ module.exports = { root: true, extends: '@react-native', + plugins: { + prettier: true, + }, rules: { 'react/no-unstable-nested-components': [ 'off', diff --git a/.gitignore b/.gitignore index 0cab2ac..cfe6bd0 100644 --- a/.gitignore +++ b/.gitignore @@ -20,7 +20,7 @@ DerivedData *.hmap *.ipa *.xcuserstate -ios/.xcode.env.local +**/.xcode.env.local # Android/IntelliJ # @@ -56,7 +56,7 @@ yarn-error.log *.jsbundle # Ruby / CocoaPods -/ios/Pods/ +**/Pods/ /vendor/bundle/ # Temporary files created by Metro to check the health of the file watcher @@ -64,3 +64,11 @@ yarn-error.log # testing /coverage + +# Yarn +.yarn/* +!.yarn/patches +!.yarn/plugins +!.yarn/releases +!.yarn/sdks +!.yarn/versions \ No newline at end of file diff --git a/.yarnrc.yml b/.yarnrc.yml new file mode 100644 index 0000000..3186f3f --- /dev/null +++ b/.yarnrc.yml @@ -0,0 +1 @@ +nodeLinker: node-modules diff --git a/App.tsx b/App.tsx index 5ac151c..84478a7 100644 --- a/App.tsx +++ b/App.tsx @@ -1,20 +1,38 @@ import React from 'react'; -import {SafeAreaView, useColorScheme} from 'react-native'; - -import {Colors} from 'react-native/Libraries/NewAppScreen'; -import {Box, Button, Text} from './src'; +import {SafeAreaView} from 'react-native'; +import {CalendarBox} from './src/atomic/organisms/CalendarBox'; +import {formatDate} from './src/utils/date.util'; +import {TextBox} from './src'; function App(): React.JSX.Element { - const isDarkMode = useColorScheme() === 'dark'; - const backgroundStyle = { - backgroundColor: isDarkMode ? Colors.darker : Colors.lighter, - }; - + const [value, setValue] = React.useState(formatDate('2024-02-02')); + const [selectedDates, setSelectedDates] = React.useState<{[key: string]: {}}>( + { + '2024-11-01': { + classBox: 'rounded-l-xl bg-primary', + classDot: 'bg-green-400', + }, + '2024-11-02': {classText: 'text-black'}, + '2024-11-03': { + classText: 'text-black', + }, + '2024-11-04': {classBox: 'rounded-r-xl bg-primary'}, + }, + ); return ( - - -