This file contains hidden or 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
| import React, { useCallback, useEffect, useRef, useState } from "react"; | |
| import { Platform, StyleSheet, TouchableOpacity, View } from "react-native"; | |
| import Svg, { Circle, Line, Path, Rect } from "react-native-svg"; | |
| import Animated, { | |
| runOnJS, | |
| useAnimatedGestureHandler, | |
| useAnimatedProps, | |
| useAnimatedStyle, | |
| useDerivedValue, | |
| useSharedValue, |
This file contains hidden or 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
| FROM node:12 | |
| WORKDIR /app | |
| COPY ./package*.json ./ | |
| RUN npm install | |
| ENV PORT=4000 | |
| COPY . . | |
| CMD ["npm","run","start"] |
This file contains hidden or 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
| //note: month is 0 based, just like Dates in js | |
| function getWeeksInMonth(year, month) { | |
| const weeks = [], | |
| firstDate = new Date(year, month, 1), | |
| lastDate = new Date(year, month + 1, 0), | |
| numDays = lastDate.getDate(); | |
| let dayOfWeekCounter = firstDate.getDay(); | |
| for (let date = 1; date <= numDays; date++) { |