From 18223c5f92461aca703d973f483f09516300e4ba Mon Sep 17 00:00:00 2001 From: Milan Paunovic Date: Fri, 1 Nov 2024 23:17:56 +0100 Subject: [PATCH] All day event package --- components/pages/calendar/EventCalendar.tsx | 7 +++---- ios/cally/Info.plist | 2 ++ patches/react-native-big-calendar+4.15.1.patch | 11 ++++++++++- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/components/pages/calendar/EventCalendar.tsx b/components/pages/calendar/EventCalendar.tsx index cd7248e..1a23dac 100644 --- a/components/pages/calendar/EventCalendar.tsx +++ b/components/pages/calendar/EventCalendar.tsx @@ -273,10 +273,9 @@ export const EventCalendar: React.FC = React.memo( dayHeaderStyle={dateStyle} dayHeaderHighlightColor={"white"} showAdjacentMonths - // headerContainerStyle={mode !== "month" ? { - // overflow:"hidden", - // height: 12, - // } : {}} + headerContainerStyle={mode !== "month" ? { + overflow:"hidden", + } : {}} hourStyle={styles.hourStyle} ampm // renderCustomDateForMonth={renderCustomDateForMonth} diff --git a/ios/cally/Info.plist b/ios/cally/Info.plist index a809e65..93d891a 100644 --- a/ios/cally/Info.plist +++ b/ios/cally/Info.plist @@ -149,6 +149,8 @@ $(PRODUCT_BUNDLE_IDENTIFIER).expo.index_route $(PRODUCT_BUNDLE_IDENTIFIER).expo.index_route $(PRODUCT_BUNDLE_IDENTIFIER).expo.index_route + $(PRODUCT_BUNDLE_IDENTIFIER).expo.index_route + $(PRODUCT_BUNDLE_IDENTIFIER).expo.index_route UILaunchStoryboardName SplashScreen diff --git a/patches/react-native-big-calendar+4.15.1.patch b/patches/react-native-big-calendar+4.15.1.patch index 88c2906..59c0912 100644 --- a/patches/react-native-big-calendar+4.15.1.patch +++ b/patches/react-native-big-calendar+4.15.1.patch @@ -1,5 +1,5 @@ diff --git a/node_modules/react-native-big-calendar/build/index.js b/node_modules/react-native-big-calendar/build/index.js -index 848ceba..add1b1c 100644 +index 848ceba..f326b8e 100644 --- a/node_modules/react-native-big-calendar/build/index.js +++ b/node_modules/react-native-big-calendar/build/index.js @@ -9,6 +9,17 @@ var isoWeek = require('dayjs/plugin/isoWeek'); @@ -184,3 +184,12 @@ index 848ceba..add1b1c 100644 return finalEvents_1; } }, [events, sortedMonthView]); +@@ -1311,7 +1326,7 @@ function _CalendarHeader(_a) { + !stringHasContent(dayHeaderHighlightColor) && + u['mt-6'], + ] }, date.format('D')))), +- showAllDayEventCell ? (React__namespace.createElement(reactNative.View, { style: [ ++ showAllDayEventCell ? (React__namespace.createElement(reactNative.ScrollView, { style: [ + u['border-l'], + { borderColor: theme.palette.gray['200'] }, + { height: cellHeight },