From af0fbb740d99cb190398701309731a491ef04f4f Mon Sep 17 00:00:00 2001 From: tapframe Date: Mon, 7 Jul 2025 19:27:31 +0530 Subject: [PATCH] fixed calender screen rendering on android --- android/app/build.gradle | 9 ++++++++ src/screens/CalendarScreen.tsx | 38 +--------------------------------- 2 files changed, 10 insertions(+), 37 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 0a09bd6b..602b94cb 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -126,6 +126,15 @@ android { androidResources { ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:!CVS:!thumbs.db:!picasa.ini:!*~' } + + splits { + abi { + enable true + reset() + include "armeabi-v7a", "arm64-v8a", "x86", "x86_64" + universalApk true + } + } } // Apply static values from `gradle.properties` to the `android.packagingOptions` diff --git a/src/screens/CalendarScreen.tsx b/src/screens/CalendarScreen.tsx index 3ca02627..162f69bf 100644 --- a/src/screens/CalendarScreen.tsx +++ b/src/screens/CalendarScreen.tsx @@ -236,43 +236,6 @@ const CalendarScreen = () => { setFilteredEpisodes([]); }, []); - if (libraryItems.length === 0 && !libraryLoading) { - return ( - - - - - navigation.goBack()} - > - - - Calendar - - - - - - - Your library is empty - - - Add series to your library to see their upcoming episodes in the calendar - - navigation.navigate('MainTabs')} - > - - Return to Home - - - - - ); - } - if (loading && !refreshing) { return ( @@ -353,6 +316,7 @@ const CalendarScreen = () => { renderItem={renderEpisodeItem} renderSectionHeader={renderSectionHeader} contentContainerStyle={styles.listContent} + removeClippedSubviews={false} refreshControl={