@zezosoft/zezo-ott-react-native-ui-kit 1.3.6 → 1.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -36
- package/lib/module/components/Content/Card/components/AdsPoster.js +40 -55
- package/lib/module/components/Content/Card/components/AdsPoster.js.map +1 -1
- package/lib/module/components/Content/Card/components/CardPoster.js +81 -107
- package/lib/module/components/Content/Card/components/CardPoster.js.map +1 -1
- package/lib/module/components/Content/Card/components/ThumbnailCard.js +48 -70
- package/lib/module/components/Content/Card/components/ThumbnailCard.js.map +1 -1
- package/lib/module/components/Search/components/SearchCard.js +2 -2
- package/lib/module/components/Search/components/SearchCard.js.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/AdsPoster.d.ts +1 -1
- package/lib/typescript/src/components/Content/Card/components/AdsPoster.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/ThumbnailCard.d.ts +1 -1
- package/lib/typescript/src/components/Content/Card/components/ThumbnailCard.d.ts.map +1 -1
- package/lib/typescript/src/components/Search/components/SearchCard.d.ts.map +1 -1
- package/package.json +1 -3
- package/lib/module/utils/colorUtils.js +0 -68
- package/lib/module/utils/colorUtils.js.map +0 -1
- package/lib/typescript/src/utils/colorUtils.d.ts +0 -19
- package/lib/typescript/src/utils/colorUtils.d.ts.map +0 -1
- package/src/assets/animations/135037-payment-processing-error.json +0 -1347
- package/src/assets/animations/7227-vui-animation.json +0 -3377
- package/src/assets/animations/Failed.json +0 -2103
- package/src/assets/animations/Pending.json +0 -522
- package/src/assets/animations/Successful.json +0 -2289
- package/src/assets/animations/heart.json +0 -788
- package/src/assets/animations/succesfull-payment.json +0 -2379
- package/src/assets/animations/voice-icon.json +0 -542
- package/src/assets/img/back.png +0 -0
- package/src/assets/img/bottom-panel.png +0 -0
- package/src/assets/img/camera.png +0 -0
- package/src/assets/img/camera2.png +0 -0
- package/src/assets/img/home.png +0 -0
- package/src/assets/img/lock.png +0 -0
- package/src/assets/img/play.png +0 -0
- package/src/assets/img/profile.jpg +0 -0
- package/src/assets/img/qr-code.png +0 -0
- package/src/assets/img/shadow.png +0 -0
- package/src/assets/img/shadow2.png +0 -0
- package/src/assets/img/user.png +0 -0
- package/src/assets/svg/Account.svg +0 -4
- package/src/assets/svg/Favourite.svg +0 -14
- package/src/assets/svg/Upcoming.svg +0 -4
- package/src/assets/svg/content-error.svg +0 -28
- package/src/assets/svg/download.svg +0 -3
- package/src/assets/svg/eye-off.svg +0 -10
- package/src/assets/svg/favorites.svg +0 -3
- package/src/assets/svg/h.svg +0 -4
- package/src/assets/svg/home.svg +0 -5
- package/src/assets/svg/home1.svg +0 -3
- package/src/assets/svg/menu-bar.svg +0 -4
- package/src/assets/svg/my-space.svg +0 -14
- package/src/assets/svg/play-icon-with-bg.svg +0 -5
- package/src/assets/svg/profile.svg +0 -4
- package/src/assets/svg/search.svg +0 -5
- package/src/assets/svg/search1.svg +0 -4
- package/src/assets/svg/server-error.svg +0 -139
- package/src/components/Account/Account.tsx +0 -354
- package/src/components/Account/index.ts +0 -6
- package/src/components/Alert/AlertDialog.tsx +0 -253
- package/src/components/Alert/UAAlert.tsx +0 -176
- package/src/components/Alert/index.ts +0 -7
- package/src/components/Auth/AuthProvider/AuthProvider.tsx +0 -412
- package/src/components/Auth/One/ForgotPassword/ForgotPassword.tsx +0 -333
- package/src/components/Auth/One/Login/LoginWithEmail.tsx +0 -449
- package/src/components/Auth/One/Login/LoginWithPhone.tsx +0 -309
- package/src/components/Auth/One/OTP/OTP.tsx +0 -539
- package/src/components/Auth/One/QrLogin/QrLogin.tsx +0 -329
- package/src/components/Auth/One/QrLogin/components/index.ts +0 -8
- package/src/components/Auth/One/QrLogin/components/qr-scanner-fallback.tsx +0 -158
- package/src/components/Auth/One/QrLogin/components/qr-scanner-frame.tsx +0 -207
- package/src/components/Auth/One/QrLogin/components/qr-scanner-header.tsx +0 -65
- package/src/components/Auth/One/QrLogin/components/qr-scanner-intro.tsx +0 -255
- package/src/components/Auth/One/QrLogin/components/qr-scanner-overlay.tsx +0 -291
- package/src/components/Auth/One/SignUp/SignUp.tsx +0 -470
- package/src/components/Auth/One/SplashScreen/SplashScreen.tsx +0 -229
- package/src/components/Auth/One/SplashScreen/components/SplashImage/SplashImage.tsx +0 -92
- package/src/components/Auth/One/SplashScreen/components/SplashLottie/SplashLottie.tsx +0 -129
- package/src/components/Auth/One/SplashScreen/components/SplashVideo/SplashVideo.tsx +0 -172
- package/src/components/Auth/One/SplashScreen/utils/splashUtils.ts +0 -23
- package/src/components/Auth/One/index.ts +0 -24
- package/src/components/Auth/Two/AuthHeader/AuthHeader.tsx +0 -130
- package/src/components/Auth/Two/ForgotPassword/ForgotPassword.tsx +0 -331
- package/src/components/Auth/Two/Login/EmailOrPhoneLogin.tsx +0 -612
- package/src/components/Auth/Two/OTP/OTP.tsx +0 -504
- package/src/components/Auth/Two/SignUp/SignUp.tsx +0 -439
- package/src/components/Auth/Two/index.ts +0 -20
- package/src/components/Auth/index.ts +0 -16
- package/src/components/BackgroundLayout/One/One.tsx +0 -184
- package/src/components/BackgroundLayout/Two/Two.tsx +0 -65
- package/src/components/BackgroundLayout/index.ts +0 -14
- package/src/components/BlogView/BlogView.tsx +0 -282
- package/src/components/BlogView/index.ts +0 -8
- package/src/components/BlurView/BlurView.tsx +0 -199
- package/src/components/BlurView/index.ts +0 -7
- package/src/components/BottomSheet/BottomSheet.tsx +0 -204
- package/src/components/BottomSheet/BottomSheetOne.tsx +0 -223
- package/src/components/BottomSheet/index.ts +0 -9
- package/src/components/Button/BackBtn.tsx +0 -149
- package/src/components/Button/MenuBtn.tsx +0 -220
- package/src/components/Button/PrimaryBtn.tsx +0 -123
- package/src/components/Button/SecondaryBtn.tsx +0 -123
- package/src/components/Button/TextButton.tsx +0 -150
- package/src/components/Button/index.ts +0 -18
- package/src/components/Button/types.ts +0 -33
- package/src/components/Content/Card/Category/Category.tsx +0 -436
- package/src/components/Content/Card/Category/CategroyTwo.tsx +0 -429
- package/src/components/Content/Card/NowWatching/NowWatching.tsx +0 -607
- package/src/components/Content/Card/Sliders/Styles/One.tsx +0 -490
- package/src/components/Content/Card/Sliders/Styles/Three.tsx +0 -1017
- package/src/components/Content/Card/Sliders/Styles/Two.tsx +0 -395
- package/src/components/Content/Card/Sliders/index.ts +0 -18
- package/src/components/Content/Card/Styles/Five.tsx +0 -367
- package/src/components/Content/Card/Styles/Four.tsx +0 -366
- package/src/components/Content/Card/Styles/One.tsx +0 -372
- package/src/components/Content/Card/Styles/RotateInOut.tsx +0 -413
- package/src/components/Content/Card/Styles/Six.tsx +0 -378
- package/src/components/Content/Card/Styles/Three.tsx +0 -312
- package/src/components/Content/Card/Styles/TopTen.tsx +0 -402
- package/src/components/Content/Card/Styles/Two.tsx +0 -404
- package/src/components/Content/Card/components/AdsPoster.tsx +0 -207
- package/src/components/Content/Card/components/CardPoster.tsx +0 -377
- package/src/components/Content/Card/components/LiveBadge.tsx +0 -125
- package/src/components/Content/Card/components/NavigateToMore.tsx +0 -97
- package/src/components/Content/Card/components/RentOrBuyIcon.tsx +0 -134
- package/src/components/Content/Card/components/ShowAllButton.tsx +0 -92
- package/src/components/Content/Card/components/ThumbnailCard.tsx +0 -219
- package/src/components/Content/Card/components/index.ts +0 -12
- package/src/components/Content/Card/index.ts +0 -31
- package/src/components/Content/Content.tsx +0 -338
- package/src/components/Content/Sections.tsx +0 -239
- package/src/components/Content/types.ts +0 -180
- package/src/components/ContentView/MoreContentList.tsx +0 -330
- package/src/components/ContentView/One/ContentViewOne.tsx +0 -251
- package/src/components/ContentView/One/components/CastCard.tsx +0 -266
- package/src/components/ContentView/One/components/HeroBanner.tsx +0 -413
- package/src/components/ContentView/One/components/MiniInfo.tsx +0 -343
- package/src/components/ContentView/One/components/Title.tsx +0 -149
- package/src/components/ContentView/Two/ContentViewTwo.tsx +0 -332
- package/src/components/ContentView/Two/components/Details.tsx +0 -196
- package/src/components/ContentView/Two/components/HeroBanner.tsx +0 -267
- package/src/components/ContentView/Two/components/LikeShareActions.tsx +0 -125
- package/src/components/ContentView/Two/components/MoreLikeThisContentList .tsx +0 -308
- package/src/components/ContentView/Two/components/PlayOrTrailer.tsx +0 -162
- package/src/components/ContentView/Two/components/SectionTabs.tsx +0 -181
- package/src/components/ContentView/Two/components/Title.tsx +0 -229
- package/src/components/ContentView/Two/components/index.ts +0 -12
- package/src/components/ContentView/index.ts +0 -13
- package/src/components/ContentView/shared/AboutSection.tsx +0 -226
- package/src/components/ContentView/shared/EpisodeCard.tsx +0 -600
- package/src/components/ContentView/shared/GenreTags.tsx +0 -189
- package/src/components/ContentView/shared/PlayButton.tsx +0 -52
- package/src/components/ContentView/shared/TrailerButton.tsx +0 -76
- package/src/components/Fallbacks/NoContentFallback.tsx +0 -175
- package/src/components/Fallbacks/NotFoundFallback.tsx +0 -94
- package/src/components/Fallbacks/index.ts +0 -7
- package/src/components/Headers/AppHeader.tsx +0 -151
- package/src/components/Headers/Four.tsx +0 -84
- package/src/components/Headers/One.tsx +0 -115
- package/src/components/Headers/Three.tsx +0 -137
- package/src/components/Headers/Two.tsx +0 -101
- package/src/components/Headers/index.ts +0 -34
- package/src/components/Input/Input.ts +0 -18
- package/src/components/Input/InputOne.tsx +0 -265
- package/src/components/Input/InputThree.tsx +0 -205
- package/src/components/Input/InputTwo.tsx +0 -217
- package/src/components/Input/PhoneInput/One/One.tsx +0 -415
- package/src/components/Input/PhoneInput/Two/Two.tsx +0 -406
- package/src/components/Input/PhoneInput/index.ts +0 -14
- package/src/components/Keyboard/HideKeyboard.tsx +0 -91
- package/src/components/Loader/Loader.tsx +0 -49
- package/src/components/Logo/Logo.tsx +0 -150
- package/src/components/NewRelease/NewReleaseSheet.tsx +0 -260
- package/src/components/NewRelease/index.ts +0 -6
- package/src/components/Reels/ReelsSeries/MediaControls/BottomControls.tsx +0 -226
- package/src/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.tsx +0 -324
- package/src/components/Reels/ReelsSeries/MediaControls/MiddleControls.tsx +0 -201
- package/src/components/Reels/ReelsSeries/MediaControls/RightControls.tsx +0 -100
- package/src/components/Reels/ReelsSeries/MediaControls/TopControls.tsx +0 -168
- package/src/components/Reels/ReelsSeries/Model/DetailsModal.tsx +0 -207
- package/src/components/Reels/ReelsSeries/Model/SettingModal.tsx +0 -151
- package/src/components/Reels/ReelsSeries/Model/UnlockModal.tsx +0 -159
- package/src/components/Reels/ReelsSeries/ReelsSeries.tsx +0 -278
- package/src/components/Reels/ReelsSeries/ReelsSeriesItem.tsx +0 -569
- package/src/components/Reels/ReelsSeries/components/AnimatedThreeLines.tsx +0 -189
- package/src/components/Reels/ReelsSeries/components/Episodes.tsx +0 -159
- package/src/components/Reels/ReelsSeries/components/GradientOverlay.tsx +0 -46
- package/src/components/Reels/ReelsSeries/components/Like.tsx +0 -45
- package/src/components/Reels/ReelsSeries/components/RotatingLoader.tsx +0 -84
- package/src/components/Reels/ReelsSeries/components/Synopsis.tsx +0 -338
- package/src/components/Reels/ReelsSeries/components/VideoControls/QualityControl.tsx +0 -185
- package/src/components/Reels/ReelsSeries/components/VideoControls/SpeedControl.tsx +0 -77
- package/src/components/Reels/ReelsSeries/components/VideoControls/index.ts +0 -7
- package/src/components/Reels/ReelsSeries/types.ts +0 -78
- package/src/components/Reels/ReelsSeries/useReelsWatchProgress.ts +0 -90
- package/src/components/Reels/ReelsSeries/utils/quality.ts +0 -72
- package/src/components/Reels/index.ts +0 -9
- package/src/components/Reels/utils/Controls/gestureUtils.ts +0 -46
- package/src/components/Reels/utils/Controls/index.ts +0 -9
- package/src/components/Reels/utils/Controls/overlayUtils.ts +0 -40
- package/src/components/Reels/utils/Controls/videoControlsConstants.ts +0 -30
- package/src/components/Reels/utils/Controls/videoRef.ts +0 -9
- package/src/components/Reels/utils/index.ts +0 -6
- package/src/components/Reels/utils/timeoutUtils.ts +0 -34
- package/src/components/Search/One.tsx +0 -262
- package/src/components/Search/components/RecentSearchesSection.tsx +0 -181
- package/src/components/Search/components/SearchCard.tsx +0 -285
- package/src/components/Search/index.ts +0 -16
- package/src/components/Settings/AppSettings.tsx +0 -442
- package/src/components/Settings/index.ts +0 -6
- package/src/components/Subscription/SubOne.tsx +0 -423
- package/src/components/Subscription/components/SubsDetailsModal.tsx +0 -347
- package/src/components/Subscription/components/SubscriptionCard.tsx +0 -342
- package/src/components/Subscription/index.ts +0 -12
- package/src/components/TabBar/One.tsx +0 -145
- package/src/components/TabBar/Three.tsx +0 -162
- package/src/components/TabBar/Two.tsx +0 -179
- package/src/components/TabBar/index.ts +0 -20
- package/src/components/Text/Text.tsx +0 -90
- package/src/components/Text/index.ts +0 -6
- package/src/components/User/DeviceSessions/DeviceSessions.tsx +0 -468
- package/src/components/User/ProfileUpdate/ProfileUpdate.tsx +0 -293
- package/src/components/User/PurchaseHistory/PurchaseHistory.tsx +0 -504
- package/src/components/User/WatchHistory/WatchHistory.tsx +0 -214
- package/src/components/User/WatchLater/WatchLater.tsx +0 -400
- package/src/components/User/components/UserAvatar.tsx +0 -121
- package/src/components/User/components/UserSection.tsx +0 -218
- package/src/components/User/index.ts +0 -18
- package/src/components/View/View.tsx +0 -38
- package/src/components/View/index.ts +0 -6
- package/src/components/common/AppStatusBar.tsx +0 -57
- package/src/components/common/index.ts +0 -1
- package/src/components/index.ts +0 -30
- package/src/components/layout/SafeAreaWrapper.tsx +0 -50
- package/src/components/layout/index.ts +0 -6
- package/src/constants/dummySections.ts +0 -103
- package/src/hooks/Images/index.ts +0 -6
- package/src/hooks/Images/useImageLoader.ts +0 -209
- package/src/hooks/index.ts +0 -16
- package/src/hooks/useAdTracking.ts +0 -354
- package/src/hooks/useCards.ts +0 -247
- package/src/hooks/useDebounce.ts +0 -40
- package/src/hooks/useKeyboard.ts +0 -43
- package/src/hooks/useNavigationMode.ts +0 -48
- package/src/hooks/usePaginatedSection.ts +0 -108
- package/src/hooks/usePrevious.ts +0 -28
- package/src/hooks/useSafeCallback.ts +0 -29
- package/src/hooks/useSkeletonItems.ts +0 -30
- package/src/hooks/useSplashCache.ts +0 -245
- package/src/index.tsx +0 -9
- package/src/store/RecentSearchesStore.ts +0 -72
- package/src/store/splashStore.ts +0 -86
- package/src/store/storage.ts +0 -29
- package/src/theme/ThemeContext.ts +0 -19
- package/src/theme/ThemeProvider.tsx +0 -87
- package/src/theme/hooks/index.ts +0 -6
- package/src/theme/hooks/useTheme.ts +0 -118
- package/src/theme/index.ts +0 -8
- package/src/theme/store/theme.ts +0 -50
- package/src/theme/themes.ts +0 -262
- package/src/theme/utils/cleanColors.ts +0 -71
- package/src/theme/utils/toRgba.ts +0 -150
- package/src/types/content/content-view.types.ts +0 -209
- package/src/types/hook/index.ts +0 -6
- package/src/types/hook/usePaginatedSection.ts +0 -20
- package/src/types/index.ts +0 -10
- package/src/types/navigation.ts +0 -17
- package/src/types/sections/index.ts +0 -87
- package/src/types/user.ts +0 -18
- package/src/utils/Display.ts +0 -15
- package/src/utils/Formater.ts +0 -33
- package/src/utils/SizeMatters.ts +0 -8
- package/src/utils/Spacing.ts +0 -27
- package/src/utils/colorUtils.ts +0 -70
- package/src/utils/imageValidation.ts +0 -36
- package/src/utils/interaction.ts +0 -19
|
@@ -1,267 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Naresh Dhamu
|
|
3
|
-
* @LastModified Tue 14 Jul 2026 at 3:08 PM
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import React, { useMemo } from 'react';
|
|
7
|
-
import { View, StyleSheet } from 'react-native';
|
|
8
|
-
import LinearGradient from 'react-native-linear-gradient';
|
|
9
|
-
import { scale, verticalScale } from 'react-native-size-matters';
|
|
10
|
-
import FastImage, { type ImageStyle } from 'react-native-fast-image';
|
|
11
|
-
import tinycolor from 'tinycolor2';
|
|
12
|
-
|
|
13
|
-
import BackBtn from '../../../Button/BackBtn';
|
|
14
|
-
import type { HeroBannerProps } from '../../../../types/content/content-view.types';
|
|
15
|
-
import { RFValue } from 'react-native-responsive-fontsize';
|
|
16
|
-
import { useTheme } from '../../../../theme';
|
|
17
|
-
import { Text } from '../../../Text';
|
|
18
|
-
import { useImageLoader } from '../../../../hooks/Images';
|
|
19
|
-
import LiveBadge from '../../../Content/Card/components/LiveBadge';
|
|
20
|
-
|
|
21
|
-
const BANNER_HEIGHT = verticalScale(200);
|
|
22
|
-
|
|
23
|
-
export const HeroBanner = React.memo(
|
|
24
|
-
({
|
|
25
|
-
backgroundImage,
|
|
26
|
-
title,
|
|
27
|
-
titleImage,
|
|
28
|
-
theme: themeOverride,
|
|
29
|
-
isLoading = false,
|
|
30
|
-
onBackPress,
|
|
31
|
-
contentType,
|
|
32
|
-
}: HeroBannerProps) => {
|
|
33
|
-
const { theme } = useTheme(themeOverride);
|
|
34
|
-
const isLiveStream = contentType === 'live_stream';
|
|
35
|
-
|
|
36
|
-
const {
|
|
37
|
-
imageError,
|
|
38
|
-
showSkeleton: imageShowSkeleton,
|
|
39
|
-
imageSource,
|
|
40
|
-
handleLoad: handleImageLoad,
|
|
41
|
-
handleError: handleImageError,
|
|
42
|
-
} = useImageLoader({
|
|
43
|
-
imageUri: backgroundImage || '',
|
|
44
|
-
isLoading,
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
const showSkeleton = useMemo(
|
|
48
|
-
() => isLoading || (imageShowSkeleton && !!backgroundImage),
|
|
49
|
-
[isLoading, imageShowSkeleton, backgroundImage]
|
|
50
|
-
);
|
|
51
|
-
|
|
52
|
-
const shouldShowLiveBadge = !showSkeleton && !imageError && isLiveStream;
|
|
53
|
-
|
|
54
|
-
const gradientColors = useMemo(() => {
|
|
55
|
-
const bgColorBase = theme.colors.background;
|
|
56
|
-
return [
|
|
57
|
-
tinycolor(bgColorBase).toRgbString(),
|
|
58
|
-
tinycolor(bgColorBase).setAlpha(0.66).toRgbString(),
|
|
59
|
-
tinycolor(bgColorBase).setAlpha(0.2).toRgbString(),
|
|
60
|
-
tinycolor(bgColorBase).setAlpha(0.1).toRgbString(),
|
|
61
|
-
'rgba(0, 0, 0, 0)',
|
|
62
|
-
];
|
|
63
|
-
}, [theme.colors.background]);
|
|
64
|
-
|
|
65
|
-
const containerStyle = [
|
|
66
|
-
styles.container,
|
|
67
|
-
{ backgroundColor: theme.colors.backgroundDisabled },
|
|
68
|
-
];
|
|
69
|
-
|
|
70
|
-
const defaultBackBtnStyle = [
|
|
71
|
-
styles.defaultBackBtn,
|
|
72
|
-
{ backgroundColor: theme.colors.background },
|
|
73
|
-
];
|
|
74
|
-
|
|
75
|
-
const liveBadgeStyle = [
|
|
76
|
-
styles.liveBadgeInline,
|
|
77
|
-
{ marginLeft: onBackPress ? scale(12) : 0 },
|
|
78
|
-
];
|
|
79
|
-
|
|
80
|
-
const imageContainerStyle = [
|
|
81
|
-
styles.imageContainer,
|
|
82
|
-
{ backgroundColor: theme.colors.backgroundDisabled },
|
|
83
|
-
];
|
|
84
|
-
|
|
85
|
-
const titleTextStyle = [
|
|
86
|
-
styles.titleText,
|
|
87
|
-
{ color: theme.colors.textPrimary },
|
|
88
|
-
];
|
|
89
|
-
|
|
90
|
-
const errorContainerStyle = [
|
|
91
|
-
styles.errorContainer,
|
|
92
|
-
{ backgroundColor: theme.colors.backgroundDisabled },
|
|
93
|
-
];
|
|
94
|
-
|
|
95
|
-
const errorTextStyle = [
|
|
96
|
-
styles.errorText,
|
|
97
|
-
{ color: theme.colors.textSecondary },
|
|
98
|
-
];
|
|
99
|
-
|
|
100
|
-
return (
|
|
101
|
-
<View style={containerStyle} accessibilityLabel={title}>
|
|
102
|
-
{/* Header Row (Back Button & Live Badge) */}
|
|
103
|
-
{(onBackPress || shouldShowLiveBadge) && (
|
|
104
|
-
<View style={styles.headerContainer}>
|
|
105
|
-
{onBackPress && (
|
|
106
|
-
<BackBtn
|
|
107
|
-
theme={themeOverride}
|
|
108
|
-
onPress={onBackPress}
|
|
109
|
-
style={defaultBackBtnStyle}
|
|
110
|
-
size={scale(32)}
|
|
111
|
-
/>
|
|
112
|
-
)}
|
|
113
|
-
|
|
114
|
-
{shouldShowLiveBadge && (
|
|
115
|
-
<LiveBadge
|
|
116
|
-
position="topLeft"
|
|
117
|
-
theme={theme}
|
|
118
|
-
style={liveBadgeStyle}
|
|
119
|
-
size="large"
|
|
120
|
-
/>
|
|
121
|
-
)}
|
|
122
|
-
</View>
|
|
123
|
-
)}
|
|
124
|
-
|
|
125
|
-
{/* Gradient Overlay */}
|
|
126
|
-
{!showSkeleton && (
|
|
127
|
-
<LinearGradient
|
|
128
|
-
colors={gradientColors}
|
|
129
|
-
style={styles.absoluteFillZ1}
|
|
130
|
-
start={{ x: 0, y: 1 }}
|
|
131
|
-
end={{ x: 0, y: 0 }}
|
|
132
|
-
/>
|
|
133
|
-
)}
|
|
134
|
-
|
|
135
|
-
{/* Background Image */}
|
|
136
|
-
{!isLoading && (
|
|
137
|
-
<>
|
|
138
|
-
<View style={imageContainerStyle}>
|
|
139
|
-
<FastImage
|
|
140
|
-
source={imageSource}
|
|
141
|
-
style={styles.image as ImageStyle}
|
|
142
|
-
resizeMode={FastImage.resizeMode.contain}
|
|
143
|
-
onLoad={handleImageLoad}
|
|
144
|
-
onError={handleImageError}
|
|
145
|
-
accessibilityLabel={`Background image for ${title}`}
|
|
146
|
-
/>
|
|
147
|
-
</View>
|
|
148
|
-
|
|
149
|
-
{/* Title Image or Text – Bottom Left */}
|
|
150
|
-
{!showSkeleton && (
|
|
151
|
-
<View
|
|
152
|
-
style={
|
|
153
|
-
titleImage
|
|
154
|
-
? styles.titleImageWrapper
|
|
155
|
-
: styles.titleTextWrapper
|
|
156
|
-
}
|
|
157
|
-
>
|
|
158
|
-
{titleImage ? (
|
|
159
|
-
<FastImage
|
|
160
|
-
source={{ uri: titleImage }}
|
|
161
|
-
style={styles.titleImage as ImageStyle}
|
|
162
|
-
resizeMode={FastImage.resizeMode.contain}
|
|
163
|
-
accessibilityLabel={`Title image for ${title}`}
|
|
164
|
-
/>
|
|
165
|
-
) : (
|
|
166
|
-
<Text
|
|
167
|
-
style={titleTextStyle}
|
|
168
|
-
numberOfLines={1}
|
|
169
|
-
ellipsizeMode="tail"
|
|
170
|
-
>
|
|
171
|
-
{title}
|
|
172
|
-
</Text>
|
|
173
|
-
)}
|
|
174
|
-
</View>
|
|
175
|
-
)}
|
|
176
|
-
</>
|
|
177
|
-
)}
|
|
178
|
-
|
|
179
|
-
{/* Error UI */}
|
|
180
|
-
{imageError && !isLoading && (
|
|
181
|
-
<View style={errorContainerStyle}>
|
|
182
|
-
<Text style={errorTextStyle}>Failed to load image</Text>
|
|
183
|
-
</View>
|
|
184
|
-
)}
|
|
185
|
-
</View>
|
|
186
|
-
);
|
|
187
|
-
}
|
|
188
|
-
);
|
|
189
|
-
|
|
190
|
-
const styles = StyleSheet.create({
|
|
191
|
-
container: {
|
|
192
|
-
height: BANNER_HEIGHT,
|
|
193
|
-
width: '100%',
|
|
194
|
-
overflow: 'hidden',
|
|
195
|
-
position: 'relative',
|
|
196
|
-
},
|
|
197
|
-
errorContainer: {
|
|
198
|
-
...StyleSheet.absoluteFill,
|
|
199
|
-
justifyContent: 'center',
|
|
200
|
-
alignItems: 'center',
|
|
201
|
-
zIndex: 1,
|
|
202
|
-
},
|
|
203
|
-
errorText: {
|
|
204
|
-
fontSize: RFValue(15),
|
|
205
|
-
textAlign: 'center',
|
|
206
|
-
},
|
|
207
|
-
imageContainer: {
|
|
208
|
-
position: 'absolute',
|
|
209
|
-
top: 0,
|
|
210
|
-
left: 0,
|
|
211
|
-
right: 0,
|
|
212
|
-
alignItems: 'center',
|
|
213
|
-
},
|
|
214
|
-
image: {
|
|
215
|
-
width: '100%',
|
|
216
|
-
height: BANNER_HEIGHT,
|
|
217
|
-
aspectRatio: 16 / 9,
|
|
218
|
-
alignSelf: 'flex-start',
|
|
219
|
-
},
|
|
220
|
-
titleImageWrapper: {
|
|
221
|
-
position: 'absolute',
|
|
222
|
-
bottom: verticalScale(12),
|
|
223
|
-
left: scale(12),
|
|
224
|
-
zIndex: 3,
|
|
225
|
-
},
|
|
226
|
-
titleImage: {
|
|
227
|
-
width: scale(160),
|
|
228
|
-
height: verticalScale(55),
|
|
229
|
-
},
|
|
230
|
-
titleTextWrapper: {
|
|
231
|
-
position: 'absolute',
|
|
232
|
-
bottom: verticalScale(10),
|
|
233
|
-
left: scale(12),
|
|
234
|
-
right: scale(12),
|
|
235
|
-
zIndex: 3,
|
|
236
|
-
},
|
|
237
|
-
titleText: {
|
|
238
|
-
fontSize: RFValue(18),
|
|
239
|
-
fontWeight: 'bold',
|
|
240
|
-
textShadowColor: 'rgba(0, 0, 0, 0.6)',
|
|
241
|
-
textShadowOffset: { width: 0, height: 1 },
|
|
242
|
-
textShadowRadius: 3,
|
|
243
|
-
},
|
|
244
|
-
headerContainer: {
|
|
245
|
-
position: 'absolute',
|
|
246
|
-
top: scale(10),
|
|
247
|
-
left: 0,
|
|
248
|
-
gap: scale(7),
|
|
249
|
-
flexDirection: 'row',
|
|
250
|
-
alignItems: 'center',
|
|
251
|
-
zIndex: 15,
|
|
252
|
-
},
|
|
253
|
-
defaultBackBtn: {
|
|
254
|
-
position: 'relative',
|
|
255
|
-
top: 0,
|
|
256
|
-
},
|
|
257
|
-
absoluteFillZ1: {
|
|
258
|
-
...StyleSheet.absoluteFill,
|
|
259
|
-
zIndex: 1,
|
|
260
|
-
},
|
|
261
|
-
|
|
262
|
-
liveBadgeInline: {
|
|
263
|
-
position: 'relative',
|
|
264
|
-
top: 0,
|
|
265
|
-
left: 0,
|
|
266
|
-
},
|
|
267
|
-
});
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Naresh Dhamu
|
|
3
|
-
* @LastModified Mon 13 Jul 2026 at 10:13 AM
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import React, { useMemo } from 'react';
|
|
7
|
-
import {
|
|
8
|
-
View,
|
|
9
|
-
StyleSheet,
|
|
10
|
-
TouchableOpacity,
|
|
11
|
-
type StyleProp,
|
|
12
|
-
type ViewStyle,
|
|
13
|
-
} from 'react-native';
|
|
14
|
-
import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
15
|
-
import { scale } from 'react-native-size-matters';
|
|
16
|
-
import { RFValue } from 'react-native-responsive-fontsize';
|
|
17
|
-
import type { ITheme } from '../../../../theme/themes';
|
|
18
|
-
import type { IContentData } from '@zezosoft/zezo-ott-api-client';
|
|
19
|
-
import { Heart, Share2 } from 'lucide-react-native';
|
|
20
|
-
import type { LikeShareEventArgs } from '../../../../types';
|
|
21
|
-
|
|
22
|
-
type Props = {
|
|
23
|
-
theme: ITheme;
|
|
24
|
-
contentId: IContentData['_id'];
|
|
25
|
-
isLiked?: boolean;
|
|
26
|
-
isLoading?: boolean;
|
|
27
|
-
onPressLike?: (args: LikeShareEventArgs) => void;
|
|
28
|
-
onPressShare?: (args: LikeShareEventArgs) => void;
|
|
29
|
-
style?: {
|
|
30
|
-
container?: StyleProp<ViewStyle>;
|
|
31
|
-
likeButton?: StyleProp<ViewStyle>;
|
|
32
|
-
shareButton?: StyleProp<ViewStyle>;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
export const LikeShareActions = React.memo(
|
|
37
|
-
({
|
|
38
|
-
theme,
|
|
39
|
-
contentId,
|
|
40
|
-
isLiked = false,
|
|
41
|
-
isLoading = false,
|
|
42
|
-
onPressLike,
|
|
43
|
-
onPressShare,
|
|
44
|
-
style,
|
|
45
|
-
}: Props) => {
|
|
46
|
-
const styles = useMemo(() => createStyles(theme), [theme]);
|
|
47
|
-
|
|
48
|
-
if (isLoading) {
|
|
49
|
-
return (
|
|
50
|
-
<SkeletonPlaceholder
|
|
51
|
-
backgroundColor={theme.colors.skeletonBaseColor}
|
|
52
|
-
highlightColor={theme.colors.skeletonHighlightColor}
|
|
53
|
-
>
|
|
54
|
-
<View style={styles.skeletonRow}>
|
|
55
|
-
<SkeletonPlaceholder.Item
|
|
56
|
-
width={scale(22)}
|
|
57
|
-
height={scale(22)}
|
|
58
|
-
borderRadius={scale(11)}
|
|
59
|
-
/>
|
|
60
|
-
<SkeletonPlaceholder.Item
|
|
61
|
-
width={scale(22)}
|
|
62
|
-
height={scale(22)}
|
|
63
|
-
borderRadius={scale(11)}
|
|
64
|
-
marginLeft={scale(12)}
|
|
65
|
-
/>
|
|
66
|
-
</View>
|
|
67
|
-
</SkeletonPlaceholder>
|
|
68
|
-
);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
return (
|
|
72
|
-
<View style={[styles.container, style?.container]}>
|
|
73
|
-
<TouchableOpacity
|
|
74
|
-
activeOpacity={0.7}
|
|
75
|
-
style={[styles.iconWrapper, style?.likeButton]}
|
|
76
|
-
onPress={() =>
|
|
77
|
-
onPressLike?.({
|
|
78
|
-
id: contentId,
|
|
79
|
-
source: 'title',
|
|
80
|
-
})
|
|
81
|
-
}
|
|
82
|
-
>
|
|
83
|
-
<Heart
|
|
84
|
-
size={RFValue(18)}
|
|
85
|
-
color={
|
|
86
|
-
isLiked ? theme.colors.premiumIcon : theme.colors.textSecondary
|
|
87
|
-
}
|
|
88
|
-
fill={isLiked ? theme.colors.premiumIcon : theme.colors.white}
|
|
89
|
-
/>
|
|
90
|
-
</TouchableOpacity>
|
|
91
|
-
|
|
92
|
-
<TouchableOpacity
|
|
93
|
-
activeOpacity={0.7}
|
|
94
|
-
style={[styles.iconWrapper, style?.shareButton]}
|
|
95
|
-
onPress={() =>
|
|
96
|
-
onPressShare?.({
|
|
97
|
-
id: contentId,
|
|
98
|
-
source: 'title',
|
|
99
|
-
})
|
|
100
|
-
}
|
|
101
|
-
>
|
|
102
|
-
<Share2 size={RFValue(18)} color={theme.colors.textSecondary} />
|
|
103
|
-
</TouchableOpacity>
|
|
104
|
-
</View>
|
|
105
|
-
);
|
|
106
|
-
}
|
|
107
|
-
);
|
|
108
|
-
|
|
109
|
-
const createStyles = (theme: ITheme) =>
|
|
110
|
-
StyleSheet.create({
|
|
111
|
-
container: {
|
|
112
|
-
flexDirection: 'row',
|
|
113
|
-
alignItems: 'center',
|
|
114
|
-
},
|
|
115
|
-
iconWrapper: {
|
|
116
|
-
marginLeft: scale(12),
|
|
117
|
-
padding: scale(6),
|
|
118
|
-
borderRadius: scale(20),
|
|
119
|
-
backgroundColor: theme.colors.surfaceVariant,
|
|
120
|
-
},
|
|
121
|
-
skeletonRow: {
|
|
122
|
-
flexDirection: 'row',
|
|
123
|
-
alignItems: 'center',
|
|
124
|
-
},
|
|
125
|
-
});
|
|
@@ -1,308 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Naresh Dhamu
|
|
3
|
-
* @LastModified Mon 13 Jul 2026 at 10:13 AM
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import React, { useCallback, useRef, useMemo } from 'react';
|
|
7
|
-
import {
|
|
8
|
-
FlatList,
|
|
9
|
-
StyleSheet,
|
|
10
|
-
TouchableOpacity,
|
|
11
|
-
ActivityIndicator,
|
|
12
|
-
type FlatListProps,
|
|
13
|
-
} from 'react-native';
|
|
14
|
-
import { scale, verticalScale } from 'react-native-size-matters';
|
|
15
|
-
import { RFValue } from 'react-native-responsive-fontsize';
|
|
16
|
-
import Animated from 'react-native-reanimated';
|
|
17
|
-
import type { IContentData } from '@zezosoft/zezo-ott-api-client';
|
|
18
|
-
import { useSkeletonItems } from '../../../../hooks';
|
|
19
|
-
import Display from '../../../../utils/Display';
|
|
20
|
-
import { Text } from '../../../Text';
|
|
21
|
-
import View from '../../../View/View';
|
|
22
|
-
import CardPoster from '../../../Content/Card/components/CardPoster';
|
|
23
|
-
import type { ThemeOverride } from '../../../../theme';
|
|
24
|
-
import { useTheme } from '../../../../theme';
|
|
25
|
-
|
|
26
|
-
interface Props {
|
|
27
|
-
contentList: IContentData[];
|
|
28
|
-
onItemPress?: (item: IContentData) => void;
|
|
29
|
-
isLoading?: boolean;
|
|
30
|
-
error?: boolean | string | Error;
|
|
31
|
-
errorText?: string;
|
|
32
|
-
theme?: ThemeOverride;
|
|
33
|
-
moreDataIsLoading?: boolean;
|
|
34
|
-
onEndReached?: () => void;
|
|
35
|
-
skeletonCount?: number;
|
|
36
|
-
numColumns?: number;
|
|
37
|
-
footerComponent?: React.ReactNode;
|
|
38
|
-
refreshing?: boolean;
|
|
39
|
-
onRefresh?: () => void;
|
|
40
|
-
hasFetchedOnce?: boolean;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
const AnimatedFlatList = Animated.createAnimatedComponent(
|
|
44
|
-
FlatList as React.ComponentType<FlatListProps<IContentData>>
|
|
45
|
-
);
|
|
46
|
-
|
|
47
|
-
const MoreLikeThisContentList: React.FC<Props> = React.memo(
|
|
48
|
-
({
|
|
49
|
-
contentList = [],
|
|
50
|
-
onItemPress,
|
|
51
|
-
isLoading = false,
|
|
52
|
-
error = false,
|
|
53
|
-
errorText = 'Something went wrong!',
|
|
54
|
-
theme,
|
|
55
|
-
moreDataIsLoading = false,
|
|
56
|
-
onEndReached,
|
|
57
|
-
skeletonCount = 12,
|
|
58
|
-
numColumns = 3,
|
|
59
|
-
footerComponent,
|
|
60
|
-
refreshing = false,
|
|
61
|
-
onRefresh,
|
|
62
|
-
hasFetchedOnce = false,
|
|
63
|
-
}) => {
|
|
64
|
-
const { theme: appliedTheme } = useTheme(theme);
|
|
65
|
-
const onEndReachedCalledDuringMomentum = useRef(false);
|
|
66
|
-
|
|
67
|
-
// Memoize computed values
|
|
68
|
-
const isEmpty = useMemo(
|
|
69
|
-
() =>
|
|
70
|
-
hasFetchedOnce &&
|
|
71
|
-
!isLoading &&
|
|
72
|
-
Array.isArray(contentList) &&
|
|
73
|
-
contentList.length === 0,
|
|
74
|
-
[hasFetchedOnce, isLoading, contentList]
|
|
75
|
-
);
|
|
76
|
-
|
|
77
|
-
const errorMessage = useMemo(() => {
|
|
78
|
-
if (typeof error === 'string') return error;
|
|
79
|
-
if (error instanceof Error) return error.message;
|
|
80
|
-
return errorText;
|
|
81
|
-
}, [error, errorText]);
|
|
82
|
-
|
|
83
|
-
// Memoize skeleton items
|
|
84
|
-
const skeletonItems = useSkeletonItems(skeletonCount);
|
|
85
|
-
|
|
86
|
-
// Memoize skeleton data array
|
|
87
|
-
const skeletonData = useMemo(
|
|
88
|
-
() => skeletonItems.map((_, index) => ({ _id: `skeleton-${index}` })),
|
|
89
|
-
[skeletonItems]
|
|
90
|
-
);
|
|
91
|
-
|
|
92
|
-
const keyExtractor = useCallback((item: IContentData, index: number) => {
|
|
93
|
-
return item._id?.toString() || index.toString();
|
|
94
|
-
}, []);
|
|
95
|
-
|
|
96
|
-
const renderItem = useCallback(
|
|
97
|
-
({ item }: { item: IContentData }) => (
|
|
98
|
-
<View style={styles.cardWrapper}>
|
|
99
|
-
<TouchableOpacity
|
|
100
|
-
onPress={() => onItemPress?.(item)}
|
|
101
|
-
activeOpacity={0.7}
|
|
102
|
-
>
|
|
103
|
-
<CardPoster
|
|
104
|
-
content_offering_type={item.content_offering_type}
|
|
105
|
-
contentType={item.type}
|
|
106
|
-
posterUri={item.poster}
|
|
107
|
-
borderRadius={5}
|
|
108
|
-
isLoading={false}
|
|
109
|
-
theme={appliedTheme}
|
|
110
|
-
imageStyle={styles.itemContainer}
|
|
111
|
-
/>
|
|
112
|
-
</TouchableOpacity>
|
|
113
|
-
</View>
|
|
114
|
-
),
|
|
115
|
-
[onItemPress, appliedTheme]
|
|
116
|
-
);
|
|
117
|
-
|
|
118
|
-
const renderSkeletonItem = useCallback(
|
|
119
|
-
({ index }: { index: number }) => (
|
|
120
|
-
<View style={styles.cardWrapper} key={`skeleton-${index}`}>
|
|
121
|
-
<CardPoster
|
|
122
|
-
posterUri=""
|
|
123
|
-
borderRadius={5}
|
|
124
|
-
isLoading={true}
|
|
125
|
-
theme={appliedTheme}
|
|
126
|
-
imageStyle={styles.itemContainer}
|
|
127
|
-
/>
|
|
128
|
-
</View>
|
|
129
|
-
),
|
|
130
|
-
[appliedTheme]
|
|
131
|
-
);
|
|
132
|
-
|
|
133
|
-
// Memoize footer component
|
|
134
|
-
const footerComponentMemo = useMemo(() => {
|
|
135
|
-
if (footerComponent) return footerComponent;
|
|
136
|
-
if (moreDataIsLoading) {
|
|
137
|
-
return (
|
|
138
|
-
<View style={styles.footerLoading}>
|
|
139
|
-
<ActivityIndicator size="small" />
|
|
140
|
-
</View>
|
|
141
|
-
);
|
|
142
|
-
}
|
|
143
|
-
return null;
|
|
144
|
-
}, [footerComponent, moreDataIsLoading]);
|
|
145
|
-
|
|
146
|
-
// Memoize onEndReached handler
|
|
147
|
-
const handleEndReached = useCallback(() => {
|
|
148
|
-
if (
|
|
149
|
-
!onEndReachedCalledDuringMomentum.current &&
|
|
150
|
-
onEndReached &&
|
|
151
|
-
!moreDataIsLoading
|
|
152
|
-
) {
|
|
153
|
-
onEndReached();
|
|
154
|
-
onEndReachedCalledDuringMomentum.current = true;
|
|
155
|
-
}
|
|
156
|
-
}, [onEndReached, moreDataIsLoading]);
|
|
157
|
-
|
|
158
|
-
// Memoize onMomentumScrollBegin handler
|
|
159
|
-
const handleMomentumScrollBegin = useCallback(() => {
|
|
160
|
-
onEndReachedCalledDuringMomentum.current = false;
|
|
161
|
-
}, []);
|
|
162
|
-
|
|
163
|
-
// Memoize content container style
|
|
164
|
-
const contentContainerStyle = useMemo(
|
|
165
|
-
() => [
|
|
166
|
-
styles.listContent,
|
|
167
|
-
{
|
|
168
|
-
minHeight: Display.fullHeight - verticalScale(100),
|
|
169
|
-
},
|
|
170
|
-
],
|
|
171
|
-
[]
|
|
172
|
-
);
|
|
173
|
-
|
|
174
|
-
// Memoize skeleton key extractor
|
|
175
|
-
const skeletonKeyExtractor = useCallback(
|
|
176
|
-
(_: any, index: number) => `skeleton-${index}`,
|
|
177
|
-
[]
|
|
178
|
-
);
|
|
179
|
-
|
|
180
|
-
// Memoize render content
|
|
181
|
-
const renderContent = useMemo(() => {
|
|
182
|
-
if (isLoading) {
|
|
183
|
-
return (
|
|
184
|
-
<FlatList
|
|
185
|
-
data={skeletonData}
|
|
186
|
-
numColumns={numColumns}
|
|
187
|
-
scrollEnabled={false}
|
|
188
|
-
keyExtractor={skeletonKeyExtractor}
|
|
189
|
-
renderItem={renderSkeletonItem}
|
|
190
|
-
showsVerticalScrollIndicator={false}
|
|
191
|
-
contentContainerStyle={contentContainerStyle}
|
|
192
|
-
/>
|
|
193
|
-
);
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
if (error) {
|
|
197
|
-
return (
|
|
198
|
-
<View style={styles.centered}>
|
|
199
|
-
<Text style={styles.errorText}>{errorMessage}</Text>
|
|
200
|
-
</View>
|
|
201
|
-
);
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
if (isEmpty) {
|
|
205
|
-
return (
|
|
206
|
-
<View style={styles.centered}>
|
|
207
|
-
<Text style={styles.emptyText}>No content found</Text>
|
|
208
|
-
</View>
|
|
209
|
-
);
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
return (
|
|
213
|
-
<AnimatedFlatList
|
|
214
|
-
data={contentList}
|
|
215
|
-
numColumns={numColumns}
|
|
216
|
-
showsVerticalScrollIndicator={false}
|
|
217
|
-
scrollEnabled={false} // ✅ ADD
|
|
218
|
-
nestedScrollEnabled={false} // ✅ ADD
|
|
219
|
-
removeClippedSubviews={false} // ✅ ADD
|
|
220
|
-
// removeClippedSubviews
|
|
221
|
-
keyExtractor={keyExtractor}
|
|
222
|
-
renderItem={renderItem}
|
|
223
|
-
initialNumToRender={6}
|
|
224
|
-
bounces={false}
|
|
225
|
-
scrollEventThrottle={16}
|
|
226
|
-
contentContainerStyle={styles.listContent}
|
|
227
|
-
ListFooterComponent={footerComponentMemo as React.ReactElement}
|
|
228
|
-
onEndReachedThreshold={0.7}
|
|
229
|
-
onEndReached={handleEndReached}
|
|
230
|
-
onMomentumScrollBegin={handleMomentumScrollBegin}
|
|
231
|
-
refreshing={refreshing}
|
|
232
|
-
onRefresh={onRefresh}
|
|
233
|
-
windowSize={5}
|
|
234
|
-
maxToRenderPerBatch={5}
|
|
235
|
-
updateCellsBatchingPeriod={50}
|
|
236
|
-
/>
|
|
237
|
-
);
|
|
238
|
-
}, [
|
|
239
|
-
isLoading,
|
|
240
|
-
error,
|
|
241
|
-
isEmpty,
|
|
242
|
-
skeletonData,
|
|
243
|
-
skeletonKeyExtractor,
|
|
244
|
-
renderSkeletonItem,
|
|
245
|
-
contentContainerStyle,
|
|
246
|
-
errorMessage,
|
|
247
|
-
numColumns,
|
|
248
|
-
contentList,
|
|
249
|
-
keyExtractor,
|
|
250
|
-
renderItem,
|
|
251
|
-
footerComponentMemo,
|
|
252
|
-
handleEndReached,
|
|
253
|
-
handleMomentumScrollBegin,
|
|
254
|
-
refreshing,
|
|
255
|
-
onRefresh,
|
|
256
|
-
]);
|
|
257
|
-
|
|
258
|
-
return <View style={styles.container}>{renderContent}</View>;
|
|
259
|
-
}
|
|
260
|
-
);
|
|
261
|
-
|
|
262
|
-
export default MoreLikeThisContentList;
|
|
263
|
-
|
|
264
|
-
const styles = StyleSheet.create({
|
|
265
|
-
container: {
|
|
266
|
-
flex: 1,
|
|
267
|
-
},
|
|
268
|
-
listContent: {
|
|
269
|
-
paddingHorizontal: scale(6),
|
|
270
|
-
paddingBottom: scale(100),
|
|
271
|
-
},
|
|
272
|
-
cardWrapper: {
|
|
273
|
-
flexBasis: '33.33%',
|
|
274
|
-
maxWidth: '33.33%',
|
|
275
|
-
padding: scale(4),
|
|
276
|
-
alignItems: 'center',
|
|
277
|
-
justifyContent: 'center',
|
|
278
|
-
},
|
|
279
|
-
itemContainer: {
|
|
280
|
-
width: '100%',
|
|
281
|
-
aspectRatio: 2 / 3,
|
|
282
|
-
borderRadius: 5,
|
|
283
|
-
},
|
|
284
|
-
centered: {
|
|
285
|
-
flex: 1,
|
|
286
|
-
justifyContent: 'center',
|
|
287
|
-
alignItems: 'center',
|
|
288
|
-
paddingVertical: verticalScale(50),
|
|
289
|
-
},
|
|
290
|
-
errorText: {
|
|
291
|
-
fontSize: RFValue(14),
|
|
292
|
-
color: 'red',
|
|
293
|
-
fontWeight: '500',
|
|
294
|
-
},
|
|
295
|
-
emptyText: {
|
|
296
|
-
fontSize: RFValue(14),
|
|
297
|
-
fontWeight: '400',
|
|
298
|
-
},
|
|
299
|
-
headerTitle: {
|
|
300
|
-
fontSize: RFValue(15),
|
|
301
|
-
textTransform: 'capitalize',
|
|
302
|
-
},
|
|
303
|
-
footerLoading: {
|
|
304
|
-
marginTop: verticalScale(30),
|
|
305
|
-
paddingVertical: verticalScale(10),
|
|
306
|
-
alignItems: 'center',
|
|
307
|
-
},
|
|
308
|
-
});
|