@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,251 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Naresh Dhamu
|
|
3
|
-
* @LastModified Mon 13 Jul 2026 at 10:13 AM
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import React, { useMemo, useCallback } from 'react';
|
|
7
|
-
import { ScrollView, StyleSheet } from 'react-native';
|
|
8
|
-
import { HeroBanner } from './components/HeroBanner';
|
|
9
|
-
import { GenreTags } from '../shared/GenreTags';
|
|
10
|
-
import { AboutSection } from '../shared/AboutSection';
|
|
11
|
-
import { Title } from './components/Title';
|
|
12
|
-
import { useTheme } from '../../../theme';
|
|
13
|
-
import { CastCard } from './components/CastCard';
|
|
14
|
-
import Cards from '../../Content/Card';
|
|
15
|
-
import { scale } from 'react-native-size-matters';
|
|
16
|
-
import { EpisodeCard } from '../shared/EpisodeCard';
|
|
17
|
-
import type { ComponentProps } from '../../../types/content/content-view.types';
|
|
18
|
-
import { NotFoundFallback } from '../../Fallbacks';
|
|
19
|
-
import { MiniInfo } from './components/MiniInfo';
|
|
20
|
-
|
|
21
|
-
export const ContentViewOne = React.memo(
|
|
22
|
-
({
|
|
23
|
-
content,
|
|
24
|
-
seasons,
|
|
25
|
-
isLoading = false,
|
|
26
|
-
seasonsIsLoading = false,
|
|
27
|
-
theme,
|
|
28
|
-
text,
|
|
29
|
-
recommendedContent,
|
|
30
|
-
events,
|
|
31
|
-
heroBannerProps,
|
|
32
|
-
titleStyles,
|
|
33
|
-
genreTagsStyles,
|
|
34
|
-
aboutSectionStyles,
|
|
35
|
-
castStyles,
|
|
36
|
-
recommendedContentCardStyles,
|
|
37
|
-
history,
|
|
38
|
-
episodeCardMode,
|
|
39
|
-
pricingAndExpiryInfo,
|
|
40
|
-
}: Omit<ComponentProps, 'isLiked'>) => {
|
|
41
|
-
const { theme: appliedTheme } = useTheme(theme);
|
|
42
|
-
|
|
43
|
-
// Memoize computed values
|
|
44
|
-
const seekTime = useMemo(
|
|
45
|
-
() => history?.currentTime || 0,
|
|
46
|
-
[history?.currentTime]
|
|
47
|
-
);
|
|
48
|
-
const isComplete = useMemo(
|
|
49
|
-
() => history?.completed || false,
|
|
50
|
-
[history?.completed]
|
|
51
|
-
);
|
|
52
|
-
const currentEpisode = useMemo(
|
|
53
|
-
() => history?.current_episode,
|
|
54
|
-
[history?.current_episode]
|
|
55
|
-
);
|
|
56
|
-
const isNotFound = useMemo(
|
|
57
|
-
() => !isLoading && !content,
|
|
58
|
-
[isLoading, content]
|
|
59
|
-
);
|
|
60
|
-
|
|
61
|
-
// Memoize play handler
|
|
62
|
-
const handlePlayPress = useCallback(
|
|
63
|
-
({ is_trailer }: { is_trailer?: boolean }) => {
|
|
64
|
-
if (!content) return;
|
|
65
|
-
events?.onPlay?.({
|
|
66
|
-
id: content._id,
|
|
67
|
-
title: content.name,
|
|
68
|
-
slug: content.slug,
|
|
69
|
-
type: content.type,
|
|
70
|
-
current_episode: currentEpisode,
|
|
71
|
-
mode: 'fullscreen',
|
|
72
|
-
is_trailer,
|
|
73
|
-
seekTime: isComplete ? 0 : seekTime,
|
|
74
|
-
});
|
|
75
|
-
},
|
|
76
|
-
[content, currentEpisode, isComplete, seekTime, events]
|
|
77
|
-
);
|
|
78
|
-
|
|
79
|
-
// Memoize episode press handler
|
|
80
|
-
const handleEpisodePress = useCallback(
|
|
81
|
-
({
|
|
82
|
-
season_id,
|
|
83
|
-
episode_id,
|
|
84
|
-
episode_title,
|
|
85
|
-
episode_number,
|
|
86
|
-
}: {
|
|
87
|
-
season_id: string;
|
|
88
|
-
episode_id: string;
|
|
89
|
-
episode_title: string;
|
|
90
|
-
episode_number: number;
|
|
91
|
-
}) => {
|
|
92
|
-
if (!content || seasonsIsLoading) return;
|
|
93
|
-
events?.onPlay?.({
|
|
94
|
-
id: content._id,
|
|
95
|
-
title: content.name,
|
|
96
|
-
slug: content.slug,
|
|
97
|
-
type: content.type,
|
|
98
|
-
episode_title,
|
|
99
|
-
current_episode: episode_id,
|
|
100
|
-
current_season: season_id,
|
|
101
|
-
episode_number,
|
|
102
|
-
});
|
|
103
|
-
},
|
|
104
|
-
[content, seasonsIsLoading, events]
|
|
105
|
-
);
|
|
106
|
-
|
|
107
|
-
// Memoize recommended item press handler
|
|
108
|
-
const handleRecommendedItemPress = useCallback(
|
|
109
|
-
(item: any) => {
|
|
110
|
-
events?.onPressRecommendedItem?.({ item });
|
|
111
|
-
},
|
|
112
|
-
[events]
|
|
113
|
-
);
|
|
114
|
-
|
|
115
|
-
// Memoize not found text
|
|
116
|
-
const notFoundText = useMemo(
|
|
117
|
-
() => ({
|
|
118
|
-
title: text?.notFound?.title || 'Oops! Content Not Found',
|
|
119
|
-
subtitle:
|
|
120
|
-
text?.notFound?.subtitle ||
|
|
121
|
-
"We couldn't find anything to show here. Please check back later.",
|
|
122
|
-
buttonText: text?.notFound?.buttonText || 'Go Back',
|
|
123
|
-
}),
|
|
124
|
-
[text?.notFound]
|
|
125
|
-
);
|
|
126
|
-
|
|
127
|
-
// Memoize show episodes condition
|
|
128
|
-
const showEpisodes = useMemo(
|
|
129
|
-
() =>
|
|
130
|
-
content?.type === 'series' &&
|
|
131
|
-
(seasonsIsLoading || (seasons && seasons.length > 0)),
|
|
132
|
-
[content?.type, seasonsIsLoading, seasons]
|
|
133
|
-
);
|
|
134
|
-
|
|
135
|
-
// Memoize show recommended condition
|
|
136
|
-
const showRecommended = useMemo(
|
|
137
|
-
() => recommendedContent && recommendedContent?.content,
|
|
138
|
-
[recommendedContent]
|
|
139
|
-
);
|
|
140
|
-
|
|
141
|
-
return (
|
|
142
|
-
<>
|
|
143
|
-
{isNotFound ? (
|
|
144
|
-
<NotFoundFallback
|
|
145
|
-
title={notFoundText.title}
|
|
146
|
-
subtitle={notFoundText.subtitle}
|
|
147
|
-
backButtonText={notFoundText.buttonText}
|
|
148
|
-
onPressBack={events?.onBackPress}
|
|
149
|
-
theme={theme}
|
|
150
|
-
/>
|
|
151
|
-
) : (
|
|
152
|
-
<ScrollView
|
|
153
|
-
showsVerticalScrollIndicator={false}
|
|
154
|
-
keyboardShouldPersistTaps="handled"
|
|
155
|
-
contentContainerStyle={styles.scrollContent}
|
|
156
|
-
bounces={false}
|
|
157
|
-
>
|
|
158
|
-
<HeroBanner
|
|
159
|
-
backgroundImage={content?.thumbnail}
|
|
160
|
-
title={content?.name}
|
|
161
|
-
theme={theme}
|
|
162
|
-
isLoading={isLoading}
|
|
163
|
-
content_offering_type={content?.content_offering_type}
|
|
164
|
-
contentType={content?.type}
|
|
165
|
-
onPressPlay={handlePlayPress}
|
|
166
|
-
onBackPress={events?.onBackPress}
|
|
167
|
-
{...heroBannerProps}
|
|
168
|
-
/>
|
|
169
|
-
<Title
|
|
170
|
-
title={content?.name}
|
|
171
|
-
subtitle={content?.u_age}
|
|
172
|
-
rating={content?.rating}
|
|
173
|
-
theme={appliedTheme}
|
|
174
|
-
isLoading={isLoading}
|
|
175
|
-
style={titleStyles}
|
|
176
|
-
/>
|
|
177
|
-
|
|
178
|
-
<GenreTags
|
|
179
|
-
genres={content?.genres}
|
|
180
|
-
theme={appliedTheme}
|
|
181
|
-
isLoading={isLoading}
|
|
182
|
-
style={genreTagsStyles}
|
|
183
|
-
layoutMode="badge"
|
|
184
|
-
/>
|
|
185
|
-
<MiniInfo
|
|
186
|
-
content={content}
|
|
187
|
-
theme={theme}
|
|
188
|
-
isLoading={isLoading}
|
|
189
|
-
{...pricingAndExpiryInfo}
|
|
190
|
-
/>
|
|
191
|
-
|
|
192
|
-
<AboutSection
|
|
193
|
-
theme={appliedTheme}
|
|
194
|
-
description={content?.description}
|
|
195
|
-
release_year={content?.release_year}
|
|
196
|
-
isLoading={isLoading}
|
|
197
|
-
style={aboutSectionStyles}
|
|
198
|
-
/>
|
|
199
|
-
<CastCard
|
|
200
|
-
theme={appliedTheme}
|
|
201
|
-
data={content?.cast || null}
|
|
202
|
-
isLoading={isLoading}
|
|
203
|
-
onItemPress={() => {}}
|
|
204
|
-
style={castStyles}
|
|
205
|
-
/>
|
|
206
|
-
{showEpisodes && (
|
|
207
|
-
<EpisodeCard
|
|
208
|
-
isLoading={seasonsIsLoading}
|
|
209
|
-
seasons={seasonsIsLoading ? [] : (seasons ?? [])}
|
|
210
|
-
onPress={handleEpisodePress}
|
|
211
|
-
theme={theme}
|
|
212
|
-
mode={episodeCardMode ?? 'horizontal'}
|
|
213
|
-
/>
|
|
214
|
-
)}
|
|
215
|
-
|
|
216
|
-
{showRecommended && recommendedContent && (
|
|
217
|
-
<Cards.Styles.Four
|
|
218
|
-
section_id={recommendedContent._id}
|
|
219
|
-
title={recommendedContent.name}
|
|
220
|
-
type={recommendedContent.type}
|
|
221
|
-
data={recommendedContent.content}
|
|
222
|
-
isLoading={isLoading}
|
|
223
|
-
theme={theme}
|
|
224
|
-
onPressItem={handleRecommendedItemPress}
|
|
225
|
-
onPressMore={events?.onPressRecommendedMore}
|
|
226
|
-
moreFetchData={events?.moreFetchDataRecommended}
|
|
227
|
-
{...recommendedContentCardStyles}
|
|
228
|
-
/>
|
|
229
|
-
)}
|
|
230
|
-
</ScrollView>
|
|
231
|
-
)}
|
|
232
|
-
</>
|
|
233
|
-
);
|
|
234
|
-
}
|
|
235
|
-
);
|
|
236
|
-
|
|
237
|
-
const styles = StyleSheet.create({
|
|
238
|
-
scrollContent: {
|
|
239
|
-
paddingBottom: scale(80),
|
|
240
|
-
},
|
|
241
|
-
});
|
|
242
|
-
|
|
243
|
-
export namespace ContentViewOne {
|
|
244
|
-
export type Props = ComponentProps;
|
|
245
|
-
export type RecommendedContent = Props['recommendedContent'];
|
|
246
|
-
export type HeroBannerProps = Props['heroBannerProps'];
|
|
247
|
-
export type MenuAction = NonNullable<
|
|
248
|
-
NonNullable<ComponentProps['heroBannerProps']>['menuActions']
|
|
249
|
-
>[number];
|
|
250
|
-
export type History = NonNullable<ComponentProps['history']>;
|
|
251
|
-
}
|
|
@@ -1,266 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Naresh Dhamu
|
|
3
|
-
* @LastModified Mon 13 Jul 2026 at 10:13 AM
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import React, { useCallback, useMemo } from 'react';
|
|
7
|
-
import { useSkeletonItems } from '../../../../hooks/useSkeletonItems';
|
|
8
|
-
import {
|
|
9
|
-
View,
|
|
10
|
-
StyleSheet,
|
|
11
|
-
FlatList,
|
|
12
|
-
TouchableOpacity,
|
|
13
|
-
type StyleProp,
|
|
14
|
-
type ViewStyle,
|
|
15
|
-
type TextStyle,
|
|
16
|
-
type ListRenderItem,
|
|
17
|
-
} from 'react-native';
|
|
18
|
-
import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
19
|
-
import FastImage, { type ImageStyle } from 'react-native-fast-image';
|
|
20
|
-
import { scale } from 'react-native-size-matters';
|
|
21
|
-
import { Text } from '../../../Text';
|
|
22
|
-
import type { ITheme } from '../../../../theme/themes';
|
|
23
|
-
import { RFValue } from 'react-native-responsive-fontsize';
|
|
24
|
-
import type { IContentCast } from '@zezosoft/zezo-ott-api-client';
|
|
25
|
-
|
|
26
|
-
type StyleProps = {
|
|
27
|
-
container?: StyleProp<ViewStyle>;
|
|
28
|
-
heading?: StyleProp<TextStyle>;
|
|
29
|
-
listContent?: StyleProp<ViewStyle>;
|
|
30
|
-
card?: StyleProp<ViewStyle>;
|
|
31
|
-
image?: StyleProp<ImageStyle>;
|
|
32
|
-
name?: StyleProp<TextStyle>;
|
|
33
|
-
role?: StyleProp<TextStyle>;
|
|
34
|
-
imageSkeleton?: StyleProp<ViewStyle>;
|
|
35
|
-
nameSkeleton?: StyleProp<ViewStyle>;
|
|
36
|
-
roleSkeleton?: StyleProp<ViewStyle>;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
type Props = {
|
|
40
|
-
theme: ITheme;
|
|
41
|
-
data: IContentCast[] | null;
|
|
42
|
-
isLoading?: boolean;
|
|
43
|
-
heading?: string;
|
|
44
|
-
onItemPress?: (cast: IContentCast) => void;
|
|
45
|
-
style?: StyleProps;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
const IMAGE_SIZE = scale(70);
|
|
49
|
-
const PLACEHOLDER_COUNT = 6;
|
|
50
|
-
|
|
51
|
-
export const CastCard = React.memo(
|
|
52
|
-
({
|
|
53
|
-
theme,
|
|
54
|
-
data,
|
|
55
|
-
isLoading = false,
|
|
56
|
-
heading = 'Cast',
|
|
57
|
-
onItemPress,
|
|
58
|
-
style = {},
|
|
59
|
-
}: Props) => {
|
|
60
|
-
const placeholderData = useSkeletonItems<IContentCast>(
|
|
61
|
-
PLACEHOLDER_COUNT,
|
|
62
|
-
(idx) => ({
|
|
63
|
-
_id: `skeleton-${idx}`,
|
|
64
|
-
name: '',
|
|
65
|
-
avatar: '',
|
|
66
|
-
castType: '',
|
|
67
|
-
type: 'actor',
|
|
68
|
-
})
|
|
69
|
-
);
|
|
70
|
-
|
|
71
|
-
const listData = useMemo(
|
|
72
|
-
() => (isLoading ? placeholderData : (data ?? [])),
|
|
73
|
-
[isLoading, placeholderData, data]
|
|
74
|
-
);
|
|
75
|
-
|
|
76
|
-
const renderItem: ListRenderItem<IContentCast> = useCallback(
|
|
77
|
-
({ item }) => {
|
|
78
|
-
if (isLoading) {
|
|
79
|
-
return (
|
|
80
|
-
<View style={[styles.card, style.card]}>
|
|
81
|
-
<View style={[styles.imageSkeleton, style.imageSkeleton]} />
|
|
82
|
-
<View style={[styles.nameSkeleton, style.nameSkeleton]} />
|
|
83
|
-
<View style={[styles.roleSkeleton, style.roleSkeleton]} />
|
|
84
|
-
</View>
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
return (
|
|
89
|
-
<TouchableOpacity
|
|
90
|
-
style={[styles.card, style.card]}
|
|
91
|
-
activeOpacity={0.9}
|
|
92
|
-
onPress={() => onItemPress?.(item)}
|
|
93
|
-
>
|
|
94
|
-
<FastImage
|
|
95
|
-
source={{ uri: String(item.avatar) }}
|
|
96
|
-
style={[
|
|
97
|
-
styles.image,
|
|
98
|
-
{ backgroundColor: theme.colors.skeletonBaseColor },
|
|
99
|
-
style.image,
|
|
100
|
-
]}
|
|
101
|
-
resizeMode={FastImage.resizeMode.cover}
|
|
102
|
-
/>
|
|
103
|
-
<Text
|
|
104
|
-
numberOfLines={1}
|
|
105
|
-
ellipsizeMode="tail"
|
|
106
|
-
style={[
|
|
107
|
-
styles.name,
|
|
108
|
-
{ color: theme.colors.textPrimary },
|
|
109
|
-
style.name,
|
|
110
|
-
]}
|
|
111
|
-
>
|
|
112
|
-
{item.name}
|
|
113
|
-
</Text>
|
|
114
|
-
{!!item.castType && (
|
|
115
|
-
<Text
|
|
116
|
-
numberOfLines={1}
|
|
117
|
-
ellipsizeMode="tail"
|
|
118
|
-
style={[
|
|
119
|
-
styles.role,
|
|
120
|
-
{ color: theme.colors.textSecondary },
|
|
121
|
-
style.role,
|
|
122
|
-
]}
|
|
123
|
-
>
|
|
124
|
-
as {item.castType}
|
|
125
|
-
</Text>
|
|
126
|
-
)}
|
|
127
|
-
</TouchableOpacity>
|
|
128
|
-
);
|
|
129
|
-
},
|
|
130
|
-
[isLoading, onItemPress, style, theme.colors]
|
|
131
|
-
);
|
|
132
|
-
|
|
133
|
-
if (!listData.length) return null;
|
|
134
|
-
|
|
135
|
-
return (
|
|
136
|
-
<View style={[styles.container, style.container]}>
|
|
137
|
-
{isLoading ? (
|
|
138
|
-
<SkeletonPlaceholder
|
|
139
|
-
backgroundColor={theme.colors.skeletonBaseColor}
|
|
140
|
-
highlightColor={theme.colors.skeletonHighlightColor}
|
|
141
|
-
>
|
|
142
|
-
<SkeletonPlaceholder.Item
|
|
143
|
-
width={scale(70)}
|
|
144
|
-
height={scale(16)}
|
|
145
|
-
borderRadius={scale(4)}
|
|
146
|
-
marginBottom={scale(8)}
|
|
147
|
-
marginLeft={scale(12)}
|
|
148
|
-
/>
|
|
149
|
-
<SkeletonPlaceholder.Item
|
|
150
|
-
flexDirection="row"
|
|
151
|
-
paddingLeft={scale(12)}
|
|
152
|
-
>
|
|
153
|
-
{placeholderData.map((_, idx) => (
|
|
154
|
-
<SkeletonPlaceholder.Item
|
|
155
|
-
key={idx}
|
|
156
|
-
alignItems="center"
|
|
157
|
-
marginRight={scale(10)}
|
|
158
|
-
>
|
|
159
|
-
<SkeletonPlaceholder.Item
|
|
160
|
-
width={IMAGE_SIZE}
|
|
161
|
-
height={IMAGE_SIZE}
|
|
162
|
-
borderRadius={IMAGE_SIZE / 2}
|
|
163
|
-
marginBottom={scale(6)}
|
|
164
|
-
/>
|
|
165
|
-
<SkeletonPlaceholder.Item
|
|
166
|
-
width={scale(60)}
|
|
167
|
-
height={scale(12)}
|
|
168
|
-
borderRadius={scale(4)}
|
|
169
|
-
marginBottom={scale(4)}
|
|
170
|
-
/>
|
|
171
|
-
<SkeletonPlaceholder.Item
|
|
172
|
-
width={scale(50)}
|
|
173
|
-
height={scale(10)}
|
|
174
|
-
borderRadius={scale(4)}
|
|
175
|
-
/>
|
|
176
|
-
</SkeletonPlaceholder.Item>
|
|
177
|
-
))}
|
|
178
|
-
</SkeletonPlaceholder.Item>
|
|
179
|
-
</SkeletonPlaceholder>
|
|
180
|
-
) : (
|
|
181
|
-
<>
|
|
182
|
-
<Text
|
|
183
|
-
style={[
|
|
184
|
-
styles.heading,
|
|
185
|
-
{ color: theme.colors.primary },
|
|
186
|
-
style.heading,
|
|
187
|
-
]}
|
|
188
|
-
>
|
|
189
|
-
{heading}
|
|
190
|
-
</Text>
|
|
191
|
-
<FlatList
|
|
192
|
-
horizontal
|
|
193
|
-
data={listData}
|
|
194
|
-
keyExtractor={(item) => item._id.toString()}
|
|
195
|
-
renderItem={renderItem}
|
|
196
|
-
showsHorizontalScrollIndicator={false}
|
|
197
|
-
contentContainerStyle={[styles.listContent, style.listContent]}
|
|
198
|
-
initialNumToRender={6}
|
|
199
|
-
getItemLayout={(_, index) => ({
|
|
200
|
-
length: IMAGE_SIZE + scale(10),
|
|
201
|
-
offset: (IMAGE_SIZE + scale(10)) * index,
|
|
202
|
-
index,
|
|
203
|
-
})}
|
|
204
|
-
/>
|
|
205
|
-
</>
|
|
206
|
-
)}
|
|
207
|
-
</View>
|
|
208
|
-
);
|
|
209
|
-
}
|
|
210
|
-
);
|
|
211
|
-
|
|
212
|
-
const styles = StyleSheet.create({
|
|
213
|
-
container: {
|
|
214
|
-
marginVertical: scale(10),
|
|
215
|
-
},
|
|
216
|
-
heading: {
|
|
217
|
-
fontSize: RFValue(13),
|
|
218
|
-
fontWeight: 'bold',
|
|
219
|
-
marginBottom: scale(8),
|
|
220
|
-
paddingHorizontal: scale(12),
|
|
221
|
-
},
|
|
222
|
-
listContent: {
|
|
223
|
-
paddingHorizontal: scale(12),
|
|
224
|
-
},
|
|
225
|
-
card: {
|
|
226
|
-
width: IMAGE_SIZE,
|
|
227
|
-
marginRight: scale(10),
|
|
228
|
-
alignItems: 'center',
|
|
229
|
-
},
|
|
230
|
-
image: {
|
|
231
|
-
width: IMAGE_SIZE,
|
|
232
|
-
height: IMAGE_SIZE,
|
|
233
|
-
borderRadius: IMAGE_SIZE / 2,
|
|
234
|
-
marginBottom: scale(6),
|
|
235
|
-
},
|
|
236
|
-
name: {
|
|
237
|
-
fontSize: RFValue(9),
|
|
238
|
-
fontWeight: '500',
|
|
239
|
-
textAlign: 'center',
|
|
240
|
-
},
|
|
241
|
-
role: {
|
|
242
|
-
fontSize: RFValue(9),
|
|
243
|
-
textAlign: 'center',
|
|
244
|
-
marginTop: scale(2),
|
|
245
|
-
},
|
|
246
|
-
imageSkeleton: {
|
|
247
|
-
width: IMAGE_SIZE,
|
|
248
|
-
height: IMAGE_SIZE,
|
|
249
|
-
borderRadius: IMAGE_SIZE / 2,
|
|
250
|
-
backgroundColor: '#ddd',
|
|
251
|
-
marginBottom: scale(6),
|
|
252
|
-
},
|
|
253
|
-
nameSkeleton: {
|
|
254
|
-
width: scale(60),
|
|
255
|
-
height: scale(12),
|
|
256
|
-
borderRadius: scale(4),
|
|
257
|
-
backgroundColor: '#ddd',
|
|
258
|
-
marginBottom: scale(4),
|
|
259
|
-
},
|
|
260
|
-
roleSkeleton: {
|
|
261
|
-
width: scale(50),
|
|
262
|
-
height: scale(10),
|
|
263
|
-
borderRadius: scale(4),
|
|
264
|
-
backgroundColor: '#ddd',
|
|
265
|
-
},
|
|
266
|
-
});
|