@zezosoft/zezo-ott-react-native-ui-kit 1.1.5 → 1.1.6

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.
Files changed (252) hide show
  1. package/package.json +1 -14
  2. package/src/Styles/globalStyles.ts +0 -70
  3. package/src/assets/animations/135037-payment-processing-error.json +0 -1347
  4. package/src/assets/animations/7227-vui-animation.json +0 -3377
  5. package/src/assets/animations/Failed.json +0 -2103
  6. package/src/assets/animations/Pending.json +0 -522
  7. package/src/assets/animations/Successful.json +0 -2289
  8. package/src/assets/animations/heart.json +0 -788
  9. package/src/assets/animations/succesfull-payment.json +0 -2379
  10. package/src/assets/animations/voice-icon.json +0 -542
  11. package/src/assets/img/back.png +0 -0
  12. package/src/assets/img/bottom-panel.png +0 -0
  13. package/src/assets/img/camera.png +0 -0
  14. package/src/assets/img/camera2.png +0 -0
  15. package/src/assets/img/home.png +0 -0
  16. package/src/assets/img/lock.png +0 -0
  17. package/src/assets/img/play.png +0 -0
  18. package/src/assets/img/profile.jpg +0 -0
  19. package/src/assets/img/qr-code.png +0 -0
  20. package/src/assets/img/shadow.png +0 -0
  21. package/src/assets/img/shadow2.png +0 -0
  22. package/src/assets/img/user.png +0 -0
  23. package/src/assets/svg/Account.svg +0 -4
  24. package/src/assets/svg/Favourite.svg +0 -14
  25. package/src/assets/svg/Upcoming.svg +0 -4
  26. package/src/assets/svg/content-error.svg +0 -28
  27. package/src/assets/svg/download.svg +0 -3
  28. package/src/assets/svg/eye-off.svg +0 -10
  29. package/src/assets/svg/favorites.svg +0 -3
  30. package/src/assets/svg/h.svg +0 -4
  31. package/src/assets/svg/home.svg +0 -5
  32. package/src/assets/svg/home1.svg +0 -3
  33. package/src/assets/svg/menu-bar.svg +0 -4
  34. package/src/assets/svg/my-space.svg +0 -14
  35. package/src/assets/svg/play-icon-with-bg.svg +0 -5
  36. package/src/assets/svg/profile.svg +0 -4
  37. package/src/assets/svg/search.svg +0 -5
  38. package/src/assets/svg/search1.svg +0 -4
  39. package/src/assets/svg/server-error.svg +0 -139
  40. package/src/components/Account/Account.tsx +0 -367
  41. package/src/components/Account/index.ts +0 -1
  42. package/src/components/Alert/AlertDialog.tsx +0 -247
  43. package/src/components/Alert/UAAlert.tsx +0 -170
  44. package/src/components/Alert/index.ts +0 -2
  45. package/src/components/Auth/AuthProvider/AuthProvider.tsx +0 -419
  46. package/src/components/Auth/One/ForgotPassword/ForgotPassword.tsx +0 -324
  47. package/src/components/Auth/One/Login/LoginWithEmail.tsx +0 -455
  48. package/src/components/Auth/One/Login/LoginWithPhone.tsx +0 -306
  49. package/src/components/Auth/One/OTP/OTP.tsx +0 -465
  50. package/src/components/Auth/One/QrLogin/QrLogin.tsx +0 -602
  51. package/src/components/Auth/One/QrLogin/components/QrViewArea.tsx +0 -423
  52. package/src/components/Auth/One/SignUp/SignUp.tsx +0 -479
  53. package/src/components/Auth/One/SplashScreen/SplashScreen.tsx +0 -249
  54. package/src/components/Auth/One/SplashScreen/components/SplashImage/SplashImage.tsx +0 -103
  55. package/src/components/Auth/One/SplashScreen/components/SplashLottie/SplashLottie.tsx +0 -77
  56. package/src/components/Auth/One/SplashScreen/components/SplashVideo/SplashVideo.tsx +0 -174
  57. package/src/components/Auth/One/index.ts +0 -24
  58. package/src/components/Auth/Two/AuthHeader/AuthHeader.tsx +0 -108
  59. package/src/components/Auth/Two/ForgotPassword/ForgotPassword.tsx +0 -335
  60. package/src/components/Auth/Two/Login/AuthLoginShell.tsx +0 -173
  61. package/src/components/Auth/Two/Login/LoginWithEmail.tsx +0 -279
  62. package/src/components/Auth/Two/Login/LoginWithPhone.tsx +0 -188
  63. package/src/components/Auth/Two/OTP/OTP.tsx +0 -465
  64. package/src/components/Auth/Two/QrLogin/QrLogin.tsx +0 -602
  65. package/src/components/Auth/Two/QrLogin/components/QrViewArea.tsx +0 -423
  66. package/src/components/Auth/Two/SignUp/SignUp.tsx +0 -472
  67. package/src/components/Auth/Two/SplashScreen/SplashScreen.tsx +0 -248
  68. package/src/components/Auth/Two/SplashScreen/components/SplashImage/SplashImage.tsx +0 -92
  69. package/src/components/Auth/Two/SplashScreen/components/SplashLottie/SplashLottie.tsx +0 -77
  70. package/src/components/Auth/Two/SplashScreen/components/SplashVideo/SplashVideo.tsx +0 -178
  71. package/src/components/Auth/Two/index.ts +0 -28
  72. package/src/components/Auth/index.ts +0 -11
  73. package/src/components/BackgroundLayout/BackgroundLayout.tsx +0 -174
  74. package/src/components/BackgroundLayout/BackgroundLayoutOne.tsx +0 -56
  75. package/src/components/BlogView/BlogView.tsx +0 -276
  76. package/src/components/BlogView/index.ts +0 -8
  77. package/src/components/BlurView/BlurView.tsx +0 -199
  78. package/src/components/BlurView/index.ts +0 -7
  79. package/src/components/BottomSheet/BottomSheet.tsx +0 -200
  80. package/src/components/BottomSheet/BottomSheetOne.tsx +0 -220
  81. package/src/components/BottomSheet/index.ts +0 -4
  82. package/src/components/Button/BackBtn.tsx +0 -168
  83. package/src/components/Button/MenuBtn.tsx +0 -229
  84. package/src/components/Button/PrimaryBtn.tsx +0 -134
  85. package/src/components/Button/SecondaryBtn.tsx +0 -132
  86. package/src/components/Button/TextButton.tsx +0 -145
  87. package/src/components/Button/index.ts +0 -18
  88. package/src/components/Content/Card/Category/Category.tsx +0 -436
  89. package/src/components/Content/Card/Category/CategroyTwo.tsx +0 -429
  90. package/src/components/Content/Card/NowWatching/NowWatching.tsx +0 -624
  91. package/src/components/Content/Card/Sliders/Styles/One.tsx +0 -490
  92. package/src/components/Content/Card/Sliders/Styles/Three.tsx +0 -935
  93. package/src/components/Content/Card/Sliders/Styles/Two.tsx +0 -391
  94. package/src/components/Content/Card/Sliders/index.ts +0 -17
  95. package/src/components/Content/Card/Styles/Five.tsx +0 -385
  96. package/src/components/Content/Card/Styles/Four.tsx +0 -379
  97. package/src/components/Content/Card/Styles/One.tsx +0 -386
  98. package/src/components/Content/Card/Styles/RotateInOut.tsx +0 -413
  99. package/src/components/Content/Card/Styles/Six.tsx +0 -392
  100. package/src/components/Content/Card/Styles/Three.tsx +0 -314
  101. package/src/components/Content/Card/Styles/TopTen.tsx +0 -412
  102. package/src/components/Content/Card/Styles/Two.tsx +0 -416
  103. package/src/components/Content/Card/components/AdsPoster.tsx +0 -202
  104. package/src/components/Content/Card/components/CardPoster.tsx +0 -377
  105. package/src/components/Content/Card/components/NavigateToMore.tsx +0 -97
  106. package/src/components/Content/Card/components/RentOrBuyIcon.tsx +0 -129
  107. package/src/components/Content/Card/components/ShowAllButton.tsx +0 -92
  108. package/src/components/Content/Card/components/ThumbnailCard.tsx +0 -234
  109. package/src/components/Content/Card/components/index.ts +0 -1
  110. package/src/components/Content/Card/index.ts +0 -30
  111. package/src/components/Content/Content.tsx +0 -315
  112. package/src/components/Content/Sections.tsx +0 -238
  113. package/src/components/Content/types.ts +0 -176
  114. package/src/components/ContentView/MoreContentList.tsx +0 -327
  115. package/src/components/ContentView/One/ContentViewOne.tsx +0 -243
  116. package/src/components/ContentView/One/components/AboutSection.tsx +0 -216
  117. package/src/components/ContentView/One/components/CastCard.tsx +0 -265
  118. package/src/components/ContentView/One/components/EpisodeCard.tsx +0 -535
  119. package/src/components/ContentView/One/components/GenreTags.tsx +0 -132
  120. package/src/components/ContentView/One/components/HeroBanner.tsx +0 -357
  121. package/src/components/ContentView/One/components/MiniInfo.tsx +0 -356
  122. package/src/components/ContentView/One/components/PlayButton.tsx +0 -56
  123. package/src/components/ContentView/One/components/Title.tsx +0 -149
  124. package/src/components/ContentView/One/components/TrailerButton.tsx +0 -76
  125. package/src/components/ContentView/Two/ContentViewTwo.tsx +0 -343
  126. package/src/components/ContentView/Two/components/AboutSection.tsx +0 -216
  127. package/src/components/ContentView/Two/components/Details.tsx +0 -193
  128. package/src/components/ContentView/Two/components/EpisodeCard.tsx +0 -602
  129. package/src/components/ContentView/Two/components/GenreTags.tsx +0 -123
  130. package/src/components/ContentView/Two/components/HeroBanner.tsx +0 -402
  131. package/src/components/ContentView/Two/components/LikeShareActions.tsx +0 -125
  132. package/src/components/ContentView/Two/components/MoreLikeThisContentList .tsx +0 -305
  133. package/src/components/ContentView/Two/components/PlayOrTrailer.tsx +0 -133
  134. package/src/components/ContentView/Two/components/SectionTabs.tsx +0 -177
  135. package/src/components/ContentView/Two/components/Title.tsx +0 -226
  136. package/src/components/ContentView/Two/components/index.ts +0 -15
  137. package/src/components/ContentView/index.ts +0 -13
  138. package/src/components/Fallbacks/NoContentFallback.tsx +0 -176
  139. package/src/components/Fallbacks/NotFoundFallback.tsx +0 -94
  140. package/src/components/Fallbacks/index.ts +0 -2
  141. package/src/components/Headers/AppHeader.tsx +0 -150
  142. package/src/components/Headers/Four.tsx +0 -83
  143. package/src/components/Headers/One.tsx +0 -115
  144. package/src/components/Headers/Three.tsx +0 -135
  145. package/src/components/Headers/Two.tsx +0 -100
  146. package/src/components/Headers/index.ts +0 -18
  147. package/src/components/Input/Input.ts +0 -20
  148. package/src/components/Input/InputOne.tsx +0 -259
  149. package/src/components/Input/InputThree.tsx +0 -212
  150. package/src/components/Input/InputTwo.tsx +0 -212
  151. package/src/components/Input/PhoneNumberInput.tsx +0 -431
  152. package/src/components/Input/PhoneNumberInputTwo.tsx +0 -418
  153. package/src/components/Keyboard/HideKeyboard.tsx +0 -88
  154. package/src/components/Loader/Loader.tsx +0 -44
  155. package/src/components/Logo/Logo.tsx +0 -145
  156. package/src/components/NewRelease/NewReleaseSheet.tsx +0 -250
  157. package/src/components/NewRelease/index.ts +0 -1
  158. package/src/components/Reels/ReelsSeries/MediaControls/BottomControls.tsx +0 -221
  159. package/src/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.tsx +0 -314
  160. package/src/components/Reels/ReelsSeries/MediaControls/MiddleControls.tsx +0 -196
  161. package/src/components/Reels/ReelsSeries/MediaControls/RightControls.tsx +0 -95
  162. package/src/components/Reels/ReelsSeries/MediaControls/TopControls.tsx +0 -163
  163. package/src/components/Reels/ReelsSeries/Model/DetailsModal.tsx +0 -210
  164. package/src/components/Reels/ReelsSeries/Model/SettingModal.tsx +0 -146
  165. package/src/components/Reels/ReelsSeries/Model/UnlockModal.tsx +0 -154
  166. package/src/components/Reels/ReelsSeries/ReelsSeries.tsx +0 -264
  167. package/src/components/Reels/ReelsSeries/ReelsSeriesItem.tsx +0 -494
  168. package/src/components/Reels/ReelsSeries/components/AnimatedThreeLines.tsx +0 -184
  169. package/src/components/Reels/ReelsSeries/components/Episodes.tsx +0 -154
  170. package/src/components/Reels/ReelsSeries/components/GradientOverlay.tsx +0 -41
  171. package/src/components/Reels/ReelsSeries/components/Like.tsx +0 -40
  172. package/src/components/Reels/ReelsSeries/components/RotatingLoader.tsx +0 -79
  173. package/src/components/Reels/ReelsSeries/components/Synopsis.tsx +0 -332
  174. package/src/components/Reels/ReelsSeries/components/VideoControls/QualityControl.tsx +0 -187
  175. package/src/components/Reels/ReelsSeries/components/VideoControls/SpeedControl.tsx +0 -80
  176. package/src/components/Reels/ReelsSeries/components/VideoControls/index.ts +0 -2
  177. package/src/components/Reels/ReelsSeries/types.ts +0 -54
  178. package/src/components/Reels/ReelsSeries/useReelsWatchProgress.ts +0 -85
  179. package/src/components/Reels/ReelsSeries/utils/quality.ts +0 -48
  180. package/src/components/Reels/index.ts +0 -9
  181. package/src/components/Reels/utils/Controls/gestureUtils.ts +0 -42
  182. package/src/components/Reels/utils/Controls/index.ts +0 -4
  183. package/src/components/Reels/utils/Controls/overlayUtils.ts +0 -35
  184. package/src/components/Reels/utils/Controls/videoControlsConstants.ts +0 -25
  185. package/src/components/Reels/utils/Controls/videoRef.ts +0 -4
  186. package/src/components/Reels/utils/index.ts +0 -1
  187. package/src/components/Reels/utils/timeoutUtils.ts +0 -29
  188. package/src/components/Search/One.tsx +0 -256
  189. package/src/components/Search/components/RecentSearchesSection.tsx +0 -181
  190. package/src/components/Search/components/SearchCard.tsx +0 -275
  191. package/src/components/Search/index.ts +0 -16
  192. package/src/components/Settings/AppSettings.tsx +0 -428
  193. package/src/components/Settings/index.ts +0 -1
  194. package/src/components/Subscription/SubOne.tsx +0 -874
  195. package/src/components/Subscription/index.ts +0 -12
  196. package/src/components/TabBar/One.tsx +0 -148
  197. package/src/components/TabBar/Three.tsx +0 -169
  198. package/src/components/TabBar/Two.tsx +0 -189
  199. package/src/components/TabBar/index.ts +0 -20
  200. package/src/components/Text/Text.tsx +0 -85
  201. package/src/components/Text/index.ts +0 -5
  202. package/src/components/User/DeviceSessions/DeviceSessions.tsx +0 -468
  203. package/src/components/User/ProfileUpdate/ProfileUpdate.tsx +0 -278
  204. package/src/components/User/PurchaseHistory/PurchaseHistory.tsx +0 -494
  205. package/src/components/User/WatchHistory/WatchHistory.tsx +0 -227
  206. package/src/components/User/WatchLater/WatchLater.tsx +0 -397
  207. package/src/components/User/components/UserAvatar.tsx +0 -120
  208. package/src/components/User/components/UserSection.tsx +0 -228
  209. package/src/components/User/index.ts +0 -18
  210. package/src/components/View/View.tsx +0 -37
  211. package/src/components/View/index.ts +0 -5
  212. package/src/components/common/AppStatusBar.tsx +0 -57
  213. package/src/components/index.ts +0 -29
  214. package/src/components/layout/SafeAreaWrapper.tsx +0 -45
  215. package/src/components/layout/index.ts +0 -1
  216. package/src/constants/dummySections.ts +0 -98
  217. package/src/hooks/Images/index.ts +0 -2
  218. package/src/hooks/Images/useImageLoader.ts +0 -206
  219. package/src/hooks/Images/useImageValidation.ts +0 -36
  220. package/src/hooks/index.ts +0 -17
  221. package/src/hooks/useAdTracking.ts +0 -349
  222. package/src/hooks/useCards.ts +0 -228
  223. package/src/hooks/useDebounce.ts +0 -35
  224. package/src/hooks/useKeyboard.ts +0 -43
  225. package/src/hooks/useNavigationMode.ts +0 -46
  226. package/src/hooks/usePaginatedSection.ts +0 -101
  227. package/src/hooks/usePrevious.ts +0 -28
  228. package/src/hooks/useSafeCallback.ts +0 -43
  229. package/src/hooks/useSkeletonItems.ts +0 -30
  230. package/src/hooks/useSplashCache.ts +0 -186
  231. package/src/hooks/useThemeColors.ts +0 -51
  232. package/src/index.tsx +0 -8
  233. package/src/store/RecentSearchesStore.ts +0 -78
  234. package/src/store/splashStore.ts +0 -91
  235. package/src/store/themeStore.ts +0 -43
  236. package/src/theme/ThemeProvider.tsx +0 -112
  237. package/src/theme/hook/index.ts +0 -1
  238. package/src/theme/hook/useInternalTheme.ts +0 -98
  239. package/src/theme/index.ts +0 -7
  240. package/src/theme/themes.ts +0 -336
  241. package/src/theme/utils/validateColor.ts +0 -127
  242. package/src/types/content/content-view.types.ts +0 -206
  243. package/src/types/hook/index.ts +0 -5
  244. package/src/types/hook/usePaginatedSetion.ts +0 -19
  245. package/src/types/index.ts +0 -7
  246. package/src/types/sections/index.ts +0 -84
  247. package/src/utils/Display.ts +0 -14
  248. package/src/utils/Formater.ts +0 -14
  249. package/src/utils/PlatformSelector.ts +0 -29
  250. package/src/utils/SizeMatters.ts +0 -7
  251. package/src/utils/Spacing.ts +0 -27
  252. package/src/utils/colorUtils.ts +0 -70
@@ -1,226 +0,0 @@
1
- /**
2
- * @author Ashok Desai
3
- * @lastModified Tue 13 Jun 2026 at 02:28 PM
4
- */
5
-
6
- import React, { useMemo } from 'react';
7
- import {
8
- View,
9
- StyleSheet,
10
- type StyleProp,
11
- type ViewStyle,
12
- type TextStyle,
13
- } from 'react-native';
14
- import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
15
- import { scale } from 'react-native-size-matters';
16
- import { Text } from '../../../Text';
17
- import type { ITheme } from '../../../../theme/themes';
18
- import { RFValue } from 'react-native-responsive-fontsize';
19
- import type { IContentData } from '@zezosoft/zezo-ott-api-client';
20
- import { LikeShareActions } from './LikeShareActions';
21
- import type { LikeShareEventArgs } from '../../../../types';
22
-
23
- type Props = {
24
- contentId: IContentData['_id'];
25
- subtitle: string;
26
- rating: IContentData['rating'];
27
- releaseYear?: string | number | null;
28
- duration?: string | number | null;
29
- language?: string | null;
30
- theme: ITheme;
31
- isLoading?: boolean;
32
- isLiked?: boolean;
33
- onPressLike?: (args: LikeShareEventArgs) => void;
34
- onPressShare?: (args: LikeShareEventArgs) => void;
35
- style?: {
36
- container?: StyleProp<ViewStyle>;
37
- title?: StyleProp<TextStyle>;
38
- subTitle?: StyleProp<TextStyle>;
39
- rating?: StyleProp<TextStyle>;
40
- releaseYear?: StyleProp<TextStyle>;
41
- duration?: StyleProp<TextStyle>;
42
- language?: StyleProp<TextStyle>;
43
- };
44
- };
45
-
46
- export const Title = React.memo(
47
- ({
48
- contentId,
49
- subtitle,
50
- rating,
51
- releaseYear,
52
- duration,
53
- language,
54
- theme,
55
- isLoading = false,
56
- isLiked,
57
- onPressLike,
58
- onPressShare,
59
- style,
60
- }: Props): React.ReactElement => {
61
- const containerStyle = useMemo(
62
- () => StyleSheet.flatten([styles.container, style?.container]),
63
- [style?.container]
64
- );
65
-
66
- const subTitleStyle = useMemo(
67
- () => StyleSheet.flatten([styles.subTitle, style?.subTitle]),
68
- [style?.subTitle]
69
- );
70
-
71
- const ratingStyle = useMemo(
72
- () => StyleSheet.flatten([styles.rating, style?.rating]),
73
- [style?.rating]
74
- );
75
-
76
- const releaseYearStyle = useMemo(
77
- () => StyleSheet.flatten([styles.metaText, style?.releaseYear]),
78
- [style?.releaseYear]
79
- );
80
-
81
- const durationStyle = useMemo(
82
- () => StyleSheet.flatten([styles.metaText, style?.duration]),
83
- [style?.duration]
84
- );
85
-
86
- const languageStyle = useMemo(
87
- () => StyleSheet.flatten([styles.metaText, style?.language]),
88
- [style?.language]
89
- );
90
-
91
- if (isLoading) {
92
- return (
93
- <View style={containerStyle}>
94
- <SkeletonPlaceholder
95
- backgroundColor={theme.colors.skeletonBaseColor}
96
- highlightColor={theme.colors.skeletonHighlightColor}
97
- >
98
- <SkeletonPlaceholder.Item>
99
- <SkeletonPlaceholder.Item flexDirection="row" alignItems="center">
100
- <SkeletonPlaceholder.Item
101
- width={scale(160)}
102
- height={scale(22)}
103
- borderRadius={scale(4)}
104
- />
105
- <SkeletonPlaceholder.Item
106
- width={scale(60)}
107
- height={scale(22)}
108
- borderRadius={scale(4)}
109
- marginLeft={scale(6)}
110
- />
111
- </SkeletonPlaceholder.Item>
112
-
113
- <SkeletonPlaceholder.Item
114
- width={scale(36)}
115
- height={scale(16)}
116
- borderRadius={scale(4)}
117
- marginTop={scale(6)}
118
- />
119
- </SkeletonPlaceholder.Item>
120
- </SkeletonPlaceholder>
121
- </View>
122
- );
123
- }
124
-
125
- return (
126
- <View style={containerStyle}>
127
- <View style={styles.metaRow}>
128
- <View style={styles.leftMeta}>
129
- {!!subtitle && (
130
- <View
131
- style={[
132
- styles.subTitleContainer,
133
- { backgroundColor: theme.colors.surfaceVariant },
134
- ]}
135
- >
136
- <Text
137
- color={theme.colors.textPrimary}
138
- style={subTitleStyle}
139
- numberOfLines={1}
140
- >
141
- {subtitle}
142
- </Text>
143
- </View>
144
- )}
145
-
146
- {!!releaseYear && (
147
- <Text color={theme.colors.textPrimary} style={releaseYearStyle}>
148
- • {releaseYear}
149
- </Text>
150
- )}
151
-
152
- {!!duration && (
153
- <Text color={theme.colors.textPrimary} style={durationStyle}>
154
- • {duration}
155
- </Text>
156
- )}
157
-
158
- {!!language && (
159
- <Text color={theme.colors.textPrimary} style={languageStyle}>
160
- • {language}
161
- </Text>
162
- )}
163
- </View>
164
-
165
- <LikeShareActions
166
- theme={theme}
167
- contentId={contentId}
168
- isLiked={isLiked}
169
- isLoading={isLoading}
170
- onPressLike={onPressLike}
171
- onPressShare={onPressShare}
172
- />
173
- </View>
174
-
175
- {!!rating && (
176
- <Text color={theme.colors.textSecondary} style={ratingStyle}>
177
- ⭐ {rating}
178
- </Text>
179
- )}
180
- </View>
181
- );
182
- }
183
- );
184
-
185
- const styles = StyleSheet.create({
186
- container: {
187
- paddingHorizontal: scale(12),
188
- marginTop: scale(5),
189
- },
190
-
191
- metaRow: {
192
- flexDirection: 'row',
193
- alignItems: 'center',
194
- justifyContent: 'space-between',
195
- },
196
-
197
- leftMeta: {
198
- flexDirection: 'row',
199
- alignItems: 'center',
200
- flexWrap: 'wrap',
201
- flex: 1,
202
- },
203
-
204
- subTitleContainer: {
205
- alignSelf: 'center',
206
- paddingHorizontal: scale(8),
207
- paddingVertical: scale(2),
208
- borderRadius: scale(6),
209
- marginRight: scale(6),
210
- },
211
-
212
- subTitle: {
213
- fontSize: RFValue(12),
214
- fontWeight: '500',
215
- },
216
-
217
- metaText: {
218
- fontSize: RFValue(14),
219
- marginRight: scale(4),
220
- },
221
-
222
- rating: {
223
- fontSize: RFValue(12),
224
- marginTop: scale(4),
225
- },
226
- });
@@ -1,15 +0,0 @@
1
- /**
2
- * @author Ashok Desai
3
- * @lastModified Sat 17 Jan 2026 at 02:28 PM
4
- */
5
-
6
- export * from './PlayOrTrailer';
7
- export * from './Title';
8
- export * from './HeroBanner';
9
- export * from './GenreTags';
10
- export * from './AboutSection';
11
- export * from './LikeShareActions';
12
- export * from './SectionTabs';
13
- export * from './MoreLikeThisContentList ';
14
- export * from './Details';
15
- export * from './EpisodeCard';
@@ -1,13 +0,0 @@
1
- /**
2
- * @author Naresh Dhamu
3
- * @lastModified Tue 01 Jul 2025 at 02:28 PM
4
- */
5
-
6
- import { ContentViewOne } from './One/ContentViewOne';
7
- import { ContentViewTwo } from './Two/ContentViewTwo';
8
-
9
- export { default as MoreContentList } from './MoreContentList';
10
- export const ContentView = {
11
- One: ContentViewOne,
12
- Two: ContentViewTwo,
13
- };
@@ -1,176 +0,0 @@
1
- /**
2
- * @author Naresh Dhamu
3
- * @lastModified Sat 25 Oct 2025 at 11:15 AM
4
- */
5
-
6
- import React, { useCallback, useMemo } from 'react';
7
- import {
8
- TouchableOpacity,
9
- StyleSheet,
10
- ActivityIndicator,
11
- type StyleProp,
12
- type ViewStyle,
13
- } from 'react-native';
14
- import Animated, {
15
- useSharedValue,
16
- useAnimatedStyle,
17
- withSpring,
18
- } from 'react-native-reanimated';
19
- import { scale, verticalScale } from 'react-native-size-matters';
20
- import { Text } from '../Text';
21
- import { useInternalTheme } from '../../theme/hook/useInternalTheme';
22
- import type { ThemeOverride } from '../../theme/themes';
23
- import { RFValue } from 'react-native-responsive-fontsize';
24
- import { AlertCircle } from 'lucide-react-native';
25
-
26
- export type NoContentFallbackProps = {
27
- message?: string;
28
- retryText?: string;
29
- onRetry?: () => void;
30
- isLoading?: boolean;
31
- theme?: ThemeOverride;
32
- style?: StyleProp<ViewStyle>;
33
- };
34
-
35
- export const NoContentFallback = React.memo(
36
- ({
37
- message = 'No content available right now.\nPlease check back later.',
38
- retryText = 'Try Again',
39
- onRetry,
40
- theme,
41
- style,
42
- isLoading = false,
43
- }: NoContentFallbackProps) => {
44
- const { theme: appliedTheme } = useInternalTheme(theme);
45
- const scaleValue = useSharedValue(1);
46
-
47
- const handlePressIn = useCallback(() => {
48
- if (isLoading) return; // disable press animation during loading
49
- scaleValue.value = withSpring(0.95, { damping: 15, stiffness: 200 });
50
- }, [scaleValue, isLoading]);
51
-
52
- const handlePressOut = useCallback(() => {
53
- if (isLoading) return;
54
- scaleValue.value = withSpring(1, { damping: 15, stiffness: 200 });
55
- }, [scaleValue, isLoading]);
56
-
57
- const animatedButtonStyle = useAnimatedStyle(() => ({
58
- transform: [{ scale: scaleValue.value }],
59
- }));
60
-
61
- const iconColor = useMemo(
62
- () => appliedTheme?.colors?.textSecondary ?? '#999',
63
- [appliedTheme?.colors?.textSecondary]
64
- );
65
-
66
- const messageStyle = useMemo(
67
- () => [styles.message, { color: appliedTheme.colors.textSecondary }],
68
- [appliedTheme.colors.textSecondary]
69
- );
70
-
71
- const retryButtonStyle = useMemo(
72
- () => [
73
- styles.retryButton,
74
- {
75
- backgroundColor: isLoading
76
- ? appliedTheme.colors.primary
77
- : appliedTheme.colors.primary,
78
- opacity: isLoading ? 0.8 : 1,
79
- },
80
- ],
81
- [isLoading, appliedTheme.colors.primary]
82
- );
83
-
84
- const retryTextStyle = useMemo(
85
- () => [styles.retryText, { color: appliedTheme.colors.onPrimary }],
86
- [appliedTheme.colors.onPrimary]
87
- );
88
-
89
- const handleRetry = useCallback(() => {
90
- if (!isLoading && onRetry) {
91
- onRetry();
92
- }
93
- }, [isLoading, onRetry]);
94
-
95
- return (
96
- <Animated.View
97
- style={[styles.container, style]}
98
- accessibilityLabel="No content available"
99
- accessibilityHint="Check back later or try again"
100
- >
101
- <AlertCircle
102
- size={RFValue(63)}
103
- color={iconColor}
104
- style={{ marginBottom: scale(20) }}
105
- />
106
-
107
- <Text style={messageStyle}>{message}</Text>
108
-
109
- {onRetry && (
110
- <TouchableOpacity
111
- onPress={handleRetry}
112
- onPressIn={handlePressIn}
113
- onPressOut={handlePressOut}
114
- activeOpacity={0.7}
115
- disabled={isLoading}
116
- style={retryButtonStyle}
117
- accessibilityLabel={retryText}
118
- accessibilityRole="button"
119
- >
120
- <Animated.View
121
- style={[
122
- animatedButtonStyle,
123
- {
124
- flexDirection: 'row',
125
- alignItems: 'center',
126
- justifyContent: 'center',
127
- },
128
- ]}
129
- >
130
- {isLoading ? (
131
- <>
132
- <ActivityIndicator
133
- size="small"
134
- color={appliedTheme.colors.onPrimary}
135
- style={{ marginRight: scale(8) }}
136
- />
137
- <Text style={retryTextStyle}>Loading...</Text>
138
- </>
139
- ) : (
140
- <Text style={retryTextStyle}>{retryText}</Text>
141
- )}
142
- </Animated.View>
143
- </TouchableOpacity>
144
- )}
145
- </Animated.View>
146
- );
147
- }
148
- );
149
-
150
- const styles = StyleSheet.create({
151
- container: {
152
- flex: 1,
153
- alignItems: 'center',
154
- justifyContent: 'center',
155
- paddingHorizontal: scale(20),
156
- paddingVertical: verticalScale(40),
157
- },
158
- message: {
159
- fontSize: RFValue(15),
160
- textAlign: 'center',
161
- fontWeight: '500',
162
- lineHeight: verticalScale(22),
163
- marginBottom: verticalScale(20),
164
- },
165
- retryButton: {
166
- paddingHorizontal: scale(18),
167
- paddingVertical: verticalScale(10),
168
- borderRadius: scale(8),
169
- alignItems: 'center',
170
- },
171
- retryText: {
172
- fontSize: RFValue(13),
173
- fontWeight: '600',
174
- textAlign: 'center',
175
- },
176
- });
@@ -1,94 +0,0 @@
1
- /**
2
- * @author Naresh Dhamu
3
- * @lastModified Tue 01 Jul 2025 at 02:28 PM
4
- */
5
-
6
- import React, { useMemo } from 'react';
7
- import { StyleSheet } from 'react-native';
8
- import { scale } from 'react-native-size-matters';
9
- import { Button } from '../Button';
10
- import type { ThemeOverride } from '../../theme';
11
- import { View } from '../View';
12
- import { Text } from '../Text';
13
- import { AlertCircle } from 'lucide-react-native';
14
- import { useInternalTheme } from '../../theme/hook';
15
-
16
- interface NotFoundFallbackProps {
17
- title?: string;
18
- subtitle?: string;
19
- content?: React.ReactNode;
20
- onPressBack?: () => void;
21
- backButtonText?: string;
22
- theme?: ThemeOverride;
23
- iconSize?: number;
24
- iconColor?: string;
25
- }
26
-
27
- const NotFoundFallbackComponent: React.FC<NotFoundFallbackProps> = ({
28
- title = 'Content Not Found',
29
- subtitle = "We couldn't find anything to show here. Please check back later.",
30
- content,
31
- onPressBack,
32
- backButtonText = 'Go Back',
33
- theme,
34
- iconSize = scale(60),
35
- iconColor,
36
- }) => {
37
- const { theme: appliedTheme } = useInternalTheme(theme);
38
-
39
- const finalIconColor = useMemo(
40
- () => iconColor ?? appliedTheme?.colors?.textSecondary ?? '#999',
41
- [iconColor, appliedTheme?.colors?.textSecondary]
42
- );
43
-
44
- if (content) return <>{content}</>;
45
-
46
- return (
47
- <View style={styles.container}>
48
- <AlertCircle
49
- size={iconSize}
50
- color={finalIconColor}
51
- style={{ marginBottom: scale(20) }}
52
- />
53
-
54
- <Text style={styles.title} type="title" theme={theme}>
55
- {title}
56
- </Text>
57
- <Text style={styles.subtitle} type="subtitle" theme={theme}>
58
- {subtitle}
59
- </Text>
60
-
61
- {onPressBack && (
62
- <Button.Primary
63
- theme={theme}
64
- title={backButtonText}
65
- onPress={onPressBack}
66
- />
67
- )}
68
- </View>
69
- );
70
- };
71
-
72
- export const NotFoundFallback = React.memo(NotFoundFallbackComponent);
73
-
74
- const styles = StyleSheet.create({
75
- container: {
76
- flex: 1,
77
- justifyContent: 'center',
78
- alignItems: 'center',
79
- paddingHorizontal: scale(30),
80
- paddingBottom: scale(30),
81
- backgroundColor: 'transparent',
82
- },
83
- title: {
84
- fontSize: scale(18),
85
- fontWeight: '700',
86
- marginBottom: scale(8),
87
- textAlign: 'center',
88
- },
89
- subtitle: {
90
- fontSize: scale(14),
91
- textAlign: 'center',
92
- marginBottom: scale(20),
93
- },
94
- });
@@ -1,2 +0,0 @@
1
- export * from './NotFoundFallback';
2
- export * from './NoContentFallback';
@@ -1,150 +0,0 @@
1
- /**
2
- * @author Naresh Dhamu
3
- * @lastModified Sat 21 Jun 2025 at 02:52 PM
4
- */
5
- import React, { useMemo, useCallback } from 'react';
6
- import {
7
- View,
8
- StyleSheet,
9
- TouchableOpacity,
10
- type StyleProp,
11
- type ViewStyle,
12
- type TextStyle,
13
- } from 'react-native';
14
- import { ArrowLeft } from 'lucide-react-native';
15
- import { useInternalTheme } from '../../theme/hook/useInternalTheme';
16
- import { scale, verticalScale } from 'react-native-size-matters';
17
- import { Text } from '../Text';
18
- import type { ThemeOverride } from '../../theme/themes';
19
- import { RFValue } from 'react-native-responsive-fontsize';
20
-
21
- export type AppHeaderProps = {
22
- title: string;
23
- onBackPress?: () => void;
24
- onRightPress?: () => void;
25
- rightIcon?: React.ReactNode;
26
- style?: StyleProp<ViewStyle>;
27
- titleStyle?: TextStyle;
28
- titleAlign?: 'center' | 'left';
29
- theme?: ThemeOverride;
30
- };
31
-
32
- const AppHeader: React.FC<AppHeaderProps> = ({
33
- title,
34
- onBackPress,
35
- onRightPress,
36
- rightIcon,
37
- style,
38
- titleStyle,
39
- titleAlign = 'center',
40
- theme,
41
- }) => {
42
- const { theme: appliedTheme } = useInternalTheme(theme);
43
-
44
- const headerStyle = useMemo(
45
- () => [
46
- styles.header,
47
- { backgroundColor: appliedTheme.colors.background },
48
- style,
49
- ],
50
- [appliedTheme.colors.background, style]
51
- );
52
-
53
- const titleWrapperStyle = useMemo(
54
- () => [
55
- styles.titleWrapper,
56
- titleAlign === 'center' ? styles.centered : styles.leftAligned,
57
- ],
58
- [titleAlign]
59
- );
60
-
61
- const titleTextStyle = useMemo(
62
- () => [
63
- { color: appliedTheme.colors.onBackground },
64
- !onBackPress && { ...titleStyle },
65
- titleStyle,
66
- styles.title,
67
- ],
68
- [appliedTheme.colors.onBackground, onBackPress, titleStyle]
69
- );
70
-
71
- const handleBackPress = useCallback(() => {
72
- onBackPress?.();
73
- }, [onBackPress]);
74
-
75
- const handleRightPress = useCallback(() => {
76
- onRightPress?.();
77
- }, [onRightPress]);
78
-
79
- return (
80
- <View style={headerStyle}>
81
- {/* Left icon */}
82
- {onBackPress && (
83
- <TouchableOpacity
84
- onPress={handleBackPress}
85
- activeOpacity={0.7}
86
- style={styles.iconButton}
87
- >
88
- <ArrowLeft size={scale(22)} color={appliedTheme.colors.textPrimary} />
89
- </TouchableOpacity>
90
- )}
91
-
92
- {/* Title */}
93
- <View style={titleWrapperStyle}>
94
- <Text numberOfLines={1} style={titleTextStyle}>
95
- {title}
96
- </Text>
97
- </View>
98
-
99
- {/* Right icon */}
100
- {rightIcon && onRightPress ? (
101
- <TouchableOpacity
102
- onPress={handleRightPress}
103
- activeOpacity={0.7}
104
- style={styles.iconButton}
105
- >
106
- {rightIcon}
107
- </TouchableOpacity>
108
- ) : (
109
- <View style={styles.iconButton} />
110
- )}
111
- </View>
112
- );
113
- };
114
-
115
- export default React.memo(AppHeader);
116
-
117
- const styles = StyleSheet.create({
118
- header: {
119
- height: verticalScale(40),
120
- paddingHorizontal: scale(12),
121
- paddingBottom: verticalScale(4),
122
- flexDirection: 'row',
123
- alignItems: 'center',
124
- },
125
- iconButton: {
126
- width: scale(42),
127
- height: scale(42),
128
- borderRadius: scale(21),
129
- justifyContent: 'center',
130
- alignItems: 'center',
131
- overflow: 'hidden',
132
- backgroundColor: 'transparent',
133
- },
134
- titleWrapper: {
135
- flex: 1,
136
- justifyContent: 'center',
137
- },
138
- centered: {
139
- alignItems: 'center',
140
- },
141
- leftAligned: {
142
- alignItems: 'flex-start',
143
- paddingLeft: scale(2),
144
- },
145
- title: {
146
- fontSize: RFValue(14),
147
- textTransform: 'capitalize',
148
- fontWeight: '500',
149
- },
150
- });