@zezosoft/zezo-ott-react-native-ui-kit 1.1.0 → 1.1.2

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 (512) hide show
  1. package/lib/module/Styles/globalStyles.js +0 -5
  2. package/lib/module/Styles/globalStyles.js.map +1 -1
  3. package/lib/module/components/Auth/AuthProvider/AuthProvider.js +64 -40
  4. package/lib/module/components/Auth/AuthProvider/AuthProvider.js.map +1 -1
  5. package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js +5 -2
  6. package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js.map +1 -1
  7. package/lib/module/components/Auth/Login/LoginWithEmail.js +17 -11
  8. package/lib/module/components/Auth/Login/LoginWithEmail.js.map +1 -1
  9. package/lib/module/components/Auth/Login/LoginWithPhone.js +12 -6
  10. package/lib/module/components/Auth/Login/LoginWithPhone.js.map +1 -1
  11. package/lib/module/components/Auth/OTP/OTP.js +7 -4
  12. package/lib/module/components/Auth/OTP/OTP.js.map +1 -1
  13. package/lib/module/components/Auth/QrLogin/QrLogin.js +133 -86
  14. package/lib/module/components/Auth/QrLogin/QrLogin.js.map +1 -1
  15. package/lib/module/components/Auth/QrLogin/components/QrViewArea.js +174 -109
  16. package/lib/module/components/Auth/QrLogin/components/QrViewArea.js.map +1 -1
  17. package/lib/module/components/Auth/SignUp/SignUp.js +19 -13
  18. package/lib/module/components/Auth/SignUp/SignUp.js.map +1 -1
  19. package/lib/module/components/Auth/SplashScreen/SplashScreen.js +54 -36
  20. package/lib/module/components/Auth/SplashScreen/SplashScreen.js.map +1 -1
  21. package/lib/module/components/Auth/SplashScreen/components/SplashImage/SplashImage.js +29 -11
  22. package/lib/module/components/Auth/SplashScreen/components/SplashImage/SplashImage.js.map +1 -1
  23. package/lib/module/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.js +13 -7
  24. package/lib/module/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.js.map +1 -1
  25. package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js +33 -21
  26. package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js.map +1 -1
  27. package/lib/module/components/BackgroundLayout/BackgroundLayout.js +26 -20
  28. package/lib/module/components/BackgroundLayout/BackgroundLayout.js.map +1 -1
  29. package/lib/module/components/BlogView/BlogView.js +36 -20
  30. package/lib/module/components/BlogView/BlogView.js.map +1 -1
  31. package/lib/module/components/BottomSheet/BottomSheet.js +152 -0
  32. package/lib/module/components/BottomSheet/BottomSheet.js.map +1 -0
  33. package/lib/module/components/BottomSheet/index.js +4 -0
  34. package/lib/module/components/BottomSheet/index.js.map +1 -0
  35. package/lib/module/components/Button/BackBtn.js +46 -16
  36. package/lib/module/components/Button/BackBtn.js.map +1 -1
  37. package/lib/module/components/Button/PrimaryBtn.js +19 -13
  38. package/lib/module/components/Button/PrimaryBtn.js.map +1 -1
  39. package/lib/module/components/Button/SecondaryBtn.js +19 -13
  40. package/lib/module/components/Button/SecondaryBtn.js.map +1 -1
  41. package/lib/module/components/Button/TextButton.js +19 -13
  42. package/lib/module/components/Button/TextButton.js.map +1 -1
  43. package/lib/module/components/Content/Card/Category/Category.js +70 -37
  44. package/lib/module/components/Content/Card/Category/Category.js.map +1 -1
  45. package/lib/module/components/Content/Card/Sliders/Styles/One.js +40 -32
  46. package/lib/module/components/Content/Card/Sliders/Styles/One.js.map +1 -1
  47. package/lib/module/components/Content/Card/Sliders/Styles/Two.js +109 -48
  48. package/lib/module/components/Content/Card/Sliders/Styles/Two.js.map +1 -1
  49. package/lib/module/components/Content/Card/Styles/RotateInOut.js +4 -11
  50. package/lib/module/components/Content/Card/Styles/RotateInOut.js.map +1 -1
  51. package/lib/module/components/Content/Card/components/CardPoster.js +105 -43
  52. package/lib/module/components/Content/Card/components/CardPoster.js.map +1 -1
  53. package/lib/module/components/Content/Card/components/RentOrBuyIcon.js +18 -17
  54. package/lib/module/components/Content/Card/components/RentOrBuyIcon.js.map +1 -1
  55. package/lib/module/components/Content/Card/components/ThumbnailCard.js +78 -28
  56. package/lib/module/components/Content/Card/components/ThumbnailCard.js.map +1 -1
  57. package/lib/module/components/Content/Content.js +44 -25
  58. package/lib/module/components/Content/Content.js.map +1 -1
  59. package/lib/module/components/Content/Sections.js +37 -29
  60. package/lib/module/components/Content/Sections.js.map +1 -1
  61. package/lib/module/components/ContentView/ContentView.js +70 -41
  62. package/lib/module/components/ContentView/ContentView.js.map +1 -1
  63. package/lib/module/components/ContentView/MoreContentList.js +74 -40
  64. package/lib/module/components/ContentView/MoreContentList.js.map +1 -1
  65. package/lib/module/components/ContentView/components/AboutSection.js +40 -19
  66. package/lib/module/components/ContentView/components/AboutSection.js.map +1 -1
  67. package/lib/module/components/ContentView/components/CastCard.js +6 -7
  68. package/lib/module/components/ContentView/components/CastCard.js.map +1 -1
  69. package/lib/module/components/ContentView/components/EpisodeCard.js +2 -2
  70. package/lib/module/components/ContentView/components/EpisodeCard.js.map +1 -1
  71. package/lib/module/components/ContentView/components/GenreTags.js +25 -13
  72. package/lib/module/components/ContentView/components/GenreTags.js.map +1 -1
  73. package/lib/module/components/ContentView/components/HeroBanner.js +39 -11
  74. package/lib/module/components/ContentView/components/HeroBanner.js.map +1 -1
  75. package/lib/module/components/ContentView/components/MiniInfo.js +84 -77
  76. package/lib/module/components/ContentView/components/MiniInfo.js.map +1 -1
  77. package/lib/module/components/ContentView/components/PlayButton.js +11 -7
  78. package/lib/module/components/ContentView/components/PlayButton.js.map +1 -1
  79. package/lib/module/components/ContentView/components/Title.js +12 -12
  80. package/lib/module/components/ContentView/components/Title.js.map +1 -1
  81. package/lib/module/components/ContentView/components/TrailerButton.js +12 -7
  82. package/lib/module/components/ContentView/components/TrailerButton.js.map +1 -1
  83. package/lib/module/components/Fallbacks/NoContentFallback.js +27 -22
  84. package/lib/module/components/Fallbacks/NoContentFallback.js.map +1 -1
  85. package/lib/module/components/Fallbacks/NotFoundFallback.js +6 -4
  86. package/lib/module/components/Fallbacks/NotFoundFallback.js.map +1 -1
  87. package/lib/module/components/Headers/AppHeader.js +22 -13
  88. package/lib/module/components/Headers/AppHeader.js.map +1 -1
  89. package/lib/module/components/Headers/Three.js +6 -5
  90. package/lib/module/components/Headers/Three.js.map +1 -1
  91. package/lib/module/components/Headers/Two.js +19 -14
  92. package/lib/module/components/Headers/Two.js.map +1 -1
  93. package/lib/module/components/Input/InputOne.js +46 -31
  94. package/lib/module/components/Input/InputOne.js.map +1 -1
  95. package/lib/module/components/Loader/Loader.js +2 -2
  96. package/lib/module/components/Loader/Loader.js.map +1 -1
  97. package/lib/module/components/Logo/Logo.js +17 -14
  98. package/lib/module/components/Logo/Logo.js.map +1 -1
  99. package/lib/module/components/Reels/ReelsSeries/MediaControls/BottomControls.js +134 -0
  100. package/lib/module/components/Reels/ReelsSeries/MediaControls/BottomControls.js.map +1 -0
  101. package/lib/module/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.js +154 -0
  102. package/lib/module/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.js.map +1 -0
  103. package/lib/module/components/Reels/ReelsSeries/MediaControls/MiddleControls.js +173 -0
  104. package/lib/module/components/Reels/ReelsSeries/MediaControls/MiddleControls.js.map +1 -0
  105. package/lib/module/components/Reels/ReelsSeries/MediaControls/RightControls.js +77 -0
  106. package/lib/module/components/Reels/ReelsSeries/MediaControls/RightControls.js.map +1 -0
  107. package/lib/module/components/Reels/ReelsSeries/MediaControls/TopControls.js +132 -0
  108. package/lib/module/components/Reels/ReelsSeries/MediaControls/TopControls.js.map +1 -0
  109. package/lib/module/components/Reels/ReelsSeries/Model/DetailsModal.js +165 -0
  110. package/lib/module/components/Reels/ReelsSeries/Model/DetailsModal.js.map +1 -0
  111. package/lib/module/components/Reels/ReelsSeries/Model/SettingModal.js +106 -0
  112. package/lib/module/components/Reels/ReelsSeries/Model/SettingModal.js.map +1 -0
  113. package/lib/module/components/Reels/ReelsSeries/Model/UnlockModal.js +124 -0
  114. package/lib/module/components/Reels/ReelsSeries/Model/UnlockModal.js.map +1 -0
  115. package/lib/module/components/Reels/ReelsSeries/ReelsSeries.js +102 -64
  116. package/lib/module/components/Reels/ReelsSeries/ReelsSeries.js.map +1 -1
  117. package/lib/module/components/Reels/ReelsSeries/ReelsSeriesItem.js +241 -232
  118. package/lib/module/components/Reels/ReelsSeries/ReelsSeriesItem.js.map +1 -1
  119. package/lib/module/components/Reels/ReelsSeries/components/AnimatedThreeLines.js +153 -0
  120. package/lib/module/components/Reels/ReelsSeries/components/AnimatedThreeLines.js.map +1 -0
  121. package/lib/module/components/Reels/ReelsSeries/{Model → components}/Episodes.js +46 -36
  122. package/lib/module/components/Reels/ReelsSeries/components/Episodes.js.map +1 -0
  123. package/lib/module/components/Reels/ReelsSeries/components/GradientOverlay.js +35 -0
  124. package/lib/module/components/Reels/ReelsSeries/components/GradientOverlay.js.map +1 -0
  125. package/lib/module/components/Reels/ReelsSeries/components/Like.js +37 -0
  126. package/lib/module/components/Reels/ReelsSeries/components/Like.js.map +1 -0
  127. package/lib/module/components/Reels/ReelsSeries/components/RotatingLoader.js +55 -0
  128. package/lib/module/components/Reels/ReelsSeries/components/RotatingLoader.js.map +1 -0
  129. package/lib/module/components/Reels/ReelsSeries/components/Synopsis.js +268 -0
  130. package/lib/module/components/Reels/ReelsSeries/components/Synopsis.js.map +1 -0
  131. package/lib/module/components/Reels/ReelsSeries/components/VideoControls/QualityControl.js +143 -0
  132. package/lib/module/components/Reels/ReelsSeries/components/VideoControls/QualityControl.js.map +1 -0
  133. package/lib/module/components/Reels/ReelsSeries/components/VideoControls/SpeedControl.js +56 -0
  134. package/lib/module/components/Reels/ReelsSeries/components/VideoControls/SpeedControl.js.map +1 -0
  135. package/lib/module/components/Reels/ReelsSeries/components/VideoControls/index.js +5 -0
  136. package/lib/module/components/Reels/ReelsSeries/components/VideoControls/index.js.map +1 -0
  137. package/lib/module/components/Reels/utils/Controls/gestureUtils.js +30 -0
  138. package/lib/module/components/Reels/utils/Controls/gestureUtils.js.map +1 -0
  139. package/lib/module/components/Reels/utils/Controls/index.js +7 -0
  140. package/lib/module/components/Reels/utils/Controls/index.js.map +1 -0
  141. package/lib/module/components/Reels/utils/Controls/overlayUtils.js +28 -0
  142. package/lib/module/components/Reels/utils/Controls/overlayUtils.js.map +1 -0
  143. package/lib/module/components/Reels/utils/Controls/videoControlsConstants.js +27 -0
  144. package/lib/module/components/Reels/utils/Controls/videoControlsConstants.js.map +1 -0
  145. package/lib/module/components/Reels/utils/Controls/videoRef.js +5 -0
  146. package/lib/module/components/Reels/utils/Controls/videoRef.js.map +1 -0
  147. package/lib/module/components/Reels/utils/index.js +4 -0
  148. package/lib/module/components/Reels/utils/index.js.map +1 -0
  149. package/lib/module/components/Reels/utils/timeoutUtils.js +24 -0
  150. package/lib/module/components/Reels/utils/timeoutUtils.js.map +1 -0
  151. package/lib/module/components/Search/One.js +2 -1
  152. package/lib/module/components/Search/One.js.map +1 -1
  153. package/lib/module/components/Search/components/SearchCard.js +15 -19
  154. package/lib/module/components/Search/components/SearchCard.js.map +1 -1
  155. package/lib/module/components/Settings/AppSettings.js +97 -62
  156. package/lib/module/components/Settings/AppSettings.js.map +1 -1
  157. package/lib/module/components/Subscription/SubOne.js +313 -254
  158. package/lib/module/components/Subscription/SubOne.js.map +1 -1
  159. package/lib/module/components/Text/Text.js +15 -12
  160. package/lib/module/components/Text/Text.js.map +1 -1
  161. package/lib/module/components/User/DeviceSessions/DeviceSessions.js +25 -23
  162. package/lib/module/components/User/DeviceSessions/DeviceSessions.js.map +1 -1
  163. package/lib/module/components/User/ProfileUpdate/ProfileUpdate.js +23 -18
  164. package/lib/module/components/User/ProfileUpdate/ProfileUpdate.js.map +1 -1
  165. package/lib/module/components/User/PurchaseHistory/PurchaseHistory.js +38 -24
  166. package/lib/module/components/User/PurchaseHistory/PurchaseHistory.js.map +1 -1
  167. package/lib/module/components/User/WatchHistory/WatchHistory.js +21 -14
  168. package/lib/module/components/User/WatchHistory/WatchHistory.js.map +1 -1
  169. package/lib/module/components/User/WatchLater/WatchLater.js +30 -21
  170. package/lib/module/components/User/WatchLater/WatchLater.js.map +1 -1
  171. package/lib/module/components/User/components/UserAvatar.js +38 -19
  172. package/lib/module/components/User/components/UserAvatar.js.map +1 -1
  173. package/lib/module/components/User/components/UserSection.js +37 -17
  174. package/lib/module/components/User/components/UserSection.js.map +1 -1
  175. package/lib/module/components/View/View.js +7 -4
  176. package/lib/module/components/View/View.js.map +1 -1
  177. package/lib/module/components/index.js +1 -1
  178. package/lib/module/components/index.js.map +1 -1
  179. package/lib/module/hooks/index.js +17 -0
  180. package/lib/module/hooks/index.js.map +1 -0
  181. package/lib/module/hooks/useDebounce.js +25 -6
  182. package/lib/module/hooks/useDebounce.js.map +1 -1
  183. package/lib/module/hooks/useKeyboard.js +7 -4
  184. package/lib/module/hooks/useKeyboard.js.map +1 -1
  185. package/lib/module/hooks/useNavigationMode.js +10 -4
  186. package/lib/module/hooks/useNavigationMode.js.map +1 -1
  187. package/lib/module/hooks/usePaginatedSection.js +1 -1
  188. package/lib/module/hooks/usePaginatedSection.js.map +1 -1
  189. package/lib/module/hooks/usePrevious.js +30 -0
  190. package/lib/module/hooks/usePrevious.js.map +1 -0
  191. package/lib/module/hooks/useSafeCallback.js +33 -0
  192. package/lib/module/hooks/useSafeCallback.js.map +1 -0
  193. package/lib/module/hooks/useSkeletonItems.js +33 -0
  194. package/lib/module/hooks/useSkeletonItems.js.map +1 -0
  195. package/lib/module/hooks/useSplashCache.js +2 -1
  196. package/lib/module/hooks/useSplashCache.js.map +1 -1
  197. package/lib/module/hooks/useThemeColors.js +33 -0
  198. package/lib/module/hooks/useThemeColors.js.map +1 -0
  199. package/lib/module/theme/ThemeProvider.js +24 -15
  200. package/lib/module/theme/ThemeProvider.js.map +1 -1
  201. package/lib/module/theme/hook/useInternalTheme.js +18 -11
  202. package/lib/module/theme/hook/useInternalTheme.js.map +1 -1
  203. package/lib/module/theme/hook/useThemeStatusBar.js +10 -4
  204. package/lib/module/theme/hook/useThemeStatusBar.js.map +1 -1
  205. package/lib/module/theme/themes.js +3 -3
  206. package/lib/typescript/src/Styles/globalStyles.d.ts +0 -5
  207. package/lib/typescript/src/Styles/globalStyles.d.ts.map +1 -1
  208. package/lib/typescript/src/components/Auth/AuthProvider/AuthProvider.d.ts.map +1 -1
  209. package/lib/typescript/src/components/Auth/ForgotPassword/ForgotPassword.d.ts.map +1 -1
  210. package/lib/typescript/src/components/Auth/Login/LoginWithEmail.d.ts.map +1 -1
  211. package/lib/typescript/src/components/Auth/Login/LoginWithPhone.d.ts.map +1 -1
  212. package/lib/typescript/src/components/Auth/OTP/OTP.d.ts.map +1 -1
  213. package/lib/typescript/src/components/Auth/QrLogin/QrLogin.d.ts +0 -15
  214. package/lib/typescript/src/components/Auth/QrLogin/QrLogin.d.ts.map +1 -1
  215. package/lib/typescript/src/components/Auth/QrLogin/components/QrViewArea.d.ts +0 -1
  216. package/lib/typescript/src/components/Auth/QrLogin/components/QrViewArea.d.ts.map +1 -1
  217. package/lib/typescript/src/components/Auth/SignUp/SignUp.d.ts.map +1 -1
  218. package/lib/typescript/src/components/Auth/SplashScreen/SplashScreen.d.ts.map +1 -1
  219. package/lib/typescript/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.d.ts.map +1 -1
  220. package/lib/typescript/src/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.d.ts.map +1 -1
  221. package/lib/typescript/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.d.ts.map +1 -1
  222. package/lib/typescript/src/components/Auth/index.d.ts.map +1 -1
  223. package/lib/typescript/src/components/BackgroundLayout/BackgroundLayout.d.ts +1 -1
  224. package/lib/typescript/src/components/BackgroundLayout/BackgroundLayout.d.ts.map +1 -1
  225. package/lib/typescript/src/components/BlogView/BlogView.d.ts +2 -1
  226. package/lib/typescript/src/components/BlogView/BlogView.d.ts.map +1 -1
  227. package/lib/typescript/src/components/BottomSheet/BottomSheet.d.ts +18 -0
  228. package/lib/typescript/src/components/BottomSheet/BottomSheet.d.ts.map +1 -0
  229. package/lib/typescript/src/components/BottomSheet/index.d.ts +3 -0
  230. package/lib/typescript/src/components/BottomSheet/index.d.ts.map +1 -0
  231. package/lib/typescript/src/components/Button/BackBtn.d.ts +5 -3
  232. package/lib/typescript/src/components/Button/BackBtn.d.ts.map +1 -1
  233. package/lib/typescript/src/components/Button/PrimaryBtn.d.ts +2 -1
  234. package/lib/typescript/src/components/Button/PrimaryBtn.d.ts.map +1 -1
  235. package/lib/typescript/src/components/Button/SecondaryBtn.d.ts +2 -1
  236. package/lib/typescript/src/components/Button/SecondaryBtn.d.ts.map +1 -1
  237. package/lib/typescript/src/components/Button/TextButton.d.ts +2 -2
  238. package/lib/typescript/src/components/Button/TextButton.d.ts.map +1 -1
  239. package/lib/typescript/src/components/Button/index.d.ts +4 -2
  240. package/lib/typescript/src/components/Button/index.d.ts.map +1 -1
  241. package/lib/typescript/src/components/Content/Card/Category/Category.d.ts.map +1 -1
  242. package/lib/typescript/src/components/Content/Card/Sliders/Styles/One.d.ts.map +1 -1
  243. package/lib/typescript/src/components/Content/Card/Sliders/Styles/Two.d.ts.map +1 -1
  244. package/lib/typescript/src/components/Content/Card/Styles/RotateInOut.d.ts.map +1 -1
  245. package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts.map +1 -1
  246. package/lib/typescript/src/components/Content/Card/components/RentOrBuyIcon.d.ts +2 -2
  247. package/lib/typescript/src/components/Content/Card/components/RentOrBuyIcon.d.ts.map +1 -1
  248. package/lib/typescript/src/components/Content/Card/components/ThumbnailCard.d.ts +2 -0
  249. package/lib/typescript/src/components/Content/Card/components/ThumbnailCard.d.ts.map +1 -1
  250. package/lib/typescript/src/components/Content/Content.d.ts +2 -0
  251. package/lib/typescript/src/components/Content/Content.d.ts.map +1 -1
  252. package/lib/typescript/src/components/Content/Sections.d.ts +2 -2
  253. package/lib/typescript/src/components/Content/Sections.d.ts.map +1 -1
  254. package/lib/typescript/src/components/ContentView/ContentView.d.ts +6 -1
  255. package/lib/typescript/src/components/ContentView/ContentView.d.ts.map +1 -1
  256. package/lib/typescript/src/components/ContentView/MoreContentList.d.ts.map +1 -1
  257. package/lib/typescript/src/components/ContentView/components/AboutSection.d.ts +2 -1
  258. package/lib/typescript/src/components/ContentView/components/AboutSection.d.ts.map +1 -1
  259. package/lib/typescript/src/components/ContentView/components/CastCard.d.ts +6 -1
  260. package/lib/typescript/src/components/ContentView/components/CastCard.d.ts.map +1 -1
  261. package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts +2 -1
  262. package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts.map +1 -1
  263. package/lib/typescript/src/components/ContentView/components/GenreTags.d.ts +1 -1
  264. package/lib/typescript/src/components/ContentView/components/GenreTags.d.ts.map +1 -1
  265. package/lib/typescript/src/components/ContentView/components/HeroBanner.d.ts +2 -1
  266. package/lib/typescript/src/components/ContentView/components/HeroBanner.d.ts.map +1 -1
  267. package/lib/typescript/src/components/ContentView/components/MiniInfo.d.ts +1 -1
  268. package/lib/typescript/src/components/ContentView/components/MiniInfo.d.ts.map +1 -1
  269. package/lib/typescript/src/components/ContentView/components/PlayButton.d.ts +2 -1
  270. package/lib/typescript/src/components/ContentView/components/PlayButton.d.ts.map +1 -1
  271. package/lib/typescript/src/components/ContentView/components/Title.d.ts +1 -1
  272. package/lib/typescript/src/components/ContentView/components/Title.d.ts.map +1 -1
  273. package/lib/typescript/src/components/ContentView/components/TrailerButton.d.ts +2 -1
  274. package/lib/typescript/src/components/ContentView/components/TrailerButton.d.ts.map +1 -1
  275. package/lib/typescript/src/components/Fallbacks/NoContentFallback.d.ts +2 -1
  276. package/lib/typescript/src/components/Fallbacks/NoContentFallback.d.ts.map +1 -1
  277. package/lib/typescript/src/components/Fallbacks/NotFoundFallback.d.ts +1 -1
  278. package/lib/typescript/src/components/Fallbacks/NotFoundFallback.d.ts.map +1 -1
  279. package/lib/typescript/src/components/Headers/AppHeader.d.ts +2 -2
  280. package/lib/typescript/src/components/Headers/AppHeader.d.ts.map +1 -1
  281. package/lib/typescript/src/components/Headers/Three.d.ts +2 -2
  282. package/lib/typescript/src/components/Headers/Three.d.ts.map +1 -1
  283. package/lib/typescript/src/components/Headers/Two.d.ts +2 -2
  284. package/lib/typescript/src/components/Headers/Two.d.ts.map +1 -1
  285. package/lib/typescript/src/components/Headers/index.d.ts +2 -2
  286. package/lib/typescript/src/components/Input/Input.d.ts +1 -1
  287. package/lib/typescript/src/components/Input/InputOne.d.ts +2 -2
  288. package/lib/typescript/src/components/Input/InputOne.d.ts.map +1 -1
  289. package/lib/typescript/src/components/Loader/Loader.d.ts.map +1 -1
  290. package/lib/typescript/src/components/Logo/Logo.d.ts +2 -1
  291. package/lib/typescript/src/components/Logo/Logo.d.ts.map +1 -1
  292. package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/BottomControls.d.ts +14 -0
  293. package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/BottomControls.d.ts.map +1 -0
  294. package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.d.ts +60 -0
  295. package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.d.ts.map +1 -0
  296. package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/MiddleControls.d.ts +14 -0
  297. package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/MiddleControls.d.ts.map +1 -0
  298. package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/RightControls.d.ts +14 -0
  299. package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/RightControls.d.ts.map +1 -0
  300. package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/TopControls.d.ts +12 -0
  301. package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/TopControls.d.ts.map +1 -0
  302. package/lib/typescript/src/components/Reels/ReelsSeries/Model/DetailsModal.d.ts +16 -0
  303. package/lib/typescript/src/components/Reels/ReelsSeries/Model/DetailsModal.d.ts.map +1 -0
  304. package/lib/typescript/src/components/Reels/ReelsSeries/Model/SettingModal.d.ts +15 -0
  305. package/lib/typescript/src/components/Reels/ReelsSeries/Model/SettingModal.d.ts.map +1 -0
  306. package/lib/typescript/src/components/Reels/ReelsSeries/Model/UnlockModal.d.ts +14 -0
  307. package/lib/typescript/src/components/Reels/ReelsSeries/Model/UnlockModal.d.ts.map +1 -0
  308. package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeries.d.ts +8 -2
  309. package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeries.d.ts.map +1 -1
  310. package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeriesItem.d.ts +8 -2
  311. package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeriesItem.d.ts.map +1 -1
  312. package/lib/typescript/src/components/Reels/ReelsSeries/components/AnimatedThreeLines.d.ts +13 -0
  313. package/lib/typescript/src/components/Reels/ReelsSeries/components/AnimatedThreeLines.d.ts.map +1 -0
  314. package/lib/typescript/src/components/Reels/ReelsSeries/{Model → components}/Episodes.d.ts +3 -2
  315. package/lib/typescript/src/components/Reels/ReelsSeries/components/Episodes.d.ts.map +1 -0
  316. package/lib/typescript/src/components/Reels/ReelsSeries/components/GradientOverlay.d.ts +7 -0
  317. package/lib/typescript/src/components/Reels/ReelsSeries/components/GradientOverlay.d.ts.map +1 -0
  318. package/lib/typescript/src/components/Reels/ReelsSeries/components/Like.d.ts +7 -0
  319. package/lib/typescript/src/components/Reels/ReelsSeries/components/Like.d.ts.map +1 -0
  320. package/lib/typescript/src/components/Reels/ReelsSeries/components/RotatingLoader.d.ts +12 -0
  321. package/lib/typescript/src/components/Reels/ReelsSeries/components/RotatingLoader.d.ts.map +1 -0
  322. package/lib/typescript/src/components/Reels/ReelsSeries/components/Synopsis.d.ts +12 -0
  323. package/lib/typescript/src/components/Reels/ReelsSeries/components/Synopsis.d.ts.map +1 -0
  324. package/lib/typescript/src/components/Reels/ReelsSeries/components/VideoControls/QualityControl.d.ts +11 -0
  325. package/lib/typescript/src/components/Reels/ReelsSeries/components/VideoControls/QualityControl.d.ts.map +1 -0
  326. package/lib/typescript/src/components/Reels/ReelsSeries/components/VideoControls/SpeedControl.d.ts +10 -0
  327. package/lib/typescript/src/components/Reels/ReelsSeries/components/VideoControls/SpeedControl.d.ts.map +1 -0
  328. package/lib/typescript/src/components/Reels/ReelsSeries/components/VideoControls/index.d.ts +3 -0
  329. package/lib/typescript/src/components/Reels/ReelsSeries/components/VideoControls/index.d.ts.map +1 -0
  330. package/lib/typescript/src/components/Reels/ReelsSeries/types.d.ts +13 -0
  331. package/lib/typescript/src/components/Reels/ReelsSeries/types.d.ts.map +1 -1
  332. package/lib/typescript/src/components/Reels/utils/Controls/gestureUtils.d.ts +10 -0
  333. package/lib/typescript/src/components/Reels/utils/Controls/gestureUtils.d.ts.map +1 -0
  334. package/lib/typescript/src/components/Reels/utils/Controls/index.d.ts +5 -0
  335. package/lib/typescript/src/components/Reels/utils/Controls/index.d.ts.map +1 -0
  336. package/lib/typescript/src/components/Reels/utils/Controls/overlayUtils.d.ts +12 -0
  337. package/lib/typescript/src/components/Reels/utils/Controls/overlayUtils.d.ts.map +1 -0
  338. package/lib/typescript/src/components/Reels/utils/Controls/videoControlsConstants.d.ts +24 -0
  339. package/lib/typescript/src/components/Reels/utils/Controls/videoControlsConstants.d.ts.map +1 -0
  340. package/lib/typescript/src/components/Reels/utils/Controls/videoRef.d.ts +3 -0
  341. package/lib/typescript/src/components/Reels/utils/Controls/videoRef.d.ts.map +1 -0
  342. package/lib/typescript/src/components/Reels/utils/index.d.ts +2 -0
  343. package/lib/typescript/src/components/Reels/utils/index.d.ts.map +1 -0
  344. package/lib/typescript/src/components/Reels/utils/timeoutUtils.d.ts +14 -0
  345. package/lib/typescript/src/components/Reels/utils/timeoutUtils.d.ts.map +1 -0
  346. package/lib/typescript/src/components/Search/One.d.ts.map +1 -1
  347. package/lib/typescript/src/components/Search/components/SearchCard.d.ts +2 -5
  348. package/lib/typescript/src/components/Search/components/SearchCard.d.ts.map +1 -1
  349. package/lib/typescript/src/components/Search/index.d.ts +1 -1
  350. package/lib/typescript/src/components/Settings/AppSettings.d.ts +2 -2
  351. package/lib/typescript/src/components/Settings/AppSettings.d.ts.map +1 -1
  352. package/lib/typescript/src/components/Subscription/SubOne.d.ts.map +1 -1
  353. package/lib/typescript/src/components/Subscription/index.d.ts.map +1 -1
  354. package/lib/typescript/src/components/Text/Text.d.ts +2 -2
  355. package/lib/typescript/src/components/Text/Text.d.ts.map +1 -1
  356. package/lib/typescript/src/components/User/DeviceSessions/DeviceSessions.d.ts +1 -1
  357. package/lib/typescript/src/components/User/DeviceSessions/DeviceSessions.d.ts.map +1 -1
  358. package/lib/typescript/src/components/User/ProfileUpdate/ProfileUpdate.d.ts +1 -1
  359. package/lib/typescript/src/components/User/ProfileUpdate/ProfileUpdate.d.ts.map +1 -1
  360. package/lib/typescript/src/components/User/PurchaseHistory/PurchaseHistory.d.ts +1 -1
  361. package/lib/typescript/src/components/User/PurchaseHistory/PurchaseHistory.d.ts.map +1 -1
  362. package/lib/typescript/src/components/User/WatchHistory/WatchHistory.d.ts +1 -1
  363. package/lib/typescript/src/components/User/WatchHistory/WatchHistory.d.ts.map +1 -1
  364. package/lib/typescript/src/components/User/WatchLater/WatchLater.d.ts +1 -1
  365. package/lib/typescript/src/components/User/WatchLater/WatchLater.d.ts.map +1 -1
  366. package/lib/typescript/src/components/User/components/UserAvatar.d.ts +1 -1
  367. package/lib/typescript/src/components/User/components/UserAvatar.d.ts.map +1 -1
  368. package/lib/typescript/src/components/User/components/UserSection.d.ts +1 -1
  369. package/lib/typescript/src/components/User/components/UserSection.d.ts.map +1 -1
  370. package/lib/typescript/src/components/View/View.d.ts +2 -0
  371. package/lib/typescript/src/components/View/View.d.ts.map +1 -1
  372. package/lib/typescript/src/components/index.d.ts +1 -1
  373. package/lib/typescript/src/components/index.d.ts.map +1 -1
  374. package/lib/typescript/src/hooks/index.d.ts +14 -0
  375. package/lib/typescript/src/hooks/index.d.ts.map +1 -0
  376. package/lib/typescript/src/hooks/useDebounce.d.ts.map +1 -1
  377. package/lib/typescript/src/hooks/useKeyboard.d.ts.map +1 -1
  378. package/lib/typescript/src/hooks/useNavigationMode.d.ts.map +1 -1
  379. package/lib/typescript/src/hooks/usePrevious.d.ts +12 -0
  380. package/lib/typescript/src/hooks/usePrevious.d.ts.map +1 -0
  381. package/lib/typescript/src/hooks/useSafeCallback.d.ts +15 -0
  382. package/lib/typescript/src/hooks/useSafeCallback.d.ts.map +1 -0
  383. package/lib/typescript/src/hooks/useSkeletonItems.d.ts +11 -0
  384. package/lib/typescript/src/hooks/useSkeletonItems.d.ts.map +1 -0
  385. package/lib/typescript/src/hooks/useSplashCache.d.ts.map +1 -1
  386. package/lib/typescript/src/hooks/useThemeColors.d.ts +27 -0
  387. package/lib/typescript/src/hooks/useThemeColors.d.ts.map +1 -0
  388. package/lib/typescript/src/theme/ThemeProvider.d.ts.map +1 -1
  389. package/lib/typescript/src/theme/hook/useInternalTheme.d.ts.map +1 -1
  390. package/lib/typescript/src/theme/hook/useThemeStatusBar.d.ts.map +1 -1
  391. package/package.json +2 -2
  392. package/src/Styles/globalStyles.ts +0 -5
  393. package/src/components/Auth/AuthProvider/AuthProvider.tsx +288 -212
  394. package/src/components/Auth/ForgotPassword/ForgotPassword.tsx +11 -4
  395. package/src/components/Auth/Login/LoginWithEmail.tsx +266 -238
  396. package/src/components/Auth/Login/LoginWithPhone.tsx +18 -6
  397. package/src/components/Auth/OTP/OTP.tsx +21 -5
  398. package/src/components/Auth/QrLogin/QrLogin.tsx +225 -185
  399. package/src/components/Auth/QrLogin/components/QrViewArea.tsx +282 -166
  400. package/src/components/Auth/SignUp/SignUp.tsx +312 -293
  401. package/src/components/Auth/SplashScreen/SplashScreen.tsx +186 -131
  402. package/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.tsx +32 -15
  403. package/src/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.tsx +11 -5
  404. package/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.tsx +34 -18
  405. package/src/components/BackgroundLayout/BackgroundLayout.tsx +43 -37
  406. package/src/components/BlogView/BlogView.tsx +66 -30
  407. package/src/components/BottomSheet/BottomSheet.tsx +195 -0
  408. package/src/components/BottomSheet/index.ts +2 -0
  409. package/src/components/Button/BackBtn.tsx +87 -24
  410. package/src/components/Button/PrimaryBtn.tsx +42 -25
  411. package/src/components/Button/SecondaryBtn.tsx +41 -25
  412. package/src/components/Button/TextButton.tsx +54 -32
  413. package/src/components/Content/Card/Category/Category.tsx +94 -56
  414. package/src/components/Content/Card/Sliders/Styles/One.tsx +63 -47
  415. package/src/components/Content/Card/Sliders/Styles/Two.tsx +131 -51
  416. package/src/components/Content/Card/Styles/RotateInOut.tsx +7 -9
  417. package/src/components/Content/Card/components/CardPoster.tsx +136 -55
  418. package/src/components/Content/Card/components/RentOrBuyIcon.tsx +58 -38
  419. package/src/components/Content/Card/components/ThumbnailCard.tsx +122 -47
  420. package/src/components/Content/Content.tsx +164 -97
  421. package/src/components/Content/Sections.tsx +99 -43
  422. package/src/components/ContentView/ContentView.tsx +194 -128
  423. package/src/components/ContentView/MoreContentList.tsx +215 -151
  424. package/src/components/ContentView/components/AboutSection.tsx +132 -93
  425. package/src/components/ContentView/components/CastCard.tsx +148 -138
  426. package/src/components/ContentView/components/EpisodeCard.tsx +160 -155
  427. package/src/components/ContentView/components/GenreTags.tsx +68 -53
  428. package/src/components/ContentView/components/HeroBanner.tsx +326 -284
  429. package/src/components/ContentView/components/MiniInfo.tsx +181 -159
  430. package/src/components/ContentView/components/PlayButton.tsx +27 -16
  431. package/src/components/ContentView/components/Title.tsx +89 -72
  432. package/src/components/ContentView/components/TrailerButton.tsx +35 -22
  433. package/src/components/Fallbacks/NoContentFallback.tsx +107 -103
  434. package/src/components/Fallbacks/NotFoundFallback.tsx +12 -4
  435. package/src/components/Headers/AppHeader.tsx +42 -26
  436. package/src/components/Headers/Three.tsx +12 -8
  437. package/src/components/Headers/Two.tsx +31 -10
  438. package/src/components/Input/InputOne.tsx +136 -108
  439. package/src/components/Loader/Loader.tsx +2 -2
  440. package/src/components/Logo/Logo.tsx +43 -27
  441. package/src/components/Reels/ReelsSeries/MediaControls/BottomControls.tsx +156 -0
  442. package/src/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.tsx +234 -0
  443. package/src/components/Reels/ReelsSeries/MediaControls/MiddleControls.tsx +196 -0
  444. package/src/components/Reels/ReelsSeries/MediaControls/RightControls.tsx +92 -0
  445. package/src/components/Reels/ReelsSeries/MediaControls/TopControls.tsx +163 -0
  446. package/src/components/Reels/ReelsSeries/Model/DetailsModal.tsx +210 -0
  447. package/src/components/Reels/ReelsSeries/Model/SettingModal.tsx +143 -0
  448. package/src/components/Reels/ReelsSeries/Model/UnlockModal.tsx +154 -0
  449. package/src/components/Reels/ReelsSeries/ReelsSeries.tsx +142 -74
  450. package/src/components/Reels/ReelsSeries/ReelsSeriesItem.tsx +349 -250
  451. package/src/components/Reels/ReelsSeries/components/AnimatedThreeLines.tsx +184 -0
  452. package/src/components/Reels/ReelsSeries/{Model → components}/Episodes.tsx +54 -33
  453. package/src/components/Reels/ReelsSeries/components/GradientOverlay.tsx +41 -0
  454. package/src/components/Reels/ReelsSeries/components/Like.tsx +40 -0
  455. package/src/components/Reels/ReelsSeries/components/RotatingLoader.tsx +79 -0
  456. package/src/components/Reels/ReelsSeries/components/Synopsis.tsx +332 -0
  457. package/src/components/Reels/ReelsSeries/components/VideoControls/QualityControl.tsx +190 -0
  458. package/src/components/Reels/ReelsSeries/components/VideoControls/SpeedControl.tsx +80 -0
  459. package/src/components/Reels/ReelsSeries/components/VideoControls/index.ts +2 -0
  460. package/src/components/Reels/ReelsSeries/types.ts +13 -2
  461. package/src/components/Reels/utils/Controls/gestureUtils.ts +42 -0
  462. package/src/components/Reels/utils/Controls/index.ts +4 -0
  463. package/src/components/Reels/utils/Controls/overlayUtils.ts +35 -0
  464. package/src/components/Reels/utils/Controls/videoControlsConstants.ts +25 -0
  465. package/src/components/Reels/utils/Controls/videoRef.ts +4 -0
  466. package/src/components/Reels/utils/index.ts +1 -0
  467. package/src/components/Reels/utils/timeoutUtils.ts +29 -0
  468. package/src/components/Search/One.tsx +2 -4
  469. package/src/components/Search/components/SearchCard.tsx +19 -13
  470. package/src/components/Settings/AppSettings.tsx +217 -128
  471. package/src/components/Subscription/SubOne.tsx +394 -317
  472. package/src/components/Text/Text.tsx +33 -22
  473. package/src/components/User/DeviceSessions/DeviceSessions.tsx +129 -102
  474. package/src/components/User/ProfileUpdate/ProfileUpdate.tsx +36 -17
  475. package/src/components/User/PurchaseHistory/PurchaseHistory.tsx +194 -140
  476. package/src/components/User/WatchHistory/WatchHistory.tsx +63 -36
  477. package/src/components/User/WatchLater/WatchLater.tsx +119 -81
  478. package/src/components/User/components/UserAvatar.tsx +49 -15
  479. package/src/components/User/components/UserSection.tsx +71 -37
  480. package/src/components/View/View.tsx +10 -2
  481. package/src/components/index.ts +1 -1
  482. package/src/hooks/index.ts +14 -0
  483. package/src/hooks/useDebounce.ts +25 -6
  484. package/src/hooks/useKeyboard.ts +12 -5
  485. package/src/hooks/useNavigationMode.ts +16 -5
  486. package/src/hooks/usePaginatedSection.ts +1 -1
  487. package/src/hooks/usePrevious.ts +28 -0
  488. package/src/hooks/useSafeCallback.ts +43 -0
  489. package/src/hooks/useSkeletonItems.ts +30 -0
  490. package/src/hooks/useSplashCache.ts +2 -1
  491. package/src/hooks/useThemeColors.ts +51 -0
  492. package/src/theme/ThemeProvider.tsx +33 -11
  493. package/src/theme/hook/useInternalTheme.ts +19 -13
  494. package/src/theme/hook/useThemeStatusBar.ts +14 -5
  495. package/src/theme/themes.ts +3 -3
  496. package/lib/module/components/Reels/ReelsSeries/Model/Episodes.js.map +0 -1
  497. package/lib/module/components/Reels/ReelsSeries/Model/Synopsis.js +0 -212
  498. package/lib/module/components/Reels/ReelsSeries/Model/Synopsis.js.map +0 -1
  499. package/lib/module/components/Reels/ReelsSeries/ReelSeriesDetailsModal.js +0 -182
  500. package/lib/module/components/Reels/ReelsSeries/ReelSeriesDetailsModal.js.map +0 -1
  501. package/lib/module/components/Reels/ReelsSeries/ReelSeriesOverlay.js +0 -203
  502. package/lib/module/components/Reels/ReelsSeries/ReelSeriesOverlay.js.map +0 -1
  503. package/lib/typescript/src/components/Reels/ReelsSeries/Model/Episodes.d.ts.map +0 -1
  504. package/lib/typescript/src/components/Reels/ReelsSeries/Model/Synopsis.d.ts +0 -9
  505. package/lib/typescript/src/components/Reels/ReelsSeries/Model/Synopsis.d.ts.map +0 -1
  506. package/lib/typescript/src/components/Reels/ReelsSeries/ReelSeriesDetailsModal.d.ts +0 -13
  507. package/lib/typescript/src/components/Reels/ReelsSeries/ReelSeriesDetailsModal.d.ts.map +0 -1
  508. package/lib/typescript/src/components/Reels/ReelsSeries/ReelSeriesOverlay.d.ts +0 -18
  509. package/lib/typescript/src/components/Reels/ReelsSeries/ReelSeriesOverlay.d.ts.map +0 -1
  510. package/src/components/Reels/ReelsSeries/Model/Synopsis.tsx +0 -242
  511. package/src/components/Reels/ReelsSeries/ReelSeriesDetailsModal.tsx +0 -209
  512. package/src/components/Reels/ReelsSeries/ReelSeriesOverlay.tsx +0 -185
@@ -3,7 +3,7 @@
3
3
  * @lastModified Thu 06 Nov 2025 at 11:52 AM
4
4
  */
5
5
 
6
- import { useEffect, useState } from 'react';
6
+ import { useEffect, useState, useMemo } from 'react';
7
7
  import NavigationMode from 'react-native-navigation-mode';
8
8
 
9
9
  /**
@@ -16,20 +16,31 @@ export const useNavigationMode = () => {
16
16
  const [isThreeButtonNav, setIsThreeButtonNav] = useState(false);
17
17
 
18
18
  useEffect(() => {
19
+ let mounted = true;
20
+
19
21
  (async () => {
20
22
  try {
21
23
  const navMode = (await NavigationMode.getNavigationMode()) as any;
22
24
  const isThreeButton =
23
25
  navMode?.navigationMode === 'THREE_BUTTON' ||
24
26
  navMode?.mode === 'THREE_BUTTON';
25
- setIsThreeButtonNav(isThreeButton);
27
+ if (mounted) {
28
+ setIsThreeButtonNav(isThreeButton);
29
+ }
26
30
  } catch (err) {
27
31
  console.log('Navigation mode detect error:', err);
28
32
  }
29
33
  })();
34
+
35
+ return () => {
36
+ mounted = false;
37
+ };
30
38
  }, []);
31
39
 
32
- return {
33
- isGestureNav: !isThreeButtonNav,
34
- };
40
+ return useMemo(
41
+ () => ({
42
+ isGestureNav: !isThreeButtonNav,
43
+ }),
44
+ [isThreeButtonNav]
45
+ );
35
46
  };
@@ -26,7 +26,7 @@ export function usePaginatedSection<T>(
26
26
  if (!isLoading && initialData.length) {
27
27
  setData(initialData);
28
28
  }
29
- }, [isLoading, initialData]);
29
+ }, [isLoading, initialData.length, initialData]);
30
30
 
31
31
  const loadMoreData = useCallback(
32
32
  async (page: number | null) => {
@@ -0,0 +1,28 @@
1
+ /**
2
+ * @author Naresh Dhamu
3
+ * @lastModified Optimized for performance
4
+ */
5
+
6
+ import { useRef } from 'react';
7
+
8
+ /**
9
+ * Hook to get the previous value of a prop or state
10
+ * Optimized to avoid useEffect overhead
11
+ * @param value - The value to track
12
+ * @returns The previous value
13
+ */
14
+ export function usePrevious<T>(value: T): T | undefined {
15
+ const ref = useRef<{ value: T; previous: T | undefined }>({
16
+ value,
17
+ previous: undefined,
18
+ });
19
+
20
+ // Update ref synchronously during render
21
+ const current = ref.current;
22
+ if (current.value !== value) {
23
+ current.previous = current.value;
24
+ current.value = value;
25
+ }
26
+
27
+ return current.previous;
28
+ }
@@ -0,0 +1,43 @@
1
+ /**
2
+ * @author Naresh Dhamu
3
+ * @lastModified Optimized for performance
4
+ */
5
+
6
+ import { useCallback } from 'react';
7
+ import type { GestureResponderEvent } from 'react-native';
8
+
9
+ /**
10
+ * Creates a safe callback that checks if the function exists before calling
11
+ * Prevents unnecessary re-renders by memoizing the callback
12
+ */
13
+ export function useSafeCallback<T extends (...args: any[]) => any>(
14
+ callback: T | undefined,
15
+ deps: React.DependencyList = []
16
+ ): T {
17
+ return useCallback(
18
+ (...args: Parameters<T>) => {
19
+ callback?.(...args);
20
+ },
21
+ // eslint-disable-next-line react-hooks/exhaustive-deps
22
+ [callback, ...deps]
23
+ ) as T;
24
+ }
25
+
26
+ /**
27
+ * Creates a safe press handler that checks disabled state
28
+ */
29
+ export function useSafePressHandler(
30
+ onPress: ((event: GestureResponderEvent) => void) | undefined,
31
+ disabled: boolean = false,
32
+ deps: React.DependencyList = []
33
+ ) {
34
+ return useCallback(
35
+ (event: GestureResponderEvent) => {
36
+ if (!disabled && onPress) {
37
+ onPress(event);
38
+ }
39
+ },
40
+ // eslint-disable-next-line react-hooks/exhaustive-deps
41
+ [disabled, onPress, ...deps]
42
+ );
43
+ }
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @author Naresh Dhamu
3
+ * @lastModified Optimized for performance
4
+ */
5
+
6
+ import { useMemo, useRef } from 'react';
7
+
8
+ /**
9
+ * Hook to create skeleton items array
10
+ * Memoized to prevent unnecessary recreations
11
+ * Generator function is stored in ref to avoid dependency issues
12
+ */
13
+ export function useSkeletonItems<T = any>(
14
+ count: number,
15
+ generator?: (index: number) => T
16
+ ): T[] {
17
+ const generatorRef = useRef(generator);
18
+ generatorRef.current = generator;
19
+
20
+ return useMemo(() => {
21
+ if (count <= 0) return [];
22
+ if (generatorRef.current) {
23
+ return Array.from({ length: count }, (_, i) => generatorRef.current!(i));
24
+ }
25
+ return Array.from({ length: count }, (_, i) => ({
26
+ _id: `skeleton-${i}`,
27
+ isSkeleton: true,
28
+ })) as T[];
29
+ }, [count]);
30
+ }
@@ -150,7 +150,8 @@ export const useSplashCache = ({
150
150
  return () => {
151
151
  mounted = false;
152
152
  };
153
- }, [logoUrl, backgroundUrl, forceDownload, setLogo, setBackground]);
153
+ // eslint-disable-next-line react-hooks/exhaustive-deps
154
+ }, [logoUrl, backgroundUrl, forceDownload]);
154
155
 
155
156
  const logoPath = useSplashStore((s) => s.logo.localPath);
156
157
  const bgPath = useSplashStore((s) => s.backdrop.localPath);
@@ -0,0 +1,51 @@
1
+ /**
2
+ * @author Naresh Dhamu
3
+ * @lastModified Optimized for performance
4
+ */
5
+
6
+ import { useMemo } from 'react';
7
+ import type { ITheme } from '../theme/themes';
8
+
9
+ /**
10
+ * Hook to extract and memoize theme colors
11
+ * Reduces repeated color extraction patterns
12
+ */
13
+ export function useThemeColors(theme: ITheme) {
14
+ const colors = theme.colors;
15
+ return useMemo(
16
+ () => ({
17
+ textPrimary: colors.textPrimary,
18
+ textSecondary: colors.textSecondary,
19
+ background: colors.background,
20
+ surface: colors.surface,
21
+ surfaceVariant: colors.surfaceVariant,
22
+ primary: colors.primary,
23
+ error: colors.error,
24
+ errorContainer: colors.errorContainer,
25
+ skeletonBaseColor: colors.skeletonBaseColor,
26
+ skeletonHighlightColor: colors.skeletonHighlightColor,
27
+ border: colors.border,
28
+ onBackground: colors.onBackground,
29
+ onPrimary: colors.onPrimary,
30
+ onSurface: colors.onSurface,
31
+ outline: colors.outline,
32
+ }),
33
+ [
34
+ colors.textPrimary,
35
+ colors.textSecondary,
36
+ colors.background,
37
+ colors.surface,
38
+ colors.surfaceVariant,
39
+ colors.primary,
40
+ colors.error,
41
+ colors.errorContainer,
42
+ colors.skeletonBaseColor,
43
+ colors.skeletonHighlightColor,
44
+ colors.border,
45
+ colors.onBackground,
46
+ colors.onPrimary,
47
+ colors.onSurface,
48
+ colors.outline,
49
+ ]
50
+ );
51
+ }
@@ -3,8 +3,13 @@
3
3
  * @lastModified Wed 22 Oct 2025 at 11:29 AM
4
4
  */
5
5
 
6
- import React, { createContext, useContext, type ReactNode } from 'react';
7
- import { View } from 'react-native';
6
+ import React, {
7
+ createContext,
8
+ useContext,
9
+ useMemo,
10
+ type ReactNode,
11
+ } from 'react';
12
+ import { StyleSheet, View } from 'react-native';
8
13
  import {
9
14
  SafeAreaProvider,
10
15
  initialWindowMetrics,
@@ -58,20 +63,37 @@ export const ZezoUIProvider: React.FC<ZezoUIProviderProps> = ({
58
63
  themeFull,
59
64
  } = useInternalTheme(overrideTheme, isDark);
60
65
 
66
+ // Memoize context value to prevent unnecessary re-renders
67
+ const contextValue = useMemo(
68
+ () => ({
69
+ theme: themeFull,
70
+ isDarkMode,
71
+ setTheme,
72
+ finalTheme,
73
+ }),
74
+ [themeFull, isDarkMode, setTheme, finalTheme]
75
+ );
76
+
77
+ // Memoize container style
78
+ const containerStyle = useMemo(
79
+ () => ({ flex: 1, backgroundColor: finalTheme.colors.background }),
80
+ [finalTheme.colors.background]
81
+ );
82
+
61
83
  return (
62
- <GestureHandlerRootView style={{ flex: 1 }}>
84
+ <GestureHandlerRootView style={styles.container}>
63
85
  <SafeAreaProvider initialMetrics={initialWindowMetrics}>
64
- <ThemeContext.Provider
65
- value={{ theme: themeFull, isDarkMode, setTheme, finalTheme }}
66
- >
86
+ <ThemeContext.Provider value={contextValue}>
67
87
  <AppStatusBar theme={overrideTheme} />
68
- <View
69
- style={{ flex: 1, backgroundColor: finalTheme.colors.background }}
70
- >
71
- {children}
72
- </View>
88
+ <View style={containerStyle}>{children}</View>
73
89
  </ThemeContext.Provider>
74
90
  </SafeAreaProvider>
75
91
  </GestureHandlerRootView>
76
92
  );
77
93
  };
94
+
95
+ const styles = StyleSheet.create({
96
+ container: {
97
+ flex: 1,
98
+ },
99
+ });
@@ -1,10 +1,9 @@
1
- /* eslint-disable react-hooks/exhaustive-deps */
2
1
  /**
3
2
  * @author Naresh Dhamu
4
3
  * @lastModified Fri 24 Oct 2025 at 10:45 AM
5
4
  */
6
5
 
7
- import React from 'react';
6
+ import { useMemo, useEffect } from 'react';
8
7
  import {
9
8
  DarkTheme,
10
9
  LightTheme,
@@ -28,13 +27,13 @@ export const useInternalTheme = (
28
27
 
29
28
  const isDarkMode = isDark ?? storeDarkMode;
30
29
 
31
- React.useEffect(() => {
30
+ useEffect(() => {
32
31
  if (isDark !== undefined) {
33
32
  setTheme(isDark ? 'dark' : 'light');
34
33
  }
35
34
  }, [isDark, setTheme]);
36
35
 
37
- React.useEffect(() => {
36
+ useEffect(() => {
38
37
  if (themeMode !== 'system') return;
39
38
  const subscription = Appearance.addChangeListener(({ colorScheme }) => {
40
39
  if (colorScheme === 'dark' || colorScheme === 'light') {
@@ -43,16 +42,22 @@ export const useInternalTheme = (
43
42
  });
44
43
 
45
44
  return () => subscription.remove();
46
- }, []);
45
+ }, [themeMode, setIsDarkMode]);
47
46
 
48
- const overrideColors = React.useMemo(
49
- () => (isDarkMode ? (override?.dark ?? {}) : (override?.light ?? {})),
50
- [override, isDarkMode]
47
+ // Memoize base theme selection
48
+ const baseTheme = useMemo(
49
+ () => (isDarkMode ? DarkTheme : LightTheme),
50
+ [isDarkMode]
51
51
  );
52
52
 
53
- const baseTheme = isDarkMode ? DarkTheme : LightTheme;
53
+ // Memoize override colors
54
+ const overrideColors = useMemo(
55
+ () => (isDarkMode ? (override?.dark ?? {}) : (override?.light ?? {})),
56
+ [override?.dark, override?.light, isDarkMode]
57
+ );
54
58
 
55
- const finalTheme = React.useMemo<ITheme>(
59
+ // Memoize final theme with proper dependencies
60
+ const finalTheme = useMemo<ITheme>(
56
61
  () => ({
57
62
  ...baseTheme,
58
63
  colors: {
@@ -63,15 +68,16 @@ export const useInternalTheme = (
63
68
  [baseTheme, overrideColors]
64
69
  );
65
70
 
66
- const themeFull = React.useMemo(
71
+ // Memoize themeFull with proper dependencies
72
+ const themeFull = useMemo(
67
73
  () => ({
68
74
  light: (override?.light as ITheme['colors']) ?? LightTheme.colors,
69
75
  dark: (override?.dark as ITheme['colors']) ?? DarkTheme.colors,
70
76
  }),
71
- [override]
77
+ [override?.light, override?.dark]
72
78
  );
73
79
 
74
- return React.useMemo(
80
+ return useMemo(
75
81
  () => ({
76
82
  theme: finalTheme,
77
83
  isDarkMode,
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * Automatically syncs StatusBar color & style with current theme.
7
7
  */
8
- import { useEffect } from 'react';
8
+ import { useEffect, useMemo } from 'react';
9
9
  import { StatusBar, Platform, type StatusBarStyle } from 'react-native';
10
10
  import Color from 'color';
11
11
  import type { ITheme } from '../themes';
@@ -21,13 +21,22 @@ export const useThemeStatusBar = ({
21
21
  backgroundColor,
22
22
  barStyle,
23
23
  }: UseThemeStatusBarOptions) => {
24
+ // Memoize background color
25
+ const bgColor = useMemo(
26
+ () => backgroundColor ?? theme.colors.background,
27
+ [backgroundColor, theme.colors.background]
28
+ );
29
+
30
+ // Memoize content style calculation
31
+ const contentStyle = useMemo<StatusBarStyle>(() => {
32
+ if (barStyle) return barStyle;
33
+ return Color(bgColor).isDark() ? 'light-content' : 'dark-content';
34
+ }, [barStyle, bgColor]);
35
+
24
36
  useEffect(() => {
25
- const bgColor = backgroundColor ?? theme.colors.background;
26
- const contentStyle: StatusBarStyle =
27
- barStyle ?? (Color(bgColor).isDark() ? 'light-content' : 'dark-content');
28
37
  StatusBar.setBarStyle(contentStyle, true);
29
38
  if (Platform.OS === 'android') {
30
39
  StatusBar.setBackgroundColor(bgColor, true);
31
40
  }
32
- }, [theme, backgroundColor, barStyle]);
41
+ }, [bgColor, contentStyle]);
33
42
  };
@@ -277,9 +277,9 @@ export const DarkTheme: ITheme = {
277
277
 
278
278
  elevation: {
279
279
  level0: 'transparent',
280
- level1: 'rgba(30, 41, 59, 1)',
281
- level2: 'rgba(37, 44, 60, 1)',
282
- level3: 'rgba(51, 65, 85, 1)',
280
+ level1: 'rgba(34, 34, 34, 1)',
281
+ level2: 'rgba(60, 60, 60, 1)',
282
+ level3: 'rgba(76, 76, 76, 1)',
283
283
  level4: 'rgba(71, 85, 105, 1)',
284
284
  level5: 'rgba(100, 116, 139, 1)',
285
285
  },
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","View","Text","FlatList","StyleSheet","Dimensions","TouchableOpacity","Lock","ChartNoAxesColumnIncreasing","moderateScale","verticalScale","RFValue","jsx","_jsx","jsxs","_jsxs","height","width","get","NUM_COLUMNS","Episodes","data","currentReel","onEpisodeSelect","totalReels","totalBoxes","Math","max","episodes","length","EpisodeData","Array","from","_","i","renderItem","item","isAvailable","isActive","onPress","activeOpacity","children","style","styles","box","backgroundColor","number","color","lockContainer","size","activeIcon","numColumns","keyExtractor","contentContainerStyle","paddingBottom","showsVerticalScrollIndicator","scrollEnabled","removeClippedSubviews","windowSize","initialNumToRender","nestedScrollEnabled","create","borderRadius","justifyContent","alignItems","marginVertical","marginHorizontal","position","fontSize","fontWeight","top","right","borderTopLeftRadius","borderBottomRightRadius","bottom","left"],"sourceRoot":"../../../../../../src","sources":["components/Reels/ReelsSeries/Model/Episodes.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,IAAI,EACJC,IAAI,EACJC,QAAQ,EACRC,UAAU,EACVC,UAAU,EACVC,gBAAgB,QACX,cAAc;AACrB,SAASC,IAAI,EAAEC,2BAA2B,QAAQ,qBAAqB;AACvE,SAASC,aAAa,EAAEC,aAAa,QAAQ,2BAA2B;AACxE,SAASC,OAAO,QAAQ,kCAAkC;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAG3D,MAAM;EAAEC,MAAM;EAAEC;AAAM,CAAC,GAAGZ,UAAU,CAACa,GAAG,CAAC,QAAQ,CAAC;AAClD,MAAMC,WAAW,GAAG,CAAC;AAUrB,MAAMC,QAAiC,GAAGA,CAAC;EACzCC,IAAI;EACJC,WAAW;EACXC,eAAe;EACfC,UAAU,GAAG;AACf,CAAC,KAAK;EACJ,MAAMC,UAAU,GAAGC,IAAI,CAACC,GAAG,CAACN,IAAI,CAACO,QAAQ,EAAEC,MAAM,IAAI,CAAC,EAAEL,UAAU,CAAC;EACnE,MAAMM,WAAW,GAAGC,KAAK,CAACC,IAAI,CAAC;IAAEH,MAAM,EAAEJ;EAAW,CAAC,EAAE,CAACQ,CAAC,EAAEC,CAAC,KAAKA,CAAC,GAAG,CAAC,CAAC;EAEvE,MAAMC,UAAU,GAAGA,CAAC;IAAEC;EAAuB,CAAC,KAAK;IACjD,MAAMC,WAAW,GAAGD,IAAI,KAAKf,IAAI,CAACO,QAAQ,C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Ac,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd,CAAC;EACDd,UAAU,EAAE;IACViB,QAAQ,EAAE,UAAU;IACpBO,MAAM,EAAEhE,aAAa,CAAC,CAAC,CAAC;IACxBiE,IAAI,EAAElE,aAAa,CAAC,CAAC;EACvB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1,212 +0,0 @@
1
- "use strict";
2
-
3
- import React, { useCallback } from 'react';
4
- import { Text, View, Image, StyleSheet, TouchableOpacity, Dimensions, FlatList } from 'react-native';
5
- import { RFValue } from 'react-native-responsive-fontsize';
6
- import { moderateScale, scale, verticalScale } from 'react-native-size-matters';
7
- import Svg, { Path, Defs, LinearGradient, Stop } from 'react-native-svg';
8
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
- const {
10
- width: SCREEN_WIDTH
11
- } = Dimensions.get('window');
12
- const GAP = moderateScale(10);
13
- const likeMoreData = [{
14
- id: 1,
15
- name: 'Housefull 5',
16
- thumbnail: 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTZFKczA4mK0DoFSiKN75aAtWdhm_AZvCWGkwPl2StUpOQYq6_b'
17
- }, {
18
- id: 2,
19
- name: 'Sample Episode',
20
- thumbnail: 'https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcTfRd3dwJUToDAbEB4afBWcic5_HCwbKbn-B7-ZgF7niTa-MTIt'
21
- }, {
22
- id: 3,
23
- name: 'Tees Maar Khan',
24
- thumbnail: 'https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcSwz8vklTTg8YdCqRHg9aauHq9BgpVgxLUvldi-Doz_Eh7ZIiVl'
25
- }, {
26
- id: 4,
27
- name: 'Aap Jaisa Koi',
28
- thumbnail: 'https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcQujccf3ymM7lkv83Y6TkS5BkcLYJLTu2d3rJQYxh6cGqwx8AuR'
29
- }, {
30
- id: 5,
31
- name: 'Kaalidhar Laapata',
32
- thumbnail: 'https://upload.wikimedia.org/wikipedia/en/b/bd/Kaalidhar_Laapata.jpg'
33
- }, {
34
- id: 6,
35
- name: 'Aankhon Ki Gustaakhiyan',
36
- thumbnail: 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSLqG-A_lUucNT4TOcY1u42ujHyPbwuJvRLbO4zjNS8iuzNQ_6X'
37
- }];
38
- const Synopsis = ({
39
- data
40
- }) => {
41
- // responsive columns
42
- const numColumns = SCREEN_WIDTH >= 420 ? 4 : 3;
43
- const keyExtractor = useCallback(item => item.id.toString(), []);
44
- const renderItem = useCallback(({
45
- item
46
- }) => /*#__PURE__*/_jsxs(TouchableOpacity, {
47
- style: [styles.card],
48
- activeOpacity: 0.8,
49
- children: [/*#__PURE__*/_jsx(Image, {
50
- source: {
51
- uri: item.thumbnail || 'https://via.placeholder.com/300x400?text=Episode'
52
- },
53
- style: styles.thumbnail,
54
- resizeMode: "cover"
55
- }), /*#__PURE__*/_jsx(Text, {
56
- style: [styles.title, {
57
- color: '#fff',
58
- width: scale(90)
59
- }],
60
- numberOfLines: 2,
61
- children: item.name || 'Untitled'
62
- })]
63
- }), []);
64
- return /*#__PURE__*/_jsxs(View, {
65
- style: styles.container,
66
- children: [/*#__PURE__*/_jsx(Text, {
67
- style: {
68
- color: 'rgba(255,255,255,1)',
69
- fontSize: RFValue(10),
70
- lineHeight: RFValue(14),
71
- marginBottom: verticalScale(12)
72
- },
73
- children: data.description || 'No synopsis available for this reel. Please check back later.'
74
- }), /*#__PURE__*/_jsxs(View, {
75
- style: styles.header,
76
- children: [/*#__PURE__*/_jsxs(Svg, {
77
- width: 22,
78
- height: 2,
79
- viewBox: "0 0 22 2",
80
- fill: "none",
81
- children: [/*#__PURE__*/_jsx(Path, {
82
- d: "M21.692 1.196H.594",
83
- stroke: "url(#a)",
84
- strokeWidth: 1.005
85
- }), /*#__PURE__*/_jsx(Defs, {
86
- children: /*#__PURE__*/_jsxs(LinearGradient, {
87
- id: "a",
88
- x1: 0.594,
89
- y1: 1.696,
90
- x2: 21.692,
91
- y2: 1.696,
92
- gradientUnits: "userSpaceOnUse",
93
- children: [/*#__PURE__*/_jsx(Stop, {
94
- stopOpacity: 0
95
- }), /*#__PURE__*/_jsx(Stop, {
96
- offset: 1,
97
- stopColor: "#fff"
98
- })]
99
- })
100
- })]
101
- }), /*#__PURE__*/_jsx(Text, {
102
- style: {
103
- color: '#fff',
104
- fontSize: 12,
105
- textAlign: 'center',
106
- marginHorizontal: scale(8)
107
- },
108
- children: "More Like This"
109
- }), /*#__PURE__*/_jsxs(Svg, {
110
- width: 22,
111
- height: 2,
112
- viewBox: "0 0 22 2",
113
- fill: "none",
114
- children: [/*#__PURE__*/_jsx(Path, {
115
- d: "M.312 1.196H21.41",
116
- stroke: "url(#paint0_linear_797_3114)",
117
- strokeWidth: 1.00467
118
- }), /*#__PURE__*/_jsx(Defs, {
119
- children: /*#__PURE__*/_jsxs(LinearGradient, {
120
- id: "paint0_linear_797_3114",
121
- x1: 21.4102,
122
- y1: 1.69629,
123
- x2: 0.312025,
124
- y2: 1.69629,
125
- gradientUnits: "userSpaceOnUse",
126
- children: [/*#__PURE__*/_jsx(Stop, {
127
- stopOpacity: 0
128
- }), /*#__PURE__*/_jsx(Stop, {
129
- offset: 1,
130
- stopColor: "#fff"
131
- })]
132
- })
133
- })]
134
- })]
135
- }), likeMoreData.length === 0 ? /*#__PURE__*/_jsx(Text, {
136
- style: styles.noEpisodesText,
137
- children: "No recommendations available."
138
- }) : /*#__PURE__*/_jsx(FlatList, {
139
- data: likeMoreData,
140
- keyExtractor: keyExtractor,
141
- renderItem: renderItem,
142
- numColumns: numColumns,
143
- columnWrapperStyle: {
144
- justifyContent: 'space-between',
145
- marginBottom: GAP
146
- },
147
- showsVerticalScrollIndicator: false,
148
- contentContainerStyle: {
149
- paddingBottom: verticalScale(16)
150
- },
151
- removeClippedSubviews: false // Disable to prevent recycling issues
152
- ,
153
- nestedScrollEnabled: true // Allows scroll inside modal
154
- ,
155
- getItemLayout: (_data, index) => ({
156
- length: verticalScale(120) + verticalScale(6) + verticalScale(20),
157
- // thumbnail + margin + text
158
- offset: (verticalScale(120) + verticalScale(6) + verticalScale(20)) * Math.floor(index / numColumns),
159
- index
160
- }),
161
- initialNumToRender: 6,
162
- maxToRenderPerBatch: 6,
163
- windowSize: 5,
164
- disableVirtualization: false
165
- })]
166
- });
167
- };
168
- export default Synopsis;
169
- const styles = StyleSheet.create({
170
- container: {
171
- flex: 1
172
- },
173
- header: {
174
- flexDirection: 'row',
175
- alignItems: 'center',
176
- justifyContent: 'center',
177
- marginBottom: verticalScale(12)
178
- },
179
- headerLine: {
180
- height: verticalScale(1.5),
181
- width: moderateScale(50),
182
- marginHorizontal: moderateScale(8),
183
- borderRadius: 999
184
- },
185
- headerLabel: {
186
- fontSize: RFValue(12),
187
- textAlign: 'center'
188
- },
189
- card: {
190
- // alignItems: 'center',
191
- },
192
- thumbnail: {
193
- width: '100%',
194
- height: verticalScale(120),
195
- borderRadius: moderateScale(8),
196
- marginBottom: verticalScale(6),
197
- backgroundColor: 'rgba(255,255,255,0.06)',
198
- aspectRatio: 3 / 4
199
- },
200
- title: {
201
- fontSize: RFValue(10)
202
- // textAlign: 'center',
203
- },
204
- noEpisodesText: {
205
- color: 'rgba(180,180,180,1)',
206
- fontSize: RFValue(13),
207
- textAlign: 'center',
208
- marginTop: verticalScale(8),
209
- marginBottom: verticalScale(12)
210
- }
211
- });
212
- //# sourceMappingURL=Synopsis.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","useCallback","Text","View","Image","StyleSheet","TouchableOpacity","Dimensions","FlatList","RFValue","moderateScale","scale","verticalScale","Svg","Path","Defs","LinearGradient","Stop","jsx","_jsx","jsxs","_jsxs","width","SCREEN_WIDTH","get","GAP","likeMoreData","id","name","thumbnail","Synopsis","data","numColumns","keyExtractor","item","toString","renderItem","style","styles","card","activeOpacity","children","source","uri","resizeMode","title","color","numberOfLines","container","fontSize","lineHeight","marginBottom","description","header","height","viewBox","fill","d","stroke","strokeWidth","x1","y1","x2","y2","gradientUnits","stopOpacity","offset","stopColor","textAlign","marginHorizontal","length","noEpisodesText","columnWrapperStyle","justifyContent","showsVerticalScrollIndicator","contentContainerStyle","paddingBottom","removeClippedSubviews","nestedScrollEnabled","getItemLayout","_data","index","Math","floor","initialNumToRender","maxToRenderPerBatch","windowSize","disableVirtualization","create","flex","flexDirection","alignItems","headerLine","borderRadius","headerLabel","backgroundColor","aspectRatio","marginTop"],"sourceRoot":"../../../../../../src","sources":["components/Reels/ReelsSeries/Model/Synopsis.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,WAAW,QAAQ,OAAO;AAC1C,SACEC,IAAI,EACJC,IAAI,EACJC,KAAK,EACLC,UAAU,EACVC,gBAAgB,EAChBC,UAAU,EACVC,QAAQ,QACH,cAAc;AACrB,SAASC,OAAO,QAAQ,kCAAkC;AAC1D,SAASC,aAAa,EAAEC,KAAK,EAAEC,aAAa,QAAQ,2BAA2B;AAE/E,OAAOC,GAAG,IAAIC,IAAI,EAAEC,IAAI,EAAEC,cAAc,EAAEC,IAAI,QAAQ,kBAAkB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEzE,MAAM;EAAEC,KAAK,EAAEC;AAAa,CAAC,GAAGhB,UAAU,CAACiB,GAAG,CAAC,QAAQ,CAAC;AACxD,MAAMC,GAAG,GAAGf,aAAa,CAAC,EAAE,CAAC;AAa7B,MAAMgB,YAAkC,GAAG,CACzC;EACEC,EAAE,EAAE,CAAC;EACLC,IAAI,EAAE,aAAa;EACnBC,SAAS,EACP;AACJ,CAAC,EACD;EACEF,EAAE,EAAE,CAAC;EACLC,IAAI,EAAE,gBAAgB;EACtBC,SAAS,EACP;AACJ,CAAC,EACD;EACEF,EAAE,EAAE,CAAC;EACLC,IAAI,EAAE,gBAAgB;EACtBC,SAAS,EACP;AACJ,CAAC,EACD;EACEF,EAAE,EAAE,CAAC;EACLC,IAAI,EAAE,e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