@zezosoft/zezo-ott-react-native-ui-kit 1.0.9 → 1.1.1

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 (304) hide show
  1. package/lib/module/components/BottomSheet/BottomSheet.js +152 -0
  2. package/lib/module/components/BottomSheet/BottomSheet.js.map +1 -0
  3. package/lib/module/components/BottomSheet/index.js +4 -0
  4. package/lib/module/components/BottomSheet/index.js.map +1 -0
  5. package/lib/module/components/Button/BackBtn.js +28 -2
  6. package/lib/module/components/Button/BackBtn.js.map +1 -1
  7. package/lib/module/components/Content/Card/NowWatching/NowWatching.js.map +1 -1
  8. package/lib/module/components/Content/Card/Sliders/Styles/One.js.map +1 -1
  9. package/lib/module/components/Content/Card/Sliders/Styles/Two.js.map +1 -1
  10. package/lib/module/components/Content/Card/Styles/Five.js.map +1 -1
  11. package/lib/module/components/Content/Card/Styles/Four.js +1 -2
  12. package/lib/module/components/Content/Card/Styles/Four.js.map +1 -1
  13. package/lib/module/components/Content/Card/Styles/One.js +1 -2
  14. package/lib/module/components/Content/Card/Styles/One.js.map +1 -1
  15. package/lib/module/components/Content/Card/Styles/RotateInOut.js.map +1 -1
  16. package/lib/module/components/Content/Card/Styles/Six.js.map +1 -1
  17. package/lib/module/components/Content/Card/Styles/Three.js.map +1 -1
  18. package/lib/module/components/Content/Card/Styles/TopTen.js.map +1 -1
  19. package/lib/module/components/Content/Card/Styles/Two.js +1 -2
  20. package/lib/module/components/Content/Card/Styles/Two.js.map +1 -1
  21. package/lib/module/components/Content/Card/components/CardPoster.js.map +1 -1
  22. package/lib/module/components/Content/Content.js.map +1 -1
  23. package/lib/module/components/Content/Sections.js.map +1 -1
  24. package/lib/module/components/ContentView/MoreContentList.js.map +1 -1
  25. package/lib/module/components/ContentView/components/CastCard.js +2 -1
  26. package/lib/module/components/ContentView/components/CastCard.js.map +1 -1
  27. package/lib/module/components/ContentView/components/EpisodeCard.js +3 -3
  28. package/lib/module/components/ContentView/components/EpisodeCard.js.map +1 -1
  29. package/lib/module/components/ContentView/components/GenreTags.js.map +1 -1
  30. package/lib/module/components/ContentView/components/MiniInfo.js.map +1 -1
  31. package/lib/module/components/ContentView/components/Title.js.map +1 -1
  32. package/lib/module/components/Reels/ReelsSeries/MediaControls/BottomControls.js +134 -0
  33. package/lib/module/components/Reels/ReelsSeries/MediaControls/BottomControls.js.map +1 -0
  34. package/lib/module/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.js +154 -0
  35. package/lib/module/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.js.map +1 -0
  36. package/lib/module/components/Reels/ReelsSeries/MediaControls/MiddleControls.js +173 -0
  37. package/lib/module/components/Reels/ReelsSeries/MediaControls/MiddleControls.js.map +1 -0
  38. package/lib/module/components/Reels/ReelsSeries/MediaControls/RightControls.js +77 -0
  39. package/lib/module/components/Reels/ReelsSeries/MediaControls/RightControls.js.map +1 -0
  40. package/lib/module/components/Reels/ReelsSeries/MediaControls/TopControls.js +132 -0
  41. package/lib/module/components/Reels/ReelsSeries/MediaControls/TopControls.js.map +1 -0
  42. package/lib/module/components/Reels/ReelsSeries/Model/DetailsModal.js +165 -0
  43. package/lib/module/components/Reels/ReelsSeries/Model/DetailsModal.js.map +1 -0
  44. package/lib/module/components/Reels/ReelsSeries/Model/SettingModal.js +106 -0
  45. package/lib/module/components/Reels/ReelsSeries/Model/SettingModal.js.map +1 -0
  46. package/lib/module/components/Reels/ReelsSeries/Model/UnlockModal.js +124 -0
  47. package/lib/module/components/Reels/ReelsSeries/Model/UnlockModal.js.map +1 -0
  48. package/lib/module/components/Reels/ReelsSeries/ReelsSeries.js +102 -64
  49. package/lib/module/components/Reels/ReelsSeries/ReelsSeries.js.map +1 -1
  50. package/lib/module/components/Reels/ReelsSeries/ReelsSeriesItem.js +241 -232
  51. package/lib/module/components/Reels/ReelsSeries/ReelsSeriesItem.js.map +1 -1
  52. package/lib/module/components/Reels/ReelsSeries/components/AnimatedThreeLines.js +153 -0
  53. package/lib/module/components/Reels/ReelsSeries/components/AnimatedThreeLines.js.map +1 -0
  54. package/lib/module/components/Reels/ReelsSeries/{Model → components}/Episodes.js +46 -36
  55. package/lib/module/components/Reels/ReelsSeries/components/Episodes.js.map +1 -0
  56. package/lib/module/components/Reels/ReelsSeries/components/GradientOverlay.js +35 -0
  57. package/lib/module/components/Reels/ReelsSeries/components/GradientOverlay.js.map +1 -0
  58. package/lib/module/components/Reels/ReelsSeries/components/Like.js +37 -0
  59. package/lib/module/components/Reels/ReelsSeries/components/Like.js.map +1 -0
  60. package/lib/module/components/Reels/ReelsSeries/components/RotatingLoader.js +55 -0
  61. package/lib/module/components/Reels/ReelsSeries/components/RotatingLoader.js.map +1 -0
  62. package/lib/module/components/Reels/ReelsSeries/components/Synopsis.js +268 -0
  63. package/lib/module/components/Reels/ReelsSeries/components/Synopsis.js.map +1 -0
  64. package/lib/module/components/Reels/ReelsSeries/components/VideoControls/QualityControl.js +143 -0
  65. package/lib/module/components/Reels/ReelsSeries/components/VideoControls/QualityControl.js.map +1 -0
  66. package/lib/module/components/Reels/ReelsSeries/components/VideoControls/SpeedControl.js +56 -0
  67. package/lib/module/components/Reels/ReelsSeries/components/VideoControls/SpeedControl.js.map +1 -0
  68. package/lib/module/components/Reels/ReelsSeries/components/VideoControls/index.js +5 -0
  69. package/lib/module/components/Reels/ReelsSeries/components/VideoControls/index.js.map +1 -0
  70. package/lib/module/components/Reels/utils/Controls/gestureUtils.js +30 -0
  71. package/lib/module/components/Reels/utils/Controls/gestureUtils.js.map +1 -0
  72. package/lib/module/components/Reels/utils/Controls/index.js +7 -0
  73. package/lib/module/components/Reels/utils/Controls/index.js.map +1 -0
  74. package/lib/module/components/Reels/utils/Controls/overlayUtils.js +28 -0
  75. package/lib/module/components/Reels/utils/Controls/overlayUtils.js.map +1 -0
  76. package/lib/module/components/Reels/utils/Controls/videoControlsConstants.js +27 -0
  77. package/lib/module/components/Reels/utils/Controls/videoControlsConstants.js.map +1 -0
  78. package/lib/module/components/Reels/utils/Controls/videoRef.js +5 -0
  79. package/lib/module/components/Reels/utils/Controls/videoRef.js.map +1 -0
  80. package/lib/module/components/Reels/utils/index.js +4 -0
  81. package/lib/module/components/Reels/utils/index.js.map +1 -0
  82. package/lib/module/components/Reels/utils/timeoutUtils.js +24 -0
  83. package/lib/module/components/Reels/utils/timeoutUtils.js.map +1 -0
  84. package/lib/module/components/Search/One.js.map +1 -1
  85. package/lib/module/components/Subscription/SubOne.js +1 -2
  86. package/lib/module/components/Subscription/SubOne.js.map +1 -1
  87. package/lib/module/components/User/PurchaseHistory/PurchaseHistory.js.map +1 -1
  88. package/lib/module/components/User/WatchHistory/WatchHistory.js.map +1 -1
  89. package/lib/module/components/User/WatchLater/WatchLater.js.map +1 -1
  90. package/lib/module/components/index.js +1 -0
  91. package/lib/module/components/index.js.map +1 -1
  92. package/lib/module/theme/ThemeProvider.js +7 -4
  93. package/lib/module/theme/ThemeProvider.js.map +1 -1
  94. package/lib/module/theme/themes.js +3 -3
  95. package/lib/typescript/src/components/BottomSheet/BottomSheet.d.ts +18 -0
  96. package/lib/typescript/src/components/BottomSheet/BottomSheet.d.ts.map +1 -0
  97. package/lib/typescript/src/components/BottomSheet/index.d.ts +3 -0
  98. package/lib/typescript/src/components/BottomSheet/index.d.ts.map +1 -0
  99. package/lib/typescript/src/components/Button/BackBtn.d.ts +3 -1
  100. package/lib/typescript/src/components/Button/BackBtn.d.ts.map +1 -1
  101. package/lib/typescript/src/components/Button/index.d.ts +2 -0
  102. package/lib/typescript/src/components/Button/index.d.ts.map +1 -1
  103. package/lib/typescript/src/components/Content/Card/NowWatching/NowWatching.d.ts +2 -1
  104. package/lib/typescript/src/components/Content/Card/NowWatching/NowWatching.d.ts.map +1 -1
  105. package/lib/typescript/src/components/Content/Card/Sliders/Styles/One.d.ts +2 -1
  106. package/lib/typescript/src/components/Content/Card/Sliders/Styles/One.d.ts.map +1 -1
  107. package/lib/typescript/src/components/Content/Card/Sliders/Styles/Two.d.ts +2 -1
  108. package/lib/typescript/src/components/Content/Card/Sliders/Styles/Two.d.ts.map +1 -1
  109. package/lib/typescript/src/components/Content/Card/Sliders/index.d.ts +2 -2
  110. package/lib/typescript/src/components/Content/Card/Styles/Five.d.ts +2 -1
  111. package/lib/typescript/src/components/Content/Card/Styles/Five.d.ts.map +1 -1
  112. package/lib/typescript/src/components/Content/Card/Styles/Four.d.ts +2 -1
  113. package/lib/typescript/src/components/Content/Card/Styles/Four.d.ts.map +1 -1
  114. package/lib/typescript/src/components/Content/Card/Styles/One.d.ts +2 -1
  115. package/lib/typescript/src/components/Content/Card/Styles/One.d.ts.map +1 -1
  116. package/lib/typescript/src/components/Content/Card/Styles/RotateInOut.d.ts +2 -1
  117. package/lib/typescript/src/components/Content/Card/Styles/RotateInOut.d.ts.map +1 -1
  118. package/lib/typescript/src/components/Content/Card/Styles/Six.d.ts +2 -1
  119. package/lib/typescript/src/components/Content/Card/Styles/Six.d.ts.map +1 -1
  120. package/lib/typescript/src/components/Content/Card/Styles/Three.d.ts +2 -1
  121. package/lib/typescript/src/components/Content/Card/Styles/Three.d.ts.map +1 -1
  122. package/lib/typescript/src/components/Content/Card/Styles/TopTen.d.ts +2 -1
  123. package/lib/typescript/src/components/Content/Card/Styles/TopTen.d.ts.map +1 -1
  124. package/lib/typescript/src/components/Content/Card/Styles/Two.d.ts +2 -1
  125. package/lib/typescript/src/components/Content/Card/Styles/Two.d.ts.map +1 -1
  126. package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts +1 -1
  127. package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts.map +1 -1
  128. package/lib/typescript/src/components/Content/Card/components/RentOrBuyIcon.d.ts +1 -1
  129. package/lib/typescript/src/components/Content/Card/components/RentOrBuyIcon.d.ts.map +1 -1
  130. package/lib/typescript/src/components/Content/Card/index.d.ts +24 -24
  131. package/lib/typescript/src/components/Content/Content.d.ts +2 -1
  132. package/lib/typescript/src/components/Content/Content.d.ts.map +1 -1
  133. package/lib/typescript/src/components/Content/Sections.d.ts +2 -1
  134. package/lib/typescript/src/components/Content/Sections.d.ts.map +1 -1
  135. package/lib/typescript/src/components/ContentView/MoreContentList.d.ts +1 -1
  136. package/lib/typescript/src/components/ContentView/MoreContentList.d.ts.map +1 -1
  137. package/lib/typescript/src/components/ContentView/components/AboutSection.d.ts +1 -1
  138. package/lib/typescript/src/components/ContentView/components/AboutSection.d.ts.map +1 -1
  139. package/lib/typescript/src/components/ContentView/components/CastCard.d.ts +1 -1
  140. package/lib/typescript/src/components/ContentView/components/CastCard.d.ts.map +1 -1
  141. package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts +1 -1
  142. package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts.map +1 -1
  143. package/lib/typescript/src/components/ContentView/components/GenreTags.d.ts +1 -1
  144. package/lib/typescript/src/components/ContentView/components/GenreTags.d.ts.map +1 -1
  145. package/lib/typescript/src/components/ContentView/components/MiniInfo.d.ts +1 -1
  146. package/lib/typescript/src/components/ContentView/components/MiniInfo.d.ts.map +1 -1
  147. package/lib/typescript/src/components/ContentView/components/Title.d.ts +1 -1
  148. package/lib/typescript/src/components/ContentView/components/Title.d.ts.map +1 -1
  149. package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/BottomControls.d.ts +14 -0
  150. package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/BottomControls.d.ts.map +1 -0
  151. package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.d.ts +60 -0
  152. package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.d.ts.map +1 -0
  153. package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/MiddleControls.d.ts +14 -0
  154. package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/MiddleControls.d.ts.map +1 -0
  155. package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/RightControls.d.ts +14 -0
  156. package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/RightControls.d.ts.map +1 -0
  157. package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/TopControls.d.ts +12 -0
  158. package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/TopControls.d.ts.map +1 -0
  159. package/lib/typescript/src/components/Reels/ReelsSeries/Model/DetailsModal.d.ts +16 -0
  160. package/lib/typescript/src/components/Reels/ReelsSeries/Model/DetailsModal.d.ts.map +1 -0
  161. package/lib/typescript/src/components/Reels/ReelsSeries/Model/SettingModal.d.ts +15 -0
  162. package/lib/typescript/src/components/Reels/ReelsSeries/Model/SettingModal.d.ts.map +1 -0
  163. package/lib/typescript/src/components/Reels/ReelsSeries/Model/UnlockModal.d.ts +14 -0
  164. package/lib/typescript/src/components/Reels/ReelsSeries/Model/UnlockModal.d.ts.map +1 -0
  165. package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeries.d.ts +8 -2
  166. package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeries.d.ts.map +1 -1
  167. package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeriesItem.d.ts +8 -2
  168. package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeriesItem.d.ts.map +1 -1
  169. package/lib/typescript/src/components/Reels/ReelsSeries/components/AnimatedThreeLines.d.ts +13 -0
  170. package/lib/typescript/src/components/Reels/ReelsSeries/components/AnimatedThreeLines.d.ts.map +1 -0
  171. package/lib/typescript/src/components/Reels/ReelsSeries/{Model → components}/Episodes.d.ts +3 -2
  172. package/lib/typescript/src/components/Reels/ReelsSeries/components/Episodes.d.ts.map +1 -0
  173. package/lib/typescript/src/components/Reels/ReelsSeries/components/GradientOverlay.d.ts +7 -0
  174. package/lib/typescript/src/components/Reels/ReelsSeries/components/GradientOverlay.d.ts.map +1 -0
  175. package/lib/typescript/src/components/Reels/ReelsSeries/components/Like.d.ts +7 -0
  176. package/lib/typescript/src/components/Reels/ReelsSeries/components/Like.d.ts.map +1 -0
  177. package/lib/typescript/src/components/Reels/ReelsSeries/components/RotatingLoader.d.ts +12 -0
  178. package/lib/typescript/src/components/Reels/ReelsSeries/components/RotatingLoader.d.ts.map +1 -0
  179. package/lib/typescript/src/components/Reels/ReelsSeries/components/Synopsis.d.ts +12 -0
  180. package/lib/typescript/src/components/Reels/ReelsSeries/components/Synopsis.d.ts.map +1 -0
  181. package/lib/typescript/src/components/Reels/ReelsSeries/components/VideoControls/QualityControl.d.ts +11 -0
  182. package/lib/typescript/src/components/Reels/ReelsSeries/components/VideoControls/QualityControl.d.ts.map +1 -0
  183. package/lib/typescript/src/components/Reels/ReelsSeries/components/VideoControls/SpeedControl.d.ts +10 -0
  184. package/lib/typescript/src/components/Reels/ReelsSeries/components/VideoControls/SpeedControl.d.ts.map +1 -0
  185. package/lib/typescript/src/components/Reels/ReelsSeries/components/VideoControls/index.d.ts +3 -0
  186. package/lib/typescript/src/components/Reels/ReelsSeries/components/VideoControls/index.d.ts.map +1 -0
  187. package/lib/typescript/src/components/Reels/ReelsSeries/types.d.ts +13 -0
  188. package/lib/typescript/src/components/Reels/ReelsSeries/types.d.ts.map +1 -1
  189. package/lib/typescript/src/components/Reels/utils/Controls/gestureUtils.d.ts +10 -0
  190. package/lib/typescript/src/components/Reels/utils/Controls/gestureUtils.d.ts.map +1 -0
  191. package/lib/typescript/src/components/Reels/utils/Controls/index.d.ts +5 -0
  192. package/lib/typescript/src/components/Reels/utils/Controls/index.d.ts.map +1 -0
  193. package/lib/typescript/src/components/Reels/utils/Controls/overlayUtils.d.ts +12 -0
  194. package/lib/typescript/src/components/Reels/utils/Controls/overlayUtils.d.ts.map +1 -0
  195. package/lib/typescript/src/components/Reels/utils/Controls/videoControlsConstants.d.ts +24 -0
  196. package/lib/typescript/src/components/Reels/utils/Controls/videoControlsConstants.d.ts.map +1 -0
  197. package/lib/typescript/src/components/Reels/utils/Controls/videoRef.d.ts +3 -0
  198. package/lib/typescript/src/components/Reels/utils/Controls/videoRef.d.ts.map +1 -0
  199. package/lib/typescript/src/components/Reels/utils/index.d.ts +2 -0
  200. package/lib/typescript/src/components/Reels/utils/index.d.ts.map +1 -0
  201. package/lib/typescript/src/components/Reels/utils/timeoutUtils.d.ts +14 -0
  202. package/lib/typescript/src/components/Reels/utils/timeoutUtils.d.ts.map +1 -0
  203. package/lib/typescript/src/components/Search/One.d.ts +2 -1
  204. package/lib/typescript/src/components/Search/One.d.ts.map +1 -1
  205. package/lib/typescript/src/components/User/PurchaseHistory/PurchaseHistory.d.ts +1 -1
  206. package/lib/typescript/src/components/User/PurchaseHistory/PurchaseHistory.d.ts.map +1 -1
  207. package/lib/typescript/src/components/User/WatchHistory/WatchHistory.d.ts +1 -1
  208. package/lib/typescript/src/components/User/WatchHistory/WatchHistory.d.ts.map +1 -1
  209. package/lib/typescript/src/components/User/WatchLater/WatchLater.d.ts +1 -1
  210. package/lib/typescript/src/components/User/WatchLater/WatchLater.d.ts.map +1 -1
  211. package/lib/typescript/src/components/index.d.ts +1 -0
  212. package/lib/typescript/src/components/index.d.ts.map +1 -1
  213. package/lib/typescript/src/types/content/content-view.types.d.ts +1 -1
  214. package/lib/typescript/src/types/content/content-view.types.d.ts.map +1 -1
  215. package/lib/typescript/src/types/index.d.ts +1 -1
  216. package/lib/typescript/src/types/index.d.ts.map +1 -1
  217. package/lib/typescript/src/types/sections/index.d.ts +1 -1
  218. package/lib/typescript/src/types/sections/index.d.ts.map +1 -1
  219. package/package.json +2 -1
  220. package/src/components/BottomSheet/BottomSheet.tsx +195 -0
  221. package/src/components/BottomSheet/index.ts +2 -0
  222. package/src/components/Button/BackBtn.tsx +33 -0
  223. package/src/components/Content/Card/NowWatching/NowWatching.tsx +2 -5
  224. package/src/components/Content/Card/Sliders/Styles/One.tsx +2 -1
  225. package/src/components/Content/Card/Sliders/Styles/Two.tsx +2 -1
  226. package/src/components/Content/Card/Styles/Five.tsx +1 -1
  227. package/src/components/Content/Card/Styles/Four.tsx +1 -1
  228. package/src/components/Content/Card/Styles/One.tsx +1 -1
  229. package/src/components/Content/Card/Styles/RotateInOut.tsx +1 -1
  230. package/src/components/Content/Card/Styles/Six.tsx +1 -1
  231. package/src/components/Content/Card/Styles/Three.tsx +1 -1
  232. package/src/components/Content/Card/Styles/TopTen.tsx +1 -1
  233. package/src/components/Content/Card/Styles/Two.tsx +1 -1
  234. package/src/components/Content/Card/components/CardPoster.tsx +1 -1
  235. package/src/components/Content/Card/components/RentOrBuyIcon.tsx +1 -1
  236. package/src/components/Content/Content.tsx +2 -1
  237. package/src/components/Content/Sections.tsx +2 -1
  238. package/src/components/ContentView/MoreContentList.tsx +1 -1
  239. package/src/components/ContentView/components/AboutSection.tsx +1 -1
  240. package/src/components/ContentView/components/CastCard.tsx +2 -1
  241. package/src/components/ContentView/components/EpisodeCard.tsx +5 -1
  242. package/src/components/ContentView/components/GenreTags.tsx +1 -1
  243. package/src/components/ContentView/components/MiniInfo.tsx +1 -1
  244. package/src/components/ContentView/components/Title.tsx +1 -1
  245. package/src/components/Reels/ReelsSeries/MediaControls/BottomControls.tsx +156 -0
  246. package/src/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.tsx +234 -0
  247. package/src/components/Reels/ReelsSeries/MediaControls/MiddleControls.tsx +196 -0
  248. package/src/components/Reels/ReelsSeries/MediaControls/RightControls.tsx +92 -0
  249. package/src/components/Reels/ReelsSeries/MediaControls/TopControls.tsx +163 -0
  250. package/src/components/Reels/ReelsSeries/Model/DetailsModal.tsx +210 -0
  251. package/src/components/Reels/ReelsSeries/Model/SettingModal.tsx +143 -0
  252. package/src/components/Reels/ReelsSeries/Model/UnlockModal.tsx +154 -0
  253. package/src/components/Reels/ReelsSeries/ReelsSeries.tsx +142 -74
  254. package/src/components/Reels/ReelsSeries/ReelsSeriesItem.tsx +349 -250
  255. package/src/components/Reels/ReelsSeries/components/AnimatedThreeLines.tsx +184 -0
  256. package/src/components/Reels/ReelsSeries/{Model → components}/Episodes.tsx +54 -33
  257. package/src/components/Reels/ReelsSeries/components/GradientOverlay.tsx +41 -0
  258. package/src/components/Reels/ReelsSeries/components/Like.tsx +40 -0
  259. package/src/components/Reels/ReelsSeries/components/RotatingLoader.tsx +79 -0
  260. package/src/components/Reels/ReelsSeries/components/Synopsis.tsx +332 -0
  261. package/src/components/Reels/ReelsSeries/components/VideoControls/QualityControl.tsx +190 -0
  262. package/src/components/Reels/ReelsSeries/components/VideoControls/SpeedControl.tsx +80 -0
  263. package/src/components/Reels/ReelsSeries/components/VideoControls/index.ts +2 -0
  264. package/src/components/Reels/ReelsSeries/types.ts +13 -2
  265. package/src/components/Reels/utils/Controls/gestureUtils.ts +42 -0
  266. package/src/components/Reels/utils/Controls/index.ts +4 -0
  267. package/src/components/Reels/utils/Controls/overlayUtils.ts +35 -0
  268. package/src/components/Reels/utils/Controls/videoControlsConstants.ts +25 -0
  269. package/src/components/Reels/utils/Controls/videoRef.ts +4 -0
  270. package/src/components/Reels/utils/index.ts +1 -0
  271. package/src/components/Reels/utils/timeoutUtils.ts +29 -0
  272. package/src/components/Search/One.tsx +2 -6
  273. package/src/components/Subscription/SubOne.tsx +1 -2
  274. package/src/components/User/PurchaseHistory/PurchaseHistory.tsx +1 -1
  275. package/src/components/User/WatchHistory/WatchHistory.tsx +1 -1
  276. package/src/components/User/WatchLater/WatchLater.tsx +1 -1
  277. package/src/components/index.ts +1 -0
  278. package/src/theme/ThemeProvider.tsx +8 -2
  279. package/src/theme/themes.ts +3 -3
  280. package/src/types/content/content-view.types.ts +1 -1
  281. package/src/types/index.ts +1 -1
  282. package/src/types/sections/index.ts +1 -1
  283. package/lib/module/components/Reels/ReelsSeries/Model/Episodes.js.map +0 -1
  284. package/lib/module/components/Reels/ReelsSeries/Model/Synopsis.js +0 -212
  285. package/lib/module/components/Reels/ReelsSeries/Model/Synopsis.js.map +0 -1
  286. package/lib/module/components/Reels/ReelsSeries/ReelSeriesDetailsModal.js +0 -182
  287. package/lib/module/components/Reels/ReelsSeries/ReelSeriesDetailsModal.js.map +0 -1
  288. package/lib/module/components/Reels/ReelsSeries/ReelSeriesOverlay.js +0 -203
  289. package/lib/module/components/Reels/ReelsSeries/ReelSeriesOverlay.js.map +0 -1
  290. package/lib/module/types/content/index.js +0 -2
  291. package/lib/module/types/content/index.js.map +0 -1
  292. package/lib/typescript/src/components/Reels/ReelsSeries/Model/Episodes.d.ts.map +0 -1
  293. package/lib/typescript/src/components/Reels/ReelsSeries/Model/Synopsis.d.ts +0 -9
  294. package/lib/typescript/src/components/Reels/ReelsSeries/Model/Synopsis.d.ts.map +0 -1
  295. package/lib/typescript/src/components/Reels/ReelsSeries/ReelSeriesDetailsModal.d.ts +0 -13
  296. package/lib/typescript/src/components/Reels/ReelsSeries/ReelSeriesDetailsModal.d.ts.map +0 -1
  297. package/lib/typescript/src/components/Reels/ReelsSeries/ReelSeriesOverlay.d.ts +0 -18
  298. package/lib/typescript/src/components/Reels/ReelsSeries/ReelSeriesOverlay.d.ts.map +0 -1
  299. package/lib/typescript/src/types/content/index.d.ts +0 -174
  300. package/lib/typescript/src/types/content/index.d.ts.map +0 -1
  301. package/src/components/Reels/ReelsSeries/Model/Synopsis.tsx +0 -242
  302. package/src/components/Reels/ReelsSeries/ReelSeriesDetailsModal.tsx +0 -209
  303. package/src/components/Reels/ReelsSeries/ReelSeriesOverlay.tsx +0 -185
  304. package/src/types/content/index.ts +0 -194
@@ -13,7 +13,6 @@ import {
13
13
  } from 'react-native';
14
14
  import { scale, verticalScale } from 'react-native-size-matters';
15
15
  import Display from '../../utils/Display';
16
- import type { IContentData } from '../../types';
17
16
  import { Text } from '../Text';
18
17
  import { View } from '../View';
19
18
  import AppHeader, { type AppHeaderProps } from '../Headers/AppHeader';
@@ -23,6 +22,7 @@ import type { ThemeOverride } from '../../theme/themes';
23
22
  import { useInternalTheme } from '../../theme/hook';
24
23
  import Animated from 'react-native-reanimated';
25
24
  import { Search } from 'lucide-react-native';
25
+ import type { IContentData } from '@zezosoft/zezo-ott-api-client';
26
26
 
27
27
  interface Props {
28
28
  headerProps?: AppHeaderProps;
@@ -18,7 +18,7 @@ import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
18
18
  import { scale, verticalScale } from 'react-native-size-matters';
19
19
  import type { ITheme } from '../../../theme/themes';
20
20
  import { RFValue } from 'react-native-responsive-fontsize';
21
- import type { IContentData } from '../../../types';
21
+ import type { IContentData } from '@zezosoft/zezo-ott-api-client';
22
22
 
23
23
  type Props = {
24
24
  theme: ITheme;
@@ -18,8 +18,8 @@ import FastImage, { type ImageStyle } from 'react-native-fast-image';
18
18
  import { scale } from 'react-native-size-matters';
19
19
  import { Text } from '../../Text';
20
20
  import type { ITheme } from '../../../theme/themes';
21
- import type { IContentCast } from '../../../types';
22
21
  import { RFValue } from 'react-native-responsive-fontsize';
22
+ import type { IContentCast } from '@zezosoft/zezo-ott-api-client';
23
23
 
24
24
  type StyleProps = {
25
25
  container?: StyleProp<ViewStyle>;
@@ -61,6 +61,7 @@ export const CastCard = ({
61
61
  name: '',
62
62
  avatar: '',
63
63
  castType: '',
64
+ type: 'actor',
64
65
  }));
65
66
 
66
67
  const listData = isLoading ? placeholderData : (data ?? []);
@@ -10,12 +10,15 @@ import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
10
10
  import { scale, verticalScale, moderateScale } from 'react-native-size-matters';
11
11
  import { Text } from '../../Text';
12
12
  import Display from '../../../utils/Display';
13
- import type { IContentEpisodes, IContentSeasons } from '../../../types';
14
13
  import type { ITheme, ThemeOverride } from '../../../theme/themes';
15
14
  import { ThumbnailCard } from '../../Content/Card/components/ThumbnailCard';
16
15
  import { RFValue } from 'react-native-responsive-fontsize';
17
16
  import RentOrBuyIcon from '../../Content/Card/components/RentOrBuyIcon';
18
17
  import { useInternalTheme } from '../../../theme/hook';
18
+ import type {
19
+ IContentEpisodes,
20
+ IContentSeasons,
21
+ } from '@zezosoft/zezo-ott-api-client';
19
22
 
20
23
  // Constants
21
24
  const SKELETON_COUNT = 3;
@@ -367,6 +370,7 @@ export const EpisodeCard = ({
367
370
  source_type: 'HLS',
368
371
  content_offering_type: 'FREE',
369
372
  status: true,
373
+ data: '',
370
374
  }}
371
375
  onPress={onPress}
372
376
  style={{ width: cardWidth }}
@@ -14,9 +14,9 @@ import {
14
14
  import { Text } from '../../Text';
15
15
  import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
16
16
  import { scale, verticalScale } from 'react-native-size-matters';
17
- import type { IContentData } from '../../../types';
18
17
  import type { ITheme } from '../../../theme/themes';
19
18
  import { RFValue } from 'react-native-responsive-fontsize';
19
+ import type { IContentData } from '@zezosoft/zezo-ott-api-client';
20
20
 
21
21
  type Props = {
22
22
  genres?: IContentData['genres'];
@@ -14,10 +14,10 @@ import {
14
14
  import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
15
15
  import { scale } from 'react-native-size-matters';
16
16
  import { Text } from '../../Text';
17
- import type { IContentData } from '../../../types';
18
17
  import type { ThemeOverride } from '../../../theme/themes';
19
18
  import { RFValue } from 'react-native-responsive-fontsize';
20
19
  import { useInternalTheme } from '../../../theme/hook';
20
+ import type { IContentData } from '@zezosoft/zezo-ott-api-client';
21
21
 
22
22
  type Props = {
23
23
  content?: IContentData;
@@ -14,9 +14,9 @@ import {
14
14
  import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
15
15
  import { scale } from 'react-native-size-matters';
16
16
  import { Text } from '../../Text';
17
- import type { IContentData } from '../../../types';
18
17
  import type { ITheme } from '../../../theme/themes';
19
18
  import { RFValue } from 'react-native-responsive-fontsize';
19
+ import type { IContentData } from '@zezosoft/zezo-ott-api-client';
20
20
 
21
21
  type Props = {
22
22
  title: IContentData['name'];
@@ -0,0 +1,156 @@
1
+ import React from 'react';
2
+ import { View, Text, TouchableOpacity, StyleSheet } from 'react-native';
3
+ import { ChevronRight, ListVideo } from 'lucide-react-native';
4
+ import { moderateScale, verticalScale } from 'react-native-size-matters';
5
+ import { RFValue } from 'react-native-responsive-fontsize';
6
+ import type { ISeriesItem } from '../types';
7
+ import type { ITheme } from '../../../../theme';
8
+
9
+ interface BottomControlsProps {
10
+ series: ISeriesItem;
11
+ episodeIndex: number;
12
+ videoCurrentTime: number;
13
+ videoDuration: number;
14
+ onEpisodesPress?: () => void;
15
+ theme: ITheme;
16
+ }
17
+
18
+ const BottomControls: React.FC<BottomControlsProps> = ({
19
+ series,
20
+ episodeIndex,
21
+ videoCurrentTime,
22
+ videoDuration,
23
+ onEpisodesPress,
24
+ theme,
25
+ }) => {
26
+ const progressPercentage =
27
+ videoDuration > 0 ? (videoCurrentTime / videoDuration) * 100 : 0;
28
+
29
+ const truncatedTitle =
30
+ series.title.length <= 25
31
+ ? series.title
32
+ : series.title.slice(0, 25) + '...';
33
+
34
+ return (
35
+ <View style={styles.container}>
36
+ {/* Series Info Section */}
37
+ <View style={styles.seriesInfo}>
38
+ <Text style={styles.seriesTitle}>{truncatedTitle}</Text>
39
+ <Text numberOfLines={2} style={styles.seriesDescription}>
40
+ {series.description}
41
+ </Text>
42
+ </View>
43
+
44
+ {/* Episodes Selector Button */}
45
+ <TouchableOpacity
46
+ style={styles.episodesButton}
47
+ onPress={onEpisodesPress}
48
+ activeOpacity={0.7}
49
+ >
50
+ <View style={styles.episodesButtonContent}>
51
+ <ListVideo
52
+ color={'#fff'}
53
+ width={moderateScale(20)}
54
+ height={moderateScale(20)}
55
+ />
56
+ <Text style={styles.episodesText}>
57
+ {episodeIndex + 1} / {series.episodes.length} Episodes
58
+ </Text>
59
+ </View>
60
+ <ChevronRight color={'#fff'} size={moderateScale(22)} />
61
+ </TouchableOpacity>
62
+
63
+ {/* Video Progress Bar */}
64
+ <View style={styles.progressBarContainer}>
65
+ <View style={styles.progressBarWrapper}>
66
+ <View
67
+ style={[
68
+ styles.progressBarFill,
69
+ {
70
+ width: `${progressPercentage}%`,
71
+ backgroundColor: theme.colors.primary,
72
+ },
73
+ ]}
74
+ />
75
+ {videoDuration > 0 && (
76
+ <View
77
+ style={[
78
+ styles.progressBarKnob,
79
+ {
80
+ left: `${progressPercentage}%`,
81
+ },
82
+ ]}
83
+ />
84
+ )}
85
+ </View>
86
+ </View>
87
+ </View>
88
+ );
89
+ };
90
+
91
+ export default BottomControls;
92
+
93
+ const styles = StyleSheet.create({
94
+ container: {
95
+ position: 'absolute',
96
+ bottom: 0,
97
+ zIndex: 10,
98
+ marginHorizontal: moderateScale(8),
99
+ },
100
+ seriesInfo: {
101
+ marginBottom: verticalScale(10),
102
+ },
103
+ seriesTitle: {
104
+ fontSize: RFValue(13),
105
+ fontWeight: '500',
106
+ color: '#fff',
107
+ },
108
+ seriesDescription: {
109
+ fontSize: RFValue(10),
110
+ color: '#fff',
111
+ marginTop: 2.5,
112
+ opacity: 0.9,
113
+ },
114
+ episodesButton: {
115
+ flexDirection: 'row',
116
+ justifyContent: 'space-between',
117
+ alignItems: 'center',
118
+ backgroundColor: 'rgba(0,0,0,0.5)',
119
+ borderRadius: moderateScale(8),
120
+ paddingHorizontal: moderateScale(12),
121
+ paddingVertical: verticalScale(8),
122
+ },
123
+ episodesButtonContent: {
124
+ flexDirection: 'row',
125
+ alignItems: 'center',
126
+ },
127
+ episodesText: {
128
+ fontSize: RFValue(13),
129
+ color: '#fff',
130
+ marginLeft: moderateScale(10),
131
+ },
132
+ progressBarContainer: {
133
+ marginVertical: verticalScale(10),
134
+ marginHorizontal: moderateScale(5),
135
+ },
136
+ progressBarWrapper: {
137
+ height: verticalScale(2),
138
+ backgroundColor: 'rgba(255, 255, 255, 0.3)',
139
+ borderRadius: moderateScale(1),
140
+ position: 'relative',
141
+ },
142
+ progressBarFill: {
143
+ height: '100%',
144
+ // backgroundColor: '#fff',
145
+ borderRadius: moderateScale(1),
146
+ },
147
+ progressBarKnob: {
148
+ position: 'absolute',
149
+ top: -verticalScale(2),
150
+ width: moderateScale(7),
151
+ height: moderateScale(7),
152
+ borderRadius: moderateScale(5),
153
+ backgroundColor: '#fff',
154
+ transform: [{ translateX: -moderateScale(3.5) }],
155
+ },
156
+ });
@@ -0,0 +1,234 @@
1
+ import React from 'react';
2
+ import { StyleSheet, View } from 'react-native';
3
+
4
+ import GradientOverlay from '../../ReelsSeries/components/GradientOverlay';
5
+ import Like from '../../ReelsSeries/components/Like';
6
+
7
+ import type {
8
+ ISeriesItem,
9
+ ISeriesEpisode,
10
+ ModalState,
11
+ ILikeMoreData,
12
+ } from '../types';
13
+ import type { ITheme } from '../../../../theme';
14
+
15
+ import TopControls from './TopControls';
16
+ import MiddleControls from './MiddleControls';
17
+ import RightControls from './RightControls';
18
+ import BottomControls from './BottomControls';
19
+ import DetailsModal from '../Model/DetailsModal';
20
+ import UnLockModal from '../Model/UnlockModal';
21
+ import SettingModal from '../Model/SettingModal';
22
+
23
+ export interface ContentProps {
24
+ series: ISeriesItem;
25
+ episode: ISeriesEpisode;
26
+ activeIndex: number;
27
+ }
28
+ export interface UnlockProps {
29
+ isVisible: boolean;
30
+ onClose: () => void;
31
+ }
32
+
33
+ export interface VideoProps {
34
+ currentTime: number;
35
+ duration: number;
36
+ paused: boolean;
37
+ buffering: boolean;
38
+ showCenterControls: boolean;
39
+ isLocked: boolean;
40
+ hasError: boolean;
41
+ }
42
+
43
+ export interface LikeProps {
44
+ liked: boolean;
45
+ count: number;
46
+ showAnimation: boolean;
47
+ }
48
+
49
+ export interface ActionsProps {
50
+ onLike?: (ep: ISeriesEpisode) => void;
51
+ onUnlockPress?: (ep: ISeriesEpisode) => void;
52
+ onEpisodeSelect?: (ep: ISeriesEpisode) => void;
53
+ onLikeMore?: (item: ILikeMoreData) => void;
54
+ onShare?: () => void;
55
+ onUnLock?: () => void;
56
+ }
57
+
58
+ export interface NavigationProps {
59
+ onBack?: () => void;
60
+ onSearch?: () => void;
61
+ }
62
+
63
+ export interface SettingsProps {
64
+ playbackRate: number;
65
+ quality: string;
66
+ onPlaybackRateChange: (rate: number) => void;
67
+ onQualityChange: (q: string) => void;
68
+ }
69
+
70
+ export interface MediaControlsProps {
71
+ children: React.ReactNode;
72
+ content: ContentProps;
73
+ video: VideoProps;
74
+ likes: LikeProps;
75
+ actions: ActionsProps;
76
+ navigation: NavigationProps;
77
+ settings: SettingsProps;
78
+ modal?: ModalState;
79
+ setModal?: (m: ModalState) => void;
80
+ unlock: UnlockProps;
81
+ theme: ITheme;
82
+ }
83
+
84
+ const MediaControlsProvider: React.FC<MediaControlsProps> = ({
85
+ children,
86
+ content,
87
+ video,
88
+ likes,
89
+ actions,
90
+ navigation,
91
+ settings,
92
+ modal,
93
+ unlock,
94
+ setModal,
95
+ theme,
96
+ }) => {
97
+ const { series, episode, activeIndex } = content;
98
+ const isSeries = series?.episodes ? true : false;
99
+
100
+ const {
101
+ currentTime,
102
+ duration,
103
+ paused,
104
+ buffering,
105
+ showCenterControls,
106
+ isLocked,
107
+ hasError,
108
+ } = video;
109
+
110
+ const { liked, count, showAnimation } = likes;
111
+
112
+ const {
113
+ onLike,
114
+ onEpisodeSelect,
115
+ onLikeMore,
116
+ onUnlockPress,
117
+ onShare,
118
+ onUnLock,
119
+ } = actions;
120
+
121
+ const { onBack, onSearch } = navigation;
122
+
123
+ const { playbackRate, quality, onPlaybackRateChange, onQualityChange } =
124
+ settings;
125
+
126
+ const episodeLabel = React.useMemo(() => {
127
+ return series.episodes.length > 0
128
+ ? `Ep ${activeIndex + 1}/${series.episodes.length}`
129
+ : undefined;
130
+ }, [activeIndex, series.episodes.length]);
131
+
132
+ return (
133
+ <View style={styles.root}>
134
+ {/* ❤️ Like Animation */}
135
+ <Like visible={showAnimation} />
136
+
137
+ {/* Video behind controls */}
138
+ {children}
139
+
140
+ {/* Gradient overlay */}
141
+ <GradientOverlay />
142
+
143
+ {/* UI Controls */}
144
+ <View style={StyleSheet.absoluteFillObject}>
145
+ {/* TOP */}
146
+ <TopControls
147
+ theme={theme}
148
+ onBack={onBack}
149
+ episodeLabel={episodeLabel}
150
+ onSettings={() => setModal?.({ type: 'settings', isVisible: true })}
151
+ onSearch={onSearch}
152
+ />
153
+
154
+ {/* CENTER */}
155
+ <MiddleControls
156
+ isLocked={isLocked}
157
+ theme={theme}
158
+ onUnLock={onUnLock}
159
+ isVisible={showCenterControls}
160
+ isPaused={paused}
161
+ isBuffering={buffering}
162
+ hasError={hasError}
163
+ />
164
+
165
+ {/* RIGHT ACTIONS */}
166
+ <RightControls
167
+ episode={episode}
168
+ isLiked={liked}
169
+ likeCount={count}
170
+ onLike={onLike}
171
+ showEpisodesButton={isSeries}
172
+ onDetailsPress={() =>
173
+ setModal?.({ type: 'details', isVisible: true })
174
+ }
175
+ onShare={onShare}
176
+ />
177
+
178
+ <BottomControls
179
+ theme={theme}
180
+ series={series}
181
+ episodeIndex={activeIndex}
182
+ videoCurrentTime={currentTime}
183
+ videoDuration={duration}
184
+ onEpisodesPress={() =>
185
+ setModal?.({ type: 'details', isVisible: true })
186
+ }
187
+ />
188
+ </View>
189
+
190
+ {/* DETAILS MODAL */}
191
+ {isSeries && (
192
+ <DetailsModal
193
+ reel={episode}
194
+ data={series}
195
+ activeEpisodeIndex={activeIndex}
196
+ theme={theme}
197
+ isVisible={modal?.type === 'details' && modal.isVisible}
198
+ onClose={() => setModal?.({ type: 'none', isVisible: false })}
199
+ onEpisodeSelect={onEpisodeSelect}
200
+ onLikeMorePress={onLikeMore}
201
+ />
202
+ )}
203
+
204
+ {/* SETTINGS MODAL */}
205
+ <SettingModal
206
+ theme={theme}
207
+ speed={playbackRate}
208
+ quality={quality}
209
+ videoUrl={episode.videoUrl}
210
+ onSpeedChange={onPlaybackRateChange}
211
+ onQualityChange={onQualityChange}
212
+ isVisible={modal?.type === 'settings' && modal.isVisible}
213
+ onClose={() => setModal?.({ type: 'none', isVisible: false })}
214
+ />
215
+
216
+ <UnLockModal
217
+ isVisible={unlock.isVisible}
218
+ onClose={() => unlock.onClose()}
219
+ theme={theme}
220
+ episode={episode}
221
+ data={series}
222
+ onUnlockPress={onUnlockPress}
223
+ />
224
+ </View>
225
+ );
226
+ };
227
+
228
+ export default MediaControlsProvider;
229
+
230
+ const styles = StyleSheet.create({
231
+ root: {
232
+ flex: 1,
233
+ },
234
+ });
@@ -0,0 +1,196 @@
1
+ import React from 'react';
2
+ import { View, StyleSheet, Text } from 'react-native';
3
+ import { Pause, Play, AlertCircle } from 'lucide-react-native';
4
+ import { moderateScale, verticalScale } from 'react-native-size-matters';
5
+ import { RFValue } from 'react-native-responsive-fontsize';
6
+ import RotatingLoader from '../../ReelsSeries/components/RotatingLoader';
7
+ import { Button } from '../../../Button';
8
+ import type { ITheme } from '../../../../theme';
9
+
10
+ interface MiddleControlsProps {
11
+ isVisible: boolean;
12
+ isPaused: boolean;
13
+ isBuffering: boolean;
14
+ isLocked: boolean;
15
+ hasError: boolean;
16
+ onUnLock?: () => void;
17
+ theme: ITheme;
18
+ }
19
+
20
+ const MiddleControls: React.FC<MiddleControlsProps> = ({
21
+ isVisible,
22
+ isPaused,
23
+ isBuffering,
24
+ isLocked,
25
+ hasError,
26
+ onUnLock,
27
+ theme,
28
+ }) => {
29
+ if (!isVisible) return null;
30
+
31
+ return (
32
+ <View style={styles.container} pointerEvents="box-none">
33
+ {/* ERROR MESSAGE */}
34
+ {hasError && !isBuffering && (
35
+ <View style={styles.errorWrapper}>
36
+ <View style={styles.errorContainer}>
37
+ <View style={styles.errorIconContainer}>
38
+ <AlertCircle
39
+ color={styles.errorIconColor.color}
40
+ size={moderateScale(28)}
41
+ strokeWidth={2.5}
42
+ />
43
+ </View>
44
+ <Text style={styles.errorText}>Unable to play video</Text>
45
+ <Text style={styles.errorSubtext}>Please try again later</Text>
46
+ </View>
47
+ </View>
48
+ )}
49
+
50
+ {/* BUFFERING LOADER */}
51
+ {isBuffering && !hasError && (
52
+ <View style={styles.loaderWrapper}>
53
+ <RotatingLoader
54
+ color={theme.colors.buttonText}
55
+ containerStyle={[
56
+ styles.loadingContainer,
57
+ { backgroundColor: theme.colors.button },
58
+ ]}
59
+ autoRotate={isBuffering}
60
+ />
61
+ </View>
62
+ )}
63
+
64
+ {/* PLAY / PAUSE ICON */}
65
+ {!isBuffering && !isLocked && !hasError && (
66
+ <View style={styles.iconWrapper}>
67
+ <View
68
+ style={[
69
+ styles.iconBackground,
70
+ { backgroundColor: theme.colors.button },
71
+ ]}
72
+ pointerEvents="none"
73
+ >
74
+ {isPaused ? (
75
+ <Play color={theme.colors.buttonText} size={moderateScale(26)} />
76
+ ) : (
77
+ <Pause color={theme.colors.buttonText} size={moderateScale(26)} />
78
+ )}
79
+ </View>
80
+ </View>
81
+ )}
82
+
83
+ {/* LOCKED → SHOW UNLOCK BUTTON */}
84
+ {!isBuffering && isLocked && !hasError && (
85
+ <View style={styles.unlockWrapper}>
86
+ <Button.Primary
87
+ title="Unlock Episode"
88
+ onPress={onUnLock}
89
+ theme={{
90
+ dark: theme.colors,
91
+ light: theme.colors,
92
+ }}
93
+ containerStyle={styles.unlockButton}
94
+ />
95
+ </View>
96
+ )}
97
+ </View>
98
+ );
99
+ };
100
+
101
+ export default MiddleControls;
102
+
103
+ /* ---------------------- STYLES ---------------------- */
104
+
105
+ const styles = StyleSheet.create({
106
+ container: {
107
+ position: 'absolute',
108
+ height: '100%',
109
+ width: '100%',
110
+ justifyContent: 'center',
111
+ alignItems: 'center',
112
+ zIndex: 5,
113
+ },
114
+
115
+ /* BUFFERING */
116
+ loaderWrapper: {
117
+ justifyContent: 'center',
118
+ alignItems: 'center',
119
+ },
120
+ loadingContainer: {
121
+ // backgroundColor: 'rgba(0,0,0,0.5)',
122
+ padding: moderateScale(8),
123
+ borderRadius: 50,
124
+ },
125
+
126
+ /* PLAY/PAUSE */
127
+ iconWrapper: {
128
+ justifyContent: 'center',
129
+ alignItems: 'center',
130
+ },
131
+ iconBackground: {
132
+ // backgroundColor: 'rgba(0,0,0,0.55)',
133
+ padding: moderateScale(12),
134
+ borderRadius: 50,
135
+ },
136
+
137
+ /* UNLOCK */
138
+ unlockWrapper: {
139
+ justifyContent: 'center',
140
+ alignItems: 'center',
141
+ },
142
+ unlockButton: {
143
+ paddingVertical: moderateScale(12),
144
+ paddingHorizontal: moderateScale(20),
145
+ borderRadius: moderateScale(30),
146
+ },
147
+
148
+ /* ERROR */
149
+ errorWrapper: {
150
+ justifyContent: 'center',
151
+ alignItems: 'center',
152
+ },
153
+ errorContainer: {
154
+ backgroundColor: 'rgba(21, 21, 21, 0.95)',
155
+ padding: moderateScale(20),
156
+ borderRadius: moderateScale(16),
157
+ alignItems: 'center',
158
+ minWidth: moderateScale(220),
159
+ borderWidth: 2,
160
+ borderColor: '#FF4444',
161
+ shadowColor: '#FF4444',
162
+ shadowOffset: {
163
+ width: 0,
164
+ height: 4,
165
+ },
166
+ shadowOpacity: 0.5,
167
+ shadowRadius: 12,
168
+ elevation: 10,
169
+ },
170
+ errorIconContainer: {
171
+ width: moderateScale(56),
172
+ height: moderateScale(56),
173
+ borderRadius: moderateScale(28),
174
+ backgroundColor: 'rgba(255, 68, 68, 0.15)',
175
+ justifyContent: 'center',
176
+ alignItems: 'center',
177
+ marginBottom: verticalScale(8),
178
+ },
179
+ errorIconColor: {
180
+ color: '#FF4444',
181
+ },
182
+ errorText: {
183
+ fontSize: RFValue(16),
184
+ fontWeight: '700',
185
+ marginTop: verticalScale(8),
186
+ textAlign: 'center',
187
+ letterSpacing: 0.3,
188
+ color: '#FFFFFF',
189
+ },
190
+ errorSubtext: {
191
+ fontSize: RFValue(13),
192
+ marginTop: verticalScale(6),
193
+ textAlign: 'center',
194
+ color: 'rgba(255, 255, 255, 0.75)',
195
+ },
196
+ });