@zezosoft/zezo-ott-react-native-ui-kit 1.0.2 → 1.0.3

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 (466) hide show
  1. package/LICENSE +0 -0
  2. package/README.md +6 -0
  3. package/lib/module/assets/animations/135037-payment-processing-error.json +1347 -1
  4. package/lib/module/assets/animations/7227-vui-animation.json +3377 -1
  5. package/lib/module/assets/animations/succesfull-payment.json +2379 -1
  6. package/lib/module/assets/animations/voice-icon.json +542 -1
  7. package/lib/module/components/Account/Account.js +6 -6
  8. package/lib/module/components/Account/Account.js.map +1 -1
  9. package/lib/module/components/Account/index.js +1 -1
  10. package/lib/module/components/Account/index.js.map +1 -1
  11. package/lib/module/components/Alert/UAAlert.js +138 -0
  12. package/lib/module/components/Alert/UAAlert.js.map +1 -0
  13. package/lib/module/components/Alert/index.js +4 -0
  14. package/lib/module/components/Alert/index.js.map +1 -0
  15. package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js +9 -9
  16. package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js.map +1 -1
  17. package/lib/module/components/Auth/Login/LoginWithEmail.js +10 -10
  18. package/lib/module/components/Auth/Login/LoginWithEmail.js.map +1 -1
  19. package/lib/module/components/Auth/Login/LoginWithPhone.js +10 -10
  20. package/lib/module/components/Auth/Login/LoginWithPhone.js.map +1 -1
  21. package/lib/module/components/Auth/OTP/OTP.js +9 -9
  22. package/lib/module/components/Auth/OTP/OTP.js.map +1 -1
  23. package/lib/module/components/Auth/SignUp/SignUp.js +10 -10
  24. package/lib/module/components/Auth/SignUp/SignUp.js.map +1 -1
  25. package/lib/module/components/Auth/SplashScreen/SplashScreen.js +6 -6
  26. package/lib/module/components/Auth/SplashScreen/SplashScreen.js.map +1 -1
  27. package/lib/module/components/Auth/SplashScreen/components/SplashImage/SplashImage.js +1 -6
  28. package/lib/module/components/Auth/SplashScreen/components/SplashImage/SplashImage.js.map +1 -1
  29. package/lib/module/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.js +1 -1
  30. package/lib/module/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.js.map +1 -1
  31. package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js +1 -1
  32. package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js.map +1 -1
  33. package/lib/module/components/Auth/index.js +6 -6
  34. package/lib/module/components/Auth/index.js.map +1 -1
  35. package/lib/module/components/BackgroundLayout/BackgroundLayout.js +1 -1
  36. package/lib/module/components/BackgroundLayout/BackgroundLayout.js.map +1 -1
  37. package/lib/module/components/BlogView/BlogView.js +4 -10
  38. package/lib/module/components/BlogView/BlogView.js.map +1 -1
  39. package/lib/module/components/BlogView/index.js +1 -1
  40. package/lib/module/components/BlogView/index.js.map +1 -1
  41. package/lib/module/components/Button/BackBtn.js +1 -1
  42. package/lib/module/components/Button/BackBtn.js.map +1 -1
  43. package/lib/module/components/Button/MenuBtn.js +1 -1
  44. package/lib/module/components/Button/MenuBtn.js.map +1 -1
  45. package/lib/module/components/Button/PrimaryBtn.js +2 -2
  46. package/lib/module/components/Button/PrimaryBtn.js.map +1 -1
  47. package/lib/module/components/Button/TextButton.js +2 -2
  48. package/lib/module/components/Button/TextButton.js.map +1 -1
  49. package/lib/module/components/Button/index.js +3 -3
  50. package/lib/module/components/Button/index.js.map +1 -1
  51. package/lib/module/components/Content/Card/Category/Category.js +2 -2
  52. package/lib/module/components/Content/Card/Category/Category.js.map +1 -1
  53. package/lib/module/components/Content/Card/NowWatching/NowWatching.js +6 -6
  54. package/lib/module/components/Content/Card/NowWatching/NowWatching.js.map +1 -1
  55. package/lib/module/components/Content/Card/Sliders/Styles/One.js +3 -3
  56. package/lib/module/components/Content/Card/Sliders/Styles/One.js.map +1 -1
  57. package/lib/module/components/Content/Card/Sliders/Styles/Two.js +4 -4
  58. package/lib/module/components/Content/Card/Sliders/Styles/Two.js.map +1 -1
  59. package/lib/module/components/Content/Card/Sliders/index.js +2 -2
  60. package/lib/module/components/Content/Card/Sliders/index.js.map +1 -1
  61. package/lib/module/components/Content/Card/Styles/Five.js +4 -4
  62. package/lib/module/components/Content/Card/Styles/Five.js.map +1 -1
  63. package/lib/module/components/Content/Card/Styles/Four.js +4 -4
  64. package/lib/module/components/Content/Card/Styles/Four.js.map +1 -1
  65. package/lib/module/components/Content/Card/Styles/One.js +4 -4
  66. package/lib/module/components/Content/Card/Styles/One.js.map +1 -1
  67. package/lib/module/components/Content/Card/Styles/RotateInOut.js +4 -4
  68. package/lib/module/components/Content/Card/Styles/RotateInOut.js.map +1 -1
  69. package/lib/module/components/Content/Card/Styles/Six.js +5 -5
  70. package/lib/module/components/Content/Card/Styles/Six.js.map +1 -1
  71. package/lib/module/components/Content/Card/Styles/Three.js +4 -4
  72. package/lib/module/components/Content/Card/Styles/Three.js.map +1 -1
  73. package/lib/module/components/Content/Card/Styles/TopTen.js +5 -5
  74. package/lib/module/components/Content/Card/Styles/TopTen.js.map +1 -1
  75. package/lib/module/components/Content/Card/Styles/Two.js +4 -4
  76. package/lib/module/components/Content/Card/Styles/Two.js.map +1 -1
  77. package/lib/module/components/Content/Card/components/CardPoster.js +1 -10
  78. package/lib/module/components/Content/Card/components/CardPoster.js.map +1 -1
  79. package/lib/module/components/Content/Card/components/NavigateToMore.js +2 -2
  80. package/lib/module/components/Content/Card/components/NavigateToMore.js.map +1 -1
  81. package/lib/module/components/Content/Card/components/NoContentFallback.js +3 -3
  82. package/lib/module/components/Content/Card/components/NoContentFallback.js.map +1 -1
  83. package/lib/module/components/Content/Card/components/ShowAllButton.js +1 -1
  84. package/lib/module/components/Content/Card/components/ShowAllButton.js.map +1 -1
  85. package/lib/module/components/Content/Card/components/ThumbnailCard.js +1 -1
  86. package/lib/module/components/Content/Card/components/ThumbnailCard.js.map +1 -1
  87. package/lib/module/components/Content/Card/index.js +10 -10
  88. package/lib/module/components/Content/Card/index.js.map +1 -1
  89. package/lib/module/components/Content/Content.js +4 -4
  90. package/lib/module/components/Content/Content.js.map +1 -1
  91. package/lib/module/components/Content/Sections.js +2 -2
  92. package/lib/module/components/Content/Sections.js.map +1 -1
  93. package/lib/module/components/ContentView/ContentView.js +8 -9
  94. package/lib/module/components/ContentView/ContentView.js.map +1 -1
  95. package/lib/module/components/ContentView/MoreContentList.js +6 -6
  96. package/lib/module/components/ContentView/MoreContentList.js.map +1 -1
  97. package/lib/module/components/ContentView/components/AboutSection.js +2 -2
  98. package/lib/module/components/ContentView/components/AboutSection.js.map +1 -1
  99. package/lib/module/components/ContentView/components/CastCard.js +2 -2
  100. package/lib/module/components/ContentView/components/CastCard.js.map +1 -1
  101. package/lib/module/components/ContentView/components/EpisodeCard.js +3 -3
  102. package/lib/module/components/ContentView/components/EpisodeCard.js.map +1 -1
  103. package/lib/module/components/ContentView/components/GenreTags.js +1 -1
  104. package/lib/module/components/ContentView/components/GenreTags.js.map +1 -1
  105. package/lib/module/components/ContentView/components/HeroBanner.js +5 -5
  106. package/lib/module/components/ContentView/components/HeroBanner.js.map +1 -1
  107. package/lib/module/components/ContentView/components/PlayButton.js +0 -1
  108. package/lib/module/components/ContentView/components/PlayButton.js.map +1 -1
  109. package/lib/module/components/ContentView/components/Title.js +1 -1
  110. package/lib/module/components/ContentView/components/Title.js.map +1 -1
  111. package/lib/module/components/ContentView/components/TrailerButton.js +1 -2
  112. package/lib/module/components/ContentView/components/TrailerButton.js.map +1 -1
  113. package/lib/module/components/ContentView/index.js +2 -2
  114. package/lib/module/components/ContentView/index.js.map +1 -1
  115. package/lib/module/components/Headers/AppHeader.js +2 -2
  116. package/lib/module/components/Headers/AppHeader.js.map +1 -1
  117. package/lib/module/components/Headers/One.js +2 -2
  118. package/lib/module/components/Headers/One.js.map +1 -1
  119. package/lib/module/components/Headers/Three.js +2 -2
  120. package/lib/module/components/Headers/Three.js.map +1 -1
  121. package/lib/module/components/Headers/Two.js +5 -6
  122. package/lib/module/components/Headers/Two.js.map +1 -1
  123. package/lib/module/components/Headers/index.js +3 -3
  124. package/lib/module/components/Headers/index.js.map +1 -1
  125. package/lib/module/components/Input/Input.js +3 -3
  126. package/lib/module/components/Input/Input.js.map +1 -1
  127. package/lib/module/components/Input/InputOne.js +1 -1
  128. package/lib/module/components/Input/InputOne.js.map +1 -1
  129. package/lib/module/components/Input/InputTwo.js +1 -1
  130. package/lib/module/components/Input/InputTwo.js.map +1 -1
  131. package/lib/module/components/Input/PhoneNumberInput.js +1 -1
  132. package/lib/module/components/Input/PhoneNumberInput.js.map +1 -1
  133. package/lib/module/components/Keyboard/HideKeyboard.js.map +1 -1
  134. package/lib/module/components/Loader/Loader.js +1 -6
  135. package/lib/module/components/Loader/Loader.js.map +1 -1
  136. package/lib/module/components/Logo/Logo.js +2 -2
  137. package/lib/module/components/Logo/Logo.js.map +1 -1
  138. package/lib/module/components/Search/One.js +9 -9
  139. package/lib/module/components/Search/One.js.map +1 -1
  140. package/lib/module/components/Search/components/RecentSearchesSection.js +1 -1
  141. package/lib/module/components/Search/components/RecentSearchesSection.js.map +1 -1
  142. package/lib/module/components/Search/components/SearchCard.js +3 -3
  143. package/lib/module/components/Search/components/SearchCard.js.map +1 -1
  144. package/lib/module/components/Search/index.js +2 -2
  145. package/lib/module/components/Search/index.js.map +1 -1
  146. package/lib/module/components/Settings/AppSettings.js +4 -4
  147. package/lib/module/components/Settings/AppSettings.js.map +1 -1
  148. package/lib/module/components/Settings/index.js +1 -1
  149. package/lib/module/components/Settings/index.js.map +1 -1
  150. package/lib/module/components/Subscription/SubOne.js +4 -4
  151. package/lib/module/components/Subscription/SubOne.js.map +1 -1
  152. package/lib/module/components/Subscription/index.js +1 -1
  153. package/lib/module/components/Subscription/index.js.map +1 -1
  154. package/lib/module/components/TabBar/One.js +2 -2
  155. package/lib/module/components/TabBar/One.js.map +1 -1
  156. package/lib/module/components/TabBar/Three.js +1 -1
  157. package/lib/module/components/TabBar/Three.js.map +1 -1
  158. package/lib/module/components/TabBar/Two.js +2 -2
  159. package/lib/module/components/TabBar/Two.js.map +1 -1
  160. package/lib/module/components/TabBar/index.js +3 -3
  161. package/lib/module/components/TabBar/index.js.map +1 -1
  162. package/lib/module/components/Text/Text.js +1 -1
  163. package/lib/module/components/Text/Text.js.map +1 -1
  164. package/lib/module/components/Text/index.js +1 -1
  165. package/lib/module/components/Text/index.js.map +1 -1
  166. package/lib/module/components/User/DeviceSessions/DeviceSessions.js +3 -3
  167. package/lib/module/components/User/DeviceSessions/DeviceSessions.js.map +1 -1
  168. package/lib/module/components/User/WatchHistory/WatchHistory.js +4 -4
  169. package/lib/module/components/User/WatchHistory/WatchHistory.js.map +1 -1
  170. package/lib/module/components/User/WatchLater/WatchLater.js +5 -5
  171. package/lib/module/components/User/WatchLater/WatchLater.js.map +1 -1
  172. package/lib/module/components/User/components/UserAvatar.js +1 -1
  173. package/lib/module/components/User/components/UserAvatar.js.map +1 -1
  174. package/lib/module/components/User/components/UserSection.js +3 -3
  175. package/lib/module/components/User/components/UserSection.js.map +1 -1
  176. package/lib/module/components/User/index.js +3 -3
  177. package/lib/module/components/User/index.js.map +1 -1
  178. package/lib/module/components/View/View.js.map +1 -1
  179. package/lib/module/components/View/index.js +1 -1
  180. package/lib/module/components/View/index.js.map +1 -1
  181. package/lib/module/components/index.js +19 -18
  182. package/lib/module/components/index.js.map +1 -1
  183. package/lib/module/components/layout/SafeAreaWrapper.js +1 -1
  184. package/lib/module/components/layout/SafeAreaWrapper.js.map +1 -1
  185. package/lib/module/components/layout/index.js +1 -1
  186. package/lib/module/components/layout/index.js.map +1 -1
  187. package/lib/module/constants/dummySections.js.map +1 -1
  188. package/lib/module/hooks/useDebounce.js.map +1 -1
  189. package/lib/module/hooks/useInitSplashCacheSync.js +7 -7
  190. package/lib/module/hooks/useInitSplashCacheSync.js.map +1 -1
  191. package/lib/module/hooks/useKeyboard.js.map +1 -1
  192. package/lib/module/hooks/usePaginatedSection.js.map +1 -1
  193. package/lib/module/index.js +3 -3
  194. package/lib/module/index.js.map +1 -1
  195. package/lib/module/package.json +1 -0
  196. package/lib/module/store/RecentSearchesStore.js.map +1 -1
  197. package/lib/module/store/splashStore.js.map +1 -1
  198. package/lib/module/theme/ThemeProvider.js +11 -8
  199. package/lib/module/theme/ThemeProvider.js.map +1 -1
  200. package/lib/module/theme/hook/useTheme.js +2 -2
  201. package/lib/module/theme/hook/useTheme.js.map +1 -1
  202. package/lib/module/theme/index.js +3 -2
  203. package/lib/module/theme/index.js.map +1 -1
  204. package/lib/module/theme/themes.js +0 -13
  205. package/lib/module/theme/themes.js.map +1 -1
  206. package/lib/typescript/package.json +1 -0
  207. package/lib/typescript/src/components/Account/Account.d.ts +0 -1
  208. package/lib/typescript/src/components/Account/Account.d.ts.map +1 -1
  209. package/lib/typescript/src/components/Alert/UAAlert.d.ts +16 -0
  210. package/lib/typescript/src/components/Alert/UAAlert.d.ts.map +1 -0
  211. package/lib/typescript/src/components/Alert/index.d.ts +2 -0
  212. package/lib/typescript/src/components/Alert/index.d.ts.map +1 -0
  213. package/lib/typescript/src/components/Auth/ForgotPassword/ForgotPassword.d.ts.map +1 -1
  214. package/lib/typescript/src/components/Auth/Login/LoginWithEmail.d.ts.map +1 -1
  215. package/lib/typescript/src/components/Auth/Login/LoginWithPhone.d.ts.map +1 -1
  216. package/lib/typescript/src/components/Auth/OTP/OTP.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 +0 -4
  220. package/lib/typescript/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.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 +1 -1
  223. package/lib/typescript/src/components/Auth/index.d.ts.map +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 +0 -4
  226. package/lib/typescript/src/components/BlogView/BlogView.d.ts.map +1 -1
  227. package/lib/typescript/src/components/Button/BackBtn.d.ts.map +1 -1
  228. package/lib/typescript/src/components/Button/MenuBtn.d.ts.map +1 -1
  229. package/lib/typescript/src/components/Button/PrimaryBtn.d.ts.map +1 -1
  230. package/lib/typescript/src/components/Button/TextButton.d.ts.map +1 -1
  231. package/lib/typescript/src/components/Content/Card/Category/Category.d.ts +1 -1
  232. package/lib/typescript/src/components/Content/Card/Category/Category.d.ts.map +1 -1
  233. package/lib/typescript/src/components/Content/Card/NowWatching/NowWatching.d.ts.map +1 -1
  234. package/lib/typescript/src/components/Content/Card/Sliders/Styles/One.d.ts.map +1 -1
  235. package/lib/typescript/src/components/Content/Card/Sliders/Styles/Two.d.ts.map +1 -1
  236. package/lib/typescript/src/components/Content/Card/Styles/Five.d.ts.map +1 -1
  237. package/lib/typescript/src/components/Content/Card/Styles/Four.d.ts.map +1 -1
  238. package/lib/typescript/src/components/Content/Card/Styles/One.d.ts.map +1 -1
  239. package/lib/typescript/src/components/Content/Card/Styles/RotateInOut.d.ts.map +1 -1
  240. package/lib/typescript/src/components/Content/Card/Styles/Six.d.ts.map +1 -1
  241. package/lib/typescript/src/components/Content/Card/Styles/Three.d.ts.map +1 -1
  242. package/lib/typescript/src/components/Content/Card/Styles/TopTen.d.ts.map +1 -1
  243. package/lib/typescript/src/components/Content/Card/Styles/Two.d.ts.map +1 -1
  244. package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts +0 -8
  245. package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts.map +1 -1
  246. package/lib/typescript/src/components/Content/Card/components/NavigateToMore.d.ts.map +1 -1
  247. package/lib/typescript/src/components/Content/Card/components/NoContentFallback.d.ts +1 -2
  248. package/lib/typescript/src/components/Content/Card/components/NoContentFallback.d.ts.map +1 -1
  249. package/lib/typescript/src/components/Content/Card/components/ShowAllButton.d.ts.map +1 -1
  250. package/lib/typescript/src/components/Content/Card/components/ThumbnailCard.d.ts.map +1 -1
  251. package/lib/typescript/src/components/Content/Card/index.d.ts +2 -2
  252. package/lib/typescript/src/components/Content/Content.d.ts.map +1 -1
  253. package/lib/typescript/src/components/Content/Sections.d.ts.map +1 -1
  254. package/lib/typescript/src/components/ContentView/ContentView.d.ts +1 -2
  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 +1 -2
  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 +1 -6
  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 +1 -2
  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 +1 -2
  266. package/lib/typescript/src/components/ContentView/components/HeroBanner.d.ts.map +1 -1
  267. package/lib/typescript/src/components/ContentView/components/PlayButton.d.ts +1 -2
  268. package/lib/typescript/src/components/ContentView/components/PlayButton.d.ts.map +1 -1
  269. package/lib/typescript/src/components/ContentView/components/Title.d.ts +1 -1
  270. package/lib/typescript/src/components/ContentView/components/Title.d.ts.map +1 -1
  271. package/lib/typescript/src/components/ContentView/components/TrailerButton.d.ts +1 -2
  272. package/lib/typescript/src/components/ContentView/components/TrailerButton.d.ts.map +1 -1
  273. package/lib/typescript/src/components/Headers/AppHeader.d.ts.map +1 -1
  274. package/lib/typescript/src/components/Headers/One.d.ts.map +1 -1
  275. package/lib/typescript/src/components/Headers/Three.d.ts.map +1 -1
  276. package/lib/typescript/src/components/Headers/Two.d.ts.map +1 -1
  277. package/lib/typescript/src/components/Input/InputOne.d.ts.map +1 -1
  278. package/lib/typescript/src/components/Input/InputTwo.d.ts.map +1 -1
  279. package/lib/typescript/src/components/Input/PhoneNumberInput.d.ts.map +1 -1
  280. package/lib/typescript/src/components/Keyboard/HideKeyboard.d.ts.map +1 -1
  281. package/lib/typescript/src/components/Loader/Loader.d.ts +0 -4
  282. package/lib/typescript/src/components/Loader/Loader.d.ts.map +1 -1
  283. package/lib/typescript/src/components/Logo/Logo.d.ts.map +1 -1
  284. package/lib/typescript/src/components/Search/One.d.ts.map +1 -1
  285. package/lib/typescript/src/components/Search/components/RecentSearchesSection.d.ts.map +1 -1
  286. package/lib/typescript/src/components/Search/components/SearchCard.d.ts.map +1 -1
  287. package/lib/typescript/src/components/Settings/AppSettings.d.ts.map +1 -1
  288. package/lib/typescript/src/components/Subscription/SubOne.d.ts +1 -1
  289. package/lib/typescript/src/components/Subscription/SubOne.d.ts.map +1 -1
  290. package/lib/typescript/src/components/Subscription/index.d.ts +2 -2
  291. package/lib/typescript/src/components/Subscription/index.d.ts.map +1 -1
  292. package/lib/typescript/src/components/TabBar/One.d.ts +2 -2
  293. package/lib/typescript/src/components/TabBar/One.d.ts.map +1 -1
  294. package/lib/typescript/src/components/TabBar/Three.d.ts.map +1 -1
  295. package/lib/typescript/src/components/TabBar/Two.d.ts +1 -1
  296. package/lib/typescript/src/components/TabBar/Two.d.ts.map +1 -1
  297. package/lib/typescript/src/components/TabBar/index.d.ts +2 -2
  298. package/lib/typescript/src/components/Text/Text.d.ts.map +1 -1
  299. package/lib/typescript/src/components/User/DeviceSessions/DeviceSessions.d.ts +1 -1
  300. package/lib/typescript/src/components/User/DeviceSessions/DeviceSessions.d.ts.map +1 -1
  301. package/lib/typescript/src/components/User/WatchHistory/WatchHistory.d.ts.map +1 -1
  302. package/lib/typescript/src/components/User/WatchLater/WatchLater.d.ts.map +1 -1
  303. package/lib/typescript/src/components/User/components/UserAvatar.d.ts.map +1 -1
  304. package/lib/typescript/src/components/User/components/UserSection.d.ts.map +1 -1
  305. package/lib/typescript/src/components/View/View.d.ts.map +1 -1
  306. package/lib/typescript/src/components/index.d.ts +1 -0
  307. package/lib/typescript/src/components/index.d.ts.map +1 -1
  308. package/lib/typescript/src/components/layout/SafeAreaWrapper.d.ts.map +1 -1
  309. package/lib/typescript/src/constants/dummySections.d.ts.map +1 -1
  310. package/lib/typescript/src/hooks/useDebounce.d.ts.map +1 -1
  311. package/lib/typescript/src/hooks/useInitSplashCacheSync.d.ts +1 -1
  312. package/lib/typescript/src/hooks/useInitSplashCacheSync.d.ts.map +1 -1
  313. package/lib/typescript/src/hooks/useKeyboard.d.ts.map +1 -1
  314. package/lib/typescript/src/hooks/usePaginatedSection.d.ts.map +1 -1
  315. package/lib/typescript/src/index.d.ts.map +1 -1
  316. package/lib/typescript/src/store/RecentSearchesStore.d.ts +5 -3
  317. package/lib/typescript/src/store/RecentSearchesStore.d.ts.map +1 -1
  318. package/lib/typescript/src/store/splashStore.d.ts +5 -3
  319. package/lib/typescript/src/store/splashStore.d.ts.map +1 -1
  320. package/lib/typescript/src/theme/ThemeProvider.d.ts.map +1 -1
  321. package/lib/typescript/src/theme/hook/useTheme.d.ts.map +1 -1
  322. package/lib/typescript/src/theme/index.d.ts +5 -0
  323. package/lib/typescript/src/theme/index.d.ts.map +1 -1
  324. package/lib/typescript/src/theme/themes.d.ts +11 -4
  325. package/lib/typescript/src/theme/themes.d.ts.map +1 -1
  326. package/lib/typescript/src/types/content/content-view.types.d.ts.map +1 -1
  327. package/lib/typescript/src/types/hook/usePaginatedSetion.d.ts +1 -1
  328. package/lib/typescript/src/types/hook/usePaginatedSetion.d.ts.map +1 -1
  329. package/package.json +167 -70
  330. package/src/Styles/globalStyles.ts +18 -18
  331. package/src/assets/animations/135037-payment-processing-error.json +1347 -1
  332. package/src/assets/animations/7227-vui-animation.json +3377 -1
  333. package/src/assets/animations/succesfull-payment.json +2379 -1
  334. package/src/assets/animations/voice-icon.json +542 -1
  335. package/src/components/Account/Account.tsx +139 -61
  336. package/src/components/Alert/UAAlert.tsx +168 -0
  337. package/src/components/Alert/index.ts +1 -0
  338. package/src/components/Auth/ForgotPassword/ForgotPassword.tsx +53 -23
  339. package/src/components/Auth/Login/LoginWithEmail.tsx +62 -32
  340. package/src/components/Auth/Login/LoginWithPhone.tsx +55 -24
  341. package/src/components/Auth/OTP/OTP.tsx +77 -32
  342. package/src/components/Auth/SignUp/SignUp.tsx +67 -32
  343. package/src/components/Auth/SplashScreen/SplashScreen.tsx +44 -16
  344. package/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.tsx +21 -12
  345. package/src/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.tsx +5 -5
  346. package/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.tsx +15 -5
  347. package/src/components/Auth/index.ts +1 -1
  348. package/src/components/BackgroundLayout/BackgroundLayout.tsx +45 -17
  349. package/src/components/BlogView/BlogView.tsx +51 -31
  350. package/src/components/Button/BackBtn.tsx +31 -9
  351. package/src/components/Button/MenuBtn.tsx +61 -22
  352. package/src/components/Button/PrimaryBtn.tsx +30 -10
  353. package/src/components/Button/TextButton.tsx +30 -15
  354. package/src/components/Button/index.ts +1 -1
  355. package/src/components/Content/Card/Category/Category.tsx +73 -32
  356. package/src/components/Content/Card/NowWatching/NowWatching.tsx +102 -44
  357. package/src/components/Content/Card/Sliders/Styles/One.tsx +89 -38
  358. package/src/components/Content/Card/Sliders/Styles/Two.tsx +47 -21
  359. package/src/components/Content/Card/Sliders/index.ts +2 -2
  360. package/src/components/Content/Card/Styles/Five.tsx +65 -22
  361. package/src/components/Content/Card/Styles/Four.tsx +73 -23
  362. package/src/components/Content/Card/Styles/One.tsx +68 -21
  363. package/src/components/Content/Card/Styles/RotateInOut.tsx +59 -23
  364. package/src/components/Content/Card/Styles/Six.tsx +57 -19
  365. package/src/components/Content/Card/Styles/Three.tsx +59 -23
  366. package/src/components/Content/Card/Styles/TopTen.tsx +59 -26
  367. package/src/components/Content/Card/Styles/Two.tsx +39 -18
  368. package/src/components/Content/Card/components/CardPoster.tsx +34 -32
  369. package/src/components/Content/Card/components/NavigateToMore.tsx +17 -7
  370. package/src/components/Content/Card/components/NoContentFallback.tsx +36 -19
  371. package/src/components/Content/Card/components/ShowAllButton.tsx +12 -8
  372. package/src/components/Content/Card/components/ThumbnailCard.tsx +26 -17
  373. package/src/components/Content/Card/index.ts +2 -2
  374. package/src/components/Content/Content.tsx +41 -17
  375. package/src/components/Content/Sections.tsx +14 -8
  376. package/src/components/ContentView/ContentView.tsx +34 -27
  377. package/src/components/ContentView/MoreContentList.tsx +40 -18
  378. package/src/components/ContentView/components/AboutSection.tsx +30 -12
  379. package/src/components/ContentView/components/CastCard.tsx +65 -24
  380. package/src/components/ContentView/components/EpisodeCard.tsx +109 -44
  381. package/src/components/ContentView/components/GenreTags.tsx +35 -11
  382. package/src/components/ContentView/components/HeroBanner.tsx +52 -21
  383. package/src/components/ContentView/components/PlayButton.tsx +13 -5
  384. package/src/components/ContentView/components/Title.tsx +30 -10
  385. package/src/components/ContentView/components/TrailerButton.tsx +16 -7
  386. package/src/components/Headers/AppHeader.tsx +40 -14
  387. package/src/components/Headers/One.tsx +18 -9
  388. package/src/components/Headers/Three.tsx +22 -7
  389. package/src/components/Headers/Two.tsx +24 -13
  390. package/src/components/Headers/index.ts +1 -1
  391. package/src/components/Input/Input.ts +1 -1
  392. package/src/components/Input/InputOne.tsx +69 -23
  393. package/src/components/Input/InputTwo.tsx +41 -18
  394. package/src/components/Input/PhoneNumberInput.tsx +94 -48
  395. package/src/components/Keyboard/HideKeyboard.tsx +16 -10
  396. package/src/components/Loader/Loader.tsx +3 -8
  397. package/src/components/Logo/Logo.tsx +17 -9
  398. package/src/components/Search/One.tsx +46 -17
  399. package/src/components/Search/components/RecentSearchesSection.tsx +48 -21
  400. package/src/components/Search/components/SearchCard.tsx +34 -16
  401. package/src/components/Search/index.ts +1 -1
  402. package/src/components/Settings/AppSettings.tsx +80 -29
  403. package/src/components/Subscription/SubOne.tsx +84 -39
  404. package/src/components/Subscription/index.ts +1 -1
  405. package/src/components/TabBar/One.tsx +22 -18
  406. package/src/components/TabBar/Three.tsx +55 -19
  407. package/src/components/TabBar/Two.tsx +16 -12
  408. package/src/components/TabBar/index.ts +1 -1
  409. package/src/components/Text/Text.tsx +7 -3
  410. package/src/components/User/DeviceSessions/DeviceSessions.tsx +93 -38
  411. package/src/components/User/WatchHistory/WatchHistory.tsx +37 -12
  412. package/src/components/User/WatchLater/WatchLater.tsx +94 -31
  413. package/src/components/User/components/UserAvatar.tsx +8 -4
  414. package/src/components/User/components/UserSection.tsx +34 -19
  415. package/src/components/View/View.tsx +11 -2
  416. package/src/components/index.ts +1 -0
  417. package/src/components/layout/SafeAreaWrapper.tsx +10 -4
  418. package/src/constants/dummySections.ts +9 -7
  419. package/src/hooks/useDebounce.ts +4 -1
  420. package/src/hooks/useInitSplashCacheSync.ts +46 -18
  421. package/src/hooks/useKeyboard.ts +5 -3
  422. package/src/hooks/usePaginatedSection.ts +11 -7
  423. package/src/store/RecentSearchesStore.ts +12 -7
  424. package/src/store/splashStore.ts +16 -16
  425. package/src/theme/ThemeProvider.tsx +50 -20
  426. package/src/theme/hook/useTheme.ts +7 -3
  427. package/src/theme/index.ts +6 -0
  428. package/src/theme/themes.ts +42 -31
  429. package/src/types/content/content-view.types.ts +4 -1
  430. package/src/types/hook/usePaginatedSetion.ts +1 -1
  431. package/lib/module/components/Icons/AlertIcon.js +0 -33
  432. package/lib/module/components/Icons/AlertIcon.js.map +0 -1
  433. package/lib/module/components/Icons/DeviceIcon.js +0 -25
  434. package/lib/module/components/Icons/DeviceIcon.js.map +0 -1
  435. package/lib/module/components/Icons/DoneIcon/DoneIcon.js +0 -23
  436. package/lib/module/components/Icons/DoneIcon/DoneIcon.js.map +0 -1
  437. package/lib/module/components/Icons/ForgotPasswordMessageIcon.js +0 -65
  438. package/lib/module/components/Icons/ForgotPasswordMessageIcon.js.map +0 -1
  439. package/lib/module/components/Icons/ForgotPasswordMessageIconTwo.js +0 -56
  440. package/lib/module/components/Icons/ForgotPasswordMessageIconTwo.js.map +0 -1
  441. package/lib/module/components/Icons/NewIndex.js +0 -36
  442. package/lib/module/components/Icons/NewIndex.js.map +0 -1
  443. package/lib/module/components/Icons/ResendOTP.js +0 -21
  444. package/lib/module/components/Icons/ResendOTP.js.map +0 -1
  445. package/lib/typescript/src/components/Icons/AlertIcon.d.ts +0 -7
  446. package/lib/typescript/src/components/Icons/AlertIcon.d.ts.map +0 -1
  447. package/lib/typescript/src/components/Icons/DeviceIcon.d.ts +0 -7
  448. package/lib/typescript/src/components/Icons/DeviceIcon.d.ts.map +0 -1
  449. package/lib/typescript/src/components/Icons/DoneIcon/DoneIcon.d.ts +0 -6
  450. package/lib/typescript/src/components/Icons/DoneIcon/DoneIcon.d.ts.map +0 -1
  451. package/lib/typescript/src/components/Icons/ForgotPasswordMessageIcon.d.ts +0 -3
  452. package/lib/typescript/src/components/Icons/ForgotPasswordMessageIcon.d.ts.map +0 -1
  453. package/lib/typescript/src/components/Icons/ForgotPasswordMessageIconTwo.d.ts +0 -3
  454. package/lib/typescript/src/components/Icons/ForgotPasswordMessageIconTwo.d.ts.map +0 -1
  455. package/lib/typescript/src/components/Icons/NewIndex.d.ts +0 -19
  456. package/lib/typescript/src/components/Icons/NewIndex.d.ts.map +0 -1
  457. package/lib/typescript/src/components/Icons/ResendOTP.d.ts +0 -7
  458. package/lib/typescript/src/components/Icons/ResendOTP.d.ts.map +0 -1
  459. package/src/components/Icons/AlertIcon.tsx +0 -18
  460. package/src/components/Icons/DeviceIcon.tsx +0 -18
  461. package/src/components/Icons/DoneIcon/DoneIcon.tsx +0 -17
  462. package/src/components/Icons/ForgotPasswordMessageIcon.tsx +0 -34
  463. package/src/components/Icons/ForgotPasswordMessageIconTwo.tsx +0 -32
  464. package/src/components/Icons/NewIndex.ts +0 -35
  465. package/src/components/Icons/ResendOTP.tsx +0 -13
  466. /package/src/{index.ts → index.tsx} +0 -0
@@ -1,8 +1,3 @@
1
- /**
2
- * @author Naresh Dhamu
3
- * @lastModified Wed 30 Jul 2025 at 02:56 PM
4
- */
5
-
6
1
  import React, { useState, useMemo } from 'react';
7
2
  import FastImage from 'react-native-fast-image';
8
3
  import { ActivityIndicator, View, StyleSheet } from 'react-native';
@@ -17,22 +12,36 @@ type SplashImageProps = {
17
12
  backgroundColor?: string;
18
13
  };
19
14
 
20
- const SplashImage: React.FC<SplashImageProps> = ({ fullscreen, height, resizeMode = 'contain', source, width }) => {
15
+ const SplashImage: React.FC<SplashImageProps> = ({
16
+ fullscreen,
17
+ height,
18
+ resizeMode = 'contain',
19
+ source,
20
+ width,
21
+ }) => {
21
22
  const [isLoading, setIsLoading] = useState(!!source);
22
23
 
23
24
  const imageStyles = useMemo(
24
25
  () => ({
25
26
  width: fullscreen ? Display.fullWidth : width,
26
27
  height: fullscreen ? Display.fullHeight : height,
27
- flex: 1
28
+ flex: 1,
28
29
  }),
29
30
  [fullscreen, width, height]
30
31
  );
31
32
 
32
- const handleLoadEnd = useMemo(() => (source ? () => setIsLoading(false) : undefined), [source]);
33
+ const handleLoadEnd = useMemo(
34
+ () => (source ? () => setIsLoading(false) : undefined),
35
+ [source]
36
+ );
33
37
  const resolveUri = (src?: string): string => {
34
38
  if (!src) return '';
35
- if (src.startsWith('http') || src.startsWith('https') || src.startsWith('file://')) return src;
39
+ if (
40
+ src.startsWith('http') ||
41
+ src.startsWith('https') ||
42
+ src.startsWith('file://')
43
+ )
44
+ return src;
36
45
  return `file://${src}`;
37
46
  };
38
47
 
@@ -56,11 +65,11 @@ const styles = StyleSheet.create({
56
65
  width: Display.fullWidth,
57
66
  height: Display.fullHeight,
58
67
  justifyContent: 'center',
59
- alignItems: 'center'
68
+ alignItems: 'center',
60
69
  },
61
70
  loader: {
62
- position: 'absolute'
63
- }
71
+ position: 'absolute',
72
+ },
64
73
  });
65
74
 
66
75
  export default React.memo(SplashImage);
@@ -24,7 +24,7 @@ const SplashLottie: React.FC<IProps> = ({
24
24
  source,
25
25
  resizeMode = 'contain',
26
26
  width,
27
- onAnimationFinish
27
+ onAnimationFinish,
28
28
  }) => {
29
29
  // Memoize the style object
30
30
  const lottieStyle = useMemo(
@@ -32,7 +32,7 @@ const SplashLottie: React.FC<IProps> = ({
32
32
  ...styles.base,
33
33
  width: fullscreen ? Display.fullWidth : width,
34
34
  height: fullscreen ? Display.fullHeight : height,
35
- ...(fullscreen ? styles.fullscreen : {})
35
+ ...(fullscreen ? styles.fullscreen : {}),
36
36
  }),
37
37
  [fullscreen, width, height]
38
38
  );
@@ -61,11 +61,11 @@ const SplashLottie: React.FC<IProps> = ({
61
61
 
62
62
  const styles = StyleSheet.create({
63
63
  base: {
64
- alignSelf: 'center'
64
+ alignSelf: 'center',
65
65
  },
66
66
  fullscreen: {
67
- flex: 1
68
- }
67
+ flex: 1,
68
+ },
69
69
  });
70
70
 
71
71
  export default React.memo(SplashLottie);
@@ -27,7 +27,7 @@ const SplashVideo: React.FC<IProps> = ({
27
27
  onEnd,
28
28
  onLoadStart,
29
29
  onLoaded,
30
- onError
30
+ onError,
31
31
  }) => {
32
32
  const videoRef = useRef<VideoRef>(null);
33
33
 
@@ -35,7 +35,7 @@ const SplashVideo: React.FC<IProps> = ({
35
35
  const videoStyle = useMemo(
36
36
  () => ({
37
37
  width: fullscreen ? Display.fullWidth : width,
38
- height: fullscreen ? Display.fullHeight : height
38
+ height: fullscreen ? Display.fullHeight : height,
39
39
  }),
40
40
  [fullscreen, width, height]
41
41
  );
@@ -55,7 +55,12 @@ const SplashVideo: React.FC<IProps> = ({
55
55
  const handleError = useCallback(
56
56
  (e: any) => {
57
57
  // More robust error handling
58
- const error = e?.error?.message || e?.message || e?.error || e || 'Unknown video error';
58
+ const error =
59
+ e?.error?.message ||
60
+ e?.message ||
61
+ e?.error ||
62
+ e ||
63
+ 'Unknown video error';
59
64
  console.error('Video playback error:', error);
60
65
  onError?.(error);
61
66
  },
@@ -63,7 +68,12 @@ const SplashVideo: React.FC<IProps> = ({
63
68
  );
64
69
  const resolveUri = (src?: string): string => {
65
70
  if (!src) return '';
66
- if (src.startsWith('http') || src.startsWith('https') || src.startsWith('file://')) return src;
71
+ if (
72
+ src.startsWith('http') ||
73
+ src.startsWith('https') ||
74
+ src.startsWith('file://')
75
+ )
76
+ return src;
67
77
  return `file://${src}`;
68
78
  };
69
79
  return (
@@ -89,7 +99,7 @@ const SplashVideo: React.FC<IProps> = ({
89
99
  hidePrevious: true,
90
100
  hideRewind: true,
91
101
  hideSeekBar: true,
92
- hideSettingButton: true
102
+ hideSettingButton: true,
93
103
  }}
94
104
  ignoreSilentSwitch="obey"
95
105
  playInBackground={false}
@@ -16,7 +16,7 @@ const Auth = {
16
16
  SignUp,
17
17
  OTP,
18
18
  ForgotPassword,
19
- SplashScreen
19
+ SplashScreen,
20
20
  };
21
21
 
22
22
  export { Auth };
@@ -1,5 +1,11 @@
1
1
  import React, { useMemo, useCallback } from 'react';
2
- import { View, StyleSheet, ImageBackground, type ViewStyle, type ImageStyle } from 'react-native';
2
+ import {
3
+ View,
4
+ StyleSheet,
5
+ ImageBackground,
6
+ type ViewStyle,
7
+ type ImageStyle,
8
+ } from 'react-native';
3
9
  import LinearGradient from 'react-native-linear-gradient';
4
10
  import { useInitSplashCacheSync } from '../../hooks/useInitSplashCacheSync';
5
11
  import type { ITheme } from '../../theme/themes';
@@ -24,30 +30,37 @@ export const BackgroundLayout: React.FC<BackgroundLayoutProps> = (props) => {
24
30
  resizeMode = 'cover',
25
31
  innerContainerStyle,
26
32
  onImageError,
27
- theme
33
+ theme,
28
34
  } = props;
29
35
 
30
36
  const {
31
- data: { localPathBackground }
37
+ data: { localPathBackground },
32
38
  } = useInitSplashCacheSync({
33
- backgroundUrl: backgroundImageUri || undefined
39
+ backgroundUrl: backgroundImageUri || undefined,
34
40
  });
35
41
 
36
42
  const resolvedImageUri = useMemo(() => {
37
43
  if (!backgroundImageUri) return undefined;
38
44
  const rawPath = localPathBackground || backgroundImageUri;
39
- const isRemoteUrl = rawPath.startsWith('http://') || rawPath.startsWith('https://');
45
+ const isRemoteUrl =
46
+ rawPath.startsWith('http://') || rawPath.startsWith('https://');
40
47
  return isRemoteUrl ? rawPath : `file://${rawPath}`;
41
48
  }, [backgroundImageUri, localPathBackground]);
42
49
 
43
50
  const containerStyle = useMemo(
44
- () => [styles.container, { backgroundColor: bgColor ?? theme.colors.background }],
51
+ () => [
52
+ styles.container,
53
+ { backgroundColor: bgColor ?? theme.colors.background },
54
+ ],
45
55
  [bgColor, theme.colors.background]
46
56
  );
47
57
 
48
58
  const handleImageLoadError = useCallback(
49
59
  (e: any) => {
50
- console.warn('[BackgroundLayout] Image load failed:', e?.nativeEvent?.error);
60
+ console.warn(
61
+ '[BackgroundLayout] Image load failed:',
62
+ e?.nativeEvent?.error
63
+ );
51
64
  onImageError?.(new Error('Background image failed to load'));
52
65
  },
53
66
  [onImageError]
@@ -57,7 +70,10 @@ export const BackgroundLayout: React.FC<BackgroundLayoutProps> = (props) => {
57
70
  const gradientColors = theme.colors.backgroundLayoutGradient;
58
71
  const count = gradientColors?.length ?? 0;
59
72
  const baseSteps = [0, 0.3, 0.4, 1, 1];
60
- const locations = [0, ...baseSteps.map((step) => Math.min(1, gradientSplitBackground + step))];
73
+ const locations = [
74
+ 0,
75
+ ...baseSteps.map((step) => Math.min(1, gradientSplitBackground + step)),
76
+ ];
61
77
 
62
78
  if (locations.length > count) {
63
79
  return locations.slice(0, count);
@@ -71,7 +87,13 @@ export const BackgroundLayout: React.FC<BackgroundLayoutProps> = (props) => {
71
87
  }, [theme.colors.backgroundLayoutGradient, gradientSplitBackground]);
72
88
 
73
89
  const renderChildren = (
74
- <View style={[styles.innerContainer, innerContainerStyle, bgColor ? { backgroundColor: bgColor } : null]}>
90
+ <View
91
+ style={[
92
+ styles.innerContainer,
93
+ innerContainerStyle,
94
+ bgColor ? { backgroundColor: bgColor } : null,
95
+ ]}
96
+ >
75
97
  {children}
76
98
  </View>
77
99
  );
@@ -85,8 +107,14 @@ export const BackgroundLayout: React.FC<BackgroundLayoutProps> = (props) => {
85
107
  <ImageBackground
86
108
  source={{ uri: resolvedImageUri }}
87
109
  resizeMode={resizeMode}
88
- style={[styles.imageContainer, { backgroundColor: theme.colors.background }]}
89
- imageStyle={[styles.imageStyle, { backgroundColor: theme.colors.background }]}
110
+ style={[
111
+ styles.imageContainer,
112
+ { backgroundColor: theme.colors.background },
113
+ ]}
114
+ imageStyle={[
115
+ styles.imageStyle,
116
+ { backgroundColor: theme.colors.background },
117
+ ]}
90
118
  onError={handleImageLoadError}
91
119
  >
92
120
  {showGradient && (
@@ -111,26 +139,26 @@ const styles = StyleSheet.create({
111
139
  container: {
112
140
  flex: 1,
113
141
  width: '100%',
114
- height: '100%'
142
+ height: '100%',
115
143
  },
116
144
  imageContainer: {
117
145
  flex: 1,
118
146
  width: '100%',
119
- height: '100%'
147
+ height: '100%',
120
148
  },
121
149
  imageStyle: {
122
150
  height: '60%',
123
151
  width: '100%',
124
- alignSelf: 'flex-start'
152
+ alignSelf: 'flex-start',
125
153
  } as ImageStyle,
126
154
  gradientOverlay: {
127
155
  ...StyleSheet.absoluteFillObject,
128
- pointerEvents: 'none'
156
+ pointerEvents: 'none',
129
157
  },
130
158
  innerContainer: {
131
159
  flex: 1,
132
160
  width: '100%',
133
161
  justifyContent: 'center',
134
- alignItems: 'center'
135
- }
162
+ alignItems: 'center',
163
+ },
136
164
  });
@@ -1,17 +1,18 @@
1
- /**
2
- * @author Naresh Dhamu
3
- * @lastModified Wed 25 Jun 2025 at 11:30 AM
4
- */
5
-
6
1
  import React from 'react';
7
- import { ScrollView, StyleSheet, View, type TextStyle, type ViewStyle } from 'react-native';
2
+ import {
3
+ ScrollView,
4
+ StyleSheet,
5
+ View,
6
+ type TextStyle,
7
+ type ViewStyle,
8
+ ActivityIndicator,
9
+ } from 'react-native';
8
10
  import Markdown from 'react-native-markdown-display';
9
11
  import { Text } from '../Text';
10
12
  import { useTheme } from '../../theme/hook/useTheme';
11
13
  import AppHeader from '../Headers/AppHeader';
12
14
  import { scale, moderateScale } from 'react-native-size-matters';
13
15
  import type { AppTheme, ITheme } from '../../theme/themes';
14
- import { ActivityIndicator } from 'react-native-paper';
15
16
  import { RFValue } from 'react-native-responsive-fontsize';
16
17
 
17
18
  type BlogViewProps = {
@@ -48,7 +49,7 @@ export const BlogView: React.FC<BlogViewProps> = ({
48
49
  renderHeader,
49
50
  renderContent,
50
51
  renderEmpty,
51
- isLoading = false
52
+ isLoading = false,
52
53
  }) => {
53
54
  const { theme: appliedTheme } = useTheme(theme);
54
55
 
@@ -64,7 +65,7 @@ export const BlogView: React.FC<BlogViewProps> = ({
64
65
  theme={appliedTheme}
65
66
  titleStyle={{
66
67
  ...styles.headerTitle,
67
- color: appliedTheme.colors.onBackground
68
+ color: appliedTheme.colors.onBackground,
68
69
  }}
69
70
  />
70
71
  );
@@ -81,32 +82,49 @@ export const BlogView: React.FC<BlogViewProps> = ({
81
82
 
82
83
  if (renderContent) return renderContent();
83
84
  if (content) {
84
- return <Markdown style={getMarkdownStyles(appliedTheme)}>{content}</Markdown>;
85
+ return (
86
+ <Markdown style={getMarkdownStyles(appliedTheme)}>{content}</Markdown>
87
+ );
85
88
  }
86
89
 
87
90
  if (renderEmpty) return renderEmpty();
88
91
 
89
92
  return (
90
93
  <View style={styles.center}>
91
- <Text style={[styles.emptyText, { color: appliedTheme.colors.onSurfaceVariant }]}>{emptyText}</Text>
94
+ <Text
95
+ style={[
96
+ styles.emptyText,
97
+ { color: appliedTheme.colors.onSurfaceVariant },
98
+ ]}
99
+ >
100
+ {emptyText}
101
+ </Text>
92
102
  </View>
93
103
  );
94
104
  };
95
105
 
96
106
  return (
97
- <View style={[styles.flex, { backgroundColor: appliedTheme.colors.background }]}>
107
+ <View
108
+ style={[styles.flex, { backgroundColor: appliedTheme.colors.background }]}
109
+ >
98
110
  {renderFinalHeader()}
99
111
  {scrollable ? (
100
112
  <ScrollView
101
113
  style={styles.flex}
102
- contentContainerStyle={[styles.container, containerStyle, { paddingBottom: scale(40), flexGrow: 1 }]}
114
+ contentContainerStyle={[
115
+ styles.container,
116
+ containerStyle,
117
+ { paddingBottom: scale(40), flexGrow: 1 },
118
+ ]}
103
119
  showsVerticalScrollIndicator={false}
104
120
  keyboardShouldPersistTaps="handled"
105
121
  >
106
122
  {renderFinalContent()}
107
123
  </ScrollView>
108
124
  ) : (
109
- <View style={[styles.container, containerStyle]}>{renderFinalContent()}</View>
125
+ <View style={[styles.container, containerStyle]}>
126
+ {renderFinalContent()}
127
+ </View>
110
128
  )}
111
129
  </View>
112
130
  );
@@ -123,19 +141,19 @@ const getMarkdownStyles = (theme: ITheme): { [key: string]: TextStyle } => {
123
141
  fontSize: RFValue(21),
124
142
  fontWeight: 'bold',
125
143
  color: baseColor,
126
- marginBottom: scale(12)
144
+ marginBottom: scale(12),
127
145
  },
128
146
  heading2: {
129
147
  fontSize: RFValue(19),
130
148
  fontWeight: 'bold',
131
149
  color: baseColor,
132
- marginBottom: scale(10)
150
+ marginBottom: scale(10),
133
151
  },
134
152
  heading3: {
135
153
  fontSize: RFValue(17),
136
154
  fontWeight: 'bold',
137
155
  color: baseColor,
138
- marginBottom: scale(8)
156
+ marginBottom: scale(8),
139
157
  },
140
158
  strong: { fontWeight: 'bold', color: baseColor },
141
159
  listItem: { color: baseColor, marginBottom: scale(6) },
@@ -143,7 +161,9 @@ const getMarkdownStyles = (theme: ITheme): { [key: string]: TextStyle } => {
143
161
  ordered_list: { color: baseColor },
144
162
  link: { color: theme.colors.primary },
145
163
  blockquote: {
146
- backgroundColor: theme.dark ? theme.colors.surfaceVariant : theme.colors.surface,
164
+ backgroundColor: theme.dark
165
+ ? theme.colors.surfaceVariant
166
+ : theme.colors.surface,
147
167
  color: theme.colors.onSurface,
148
168
  borderLeftWidth: scale(1.5),
149
169
  borderLeftColor: theme.colors.primary,
@@ -151,14 +171,14 @@ const getMarkdownStyles = (theme: ITheme): { [key: string]: TextStyle } => {
151
171
  borderRadius: scale(4),
152
172
  marginVertical: scale(10),
153
173
  fontStyle: 'italic',
154
- fontSize: RFValue(15)
174
+ fontSize: RFValue(15),
155
175
  },
156
176
  code_inline: {
157
177
  backgroundColor: theme.colors.surfaceVariant,
158
178
  color: baseColor,
159
179
  fontFamily: 'monospace',
160
180
  paddingHorizontal: scale(4),
161
- borderRadius: scale(4)
181
+ borderRadius: scale(4),
162
182
  },
163
183
 
164
184
  code_block: {
@@ -166,47 +186,47 @@ const getMarkdownStyles = (theme: ITheme): { [key: string]: TextStyle } => {
166
186
  color: baseColor,
167
187
  fontFamily: 'monospace',
168
188
  padding: scale(8),
169
- borderRadius: scale(6)
189
+ borderRadius: scale(6),
170
190
  },
171
191
  fence: {
172
192
  backgroundColor: theme.colors.surfaceVariant,
173
- color: baseColor
193
+ color: baseColor,
174
194
  },
175
195
  hr: {
176
196
  borderBottomColor: theme.colors.outline,
177
197
  borderBottomWidth: StyleSheet.hairlineWidth,
178
- marginVertical: scale(16)
179
- }
198
+ marginVertical: scale(16),
199
+ },
180
200
  };
181
201
  };
182
202
 
183
203
  const styles = StyleSheet.create({
184
204
  flex: {
185
- flex: 1
205
+ flex: 1,
186
206
  },
187
207
  container: {
188
- padding: scale(16)
208
+ padding: scale(16),
189
209
  },
190
210
  center: {
191
211
  flex: 1,
192
212
  alignItems: 'center',
193
213
  justifyContent: 'center',
194
- paddingHorizontal: scale(16)
214
+ paddingHorizontal: scale(16),
195
215
  },
196
216
  fullCenter: {
197
217
  flex: 1,
198
218
  alignItems: 'center',
199
219
  justifyContent: 'center',
200
- paddingHorizontal: scale(16)
220
+ paddingHorizontal: scale(16),
201
221
  },
202
222
  emptyText: {
203
223
  textAlign: 'center',
204
- fontSize: RFValue(13)
224
+ fontSize: RFValue(13),
205
225
  },
206
226
  headerTitle: {
207
227
  fontSize: RFValue(15),
208
- fontWeight: '600'
209
- }
228
+ fontWeight: '600',
229
+ },
210
230
  });
211
231
 
212
232
  export namespace BlogView {
@@ -3,7 +3,14 @@
3
3
  * @lastModified Wed 02 Jul 2025 at 09:30 AM
4
4
  */
5
5
  import React from 'react';
6
- import { TouchableOpacity, StyleSheet, Alert, Platform, type ViewStyle, type StyleProp } from 'react-native';
6
+ import {
7
+ TouchableOpacity,
8
+ StyleSheet,
9
+ Alert,
10
+ Platform,
11
+ type ViewStyle,
12
+ type StyleProp,
13
+ } from 'react-native';
7
14
  import { ArrowLeft } from 'lucide-react-native';
8
15
  import { useSafeAreaInsets } from 'react-native-safe-area-context';
9
16
  import { useTheme } from '../../theme/hook/useTheme';
@@ -20,7 +27,14 @@ type BackBtnProps = {
20
27
  enableBlur?: boolean;
21
28
  };
22
29
 
23
- const BackBtn: React.FC<BackBtnProps> = ({ size = scale(24), color, onPress, style, theme, enableBlur = false }) => {
30
+ const BackBtn: React.FC<BackBtnProps> = ({
31
+ size = scale(24),
32
+ color,
33
+ onPress,
34
+ style,
35
+ theme,
36
+ enableBlur = false,
37
+ }) => {
24
38
  const insets = useSafeAreaInsets();
25
39
  const { theme: appliedTheme } = useTheme(theme);
26
40
 
@@ -28,7 +42,10 @@ const BackBtn: React.FC<BackBtnProps> = ({ size = scale(24), color, onPress, sty
28
42
  if (onPress) {
29
43
  onPress();
30
44
  } else {
31
- Alert.alert('Back Action Not Provided', 'Please define the back action using onPress prop.');
45
+ Alert.alert(
46
+ 'Back Action Not Provided',
47
+ 'Please define the back action using onPress prop.'
48
+ );
32
49
  }
33
50
  };
34
51
 
@@ -37,7 +54,7 @@ const BackBtn: React.FC<BackBtnProps> = ({ size = scale(24), color, onPress, sty
37
54
  const calculatedTop = Platform.select({
38
55
  ios: insets.top > 20 ? insets.top - verticalScale(5) : insets.top,
39
56
  android: insets.top + verticalScale(5),
40
- default: insets.top
57
+ default: insets.top,
41
58
  });
42
59
 
43
60
  const flattenedStyle = StyleSheet.flatten(style) || {};
@@ -48,7 +65,11 @@ const BackBtn: React.FC<BackBtnProps> = ({ size = scale(24), color, onPress, sty
48
65
  return (
49
66
  <TouchableOpacity
50
67
  activeOpacity={0.8}
51
- style={[styles.container, !hasTopInStyle && { top: calculatedTop }, style]}
68
+ style={[
69
+ styles.container,
70
+ !hasTopInStyle && { top: calculatedTop },
71
+ style,
72
+ ]}
52
73
  onPress={handlePress}
53
74
  >
54
75
  {shouldRenderBlur && (
@@ -57,8 +78,9 @@ const BackBtn: React.FC<BackBtnProps> = ({ size = scale(24), color, onPress, sty
57
78
  blurType="light"
58
79
  blurAmount={10}
59
80
  reducedTransparencyFallbackColor={
60
- (typeof flattenedStyle.backgroundColor === 'string' ? flattenedStyle.backgroundColor : undefined) ||
61
- String(appliedTheme.colors.backdrop)
81
+ (typeof flattenedStyle.backgroundColor === 'string'
82
+ ? flattenedStyle.backgroundColor
83
+ : undefined) || String(appliedTheme.colors.backdrop)
62
84
  }
63
85
  />
64
86
  )}
@@ -78,6 +100,6 @@ const styles = StyleSheet.create({
78
100
  borderRadius: scale(100),
79
101
  justifyContent: 'center',
80
102
  alignItems: 'center',
81
- overflow: 'hidden'
82
- }
103
+ overflow: 'hidden',
104
+ },
83
105
  });