@zezosoft/zezo-ott-react-native-ui-kit 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/module/components/Account/Account.js +7 -6
- package/lib/module/components/Account/Account.js.map +1 -1
- package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js +39 -27
- package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js.map +1 -1
- package/lib/module/components/Auth/Login/LoginWithEmail.js +39 -25
- package/lib/module/components/Auth/Login/LoginWithEmail.js.map +1 -1
- package/lib/module/components/Auth/Login/LoginWithPhone.js +34 -25
- package/lib/module/components/Auth/Login/LoginWithPhone.js.map +1 -1
- package/lib/module/components/Auth/OTP/OTP.js +61 -42
- package/lib/module/components/Auth/OTP/OTP.js.map +1 -1
- package/lib/module/components/Auth/SignUp/SignUp.js +41 -26
- package/lib/module/components/Auth/SignUp/SignUp.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/SplashScreen.js +132 -0
- package/lib/module/components/Auth/SplashScreen/SplashScreen.js.map +1 -0
- package/lib/module/components/Auth/SplashScreen/components/SplashImage/SplashImage.js +61 -0
- package/lib/module/components/Auth/SplashScreen/components/SplashImage/SplashImage.js.map +1 -0
- package/lib/module/components/{SplashScreen → Auth/SplashScreen}/components/SplashLottie/SplashLottie.js +8 -17
- package/lib/module/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.js.map +1 -0
- package/lib/module/components/{SplashScreen → Auth/SplashScreen}/components/SplashVideo/SplashVideo.js +25 -11
- package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js.map +1 -0
- package/lib/module/components/Auth/index.js +3 -1
- package/lib/module/components/Auth/index.js.map +1 -1
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js +77 -57
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js.map +1 -1
- package/lib/module/components/BlogView/BlogView.js +28 -9
- package/lib/module/components/BlogView/BlogView.js.map +1 -1
- package/lib/module/components/Button/BackBtn.js +1 -1
- package/lib/module/components/Button/BackBtn.js.map +1 -1
- package/lib/module/components/Button/MenuBtn.js +5 -3
- package/lib/module/components/Button/MenuBtn.js.map +1 -1
- package/lib/module/components/Button/PrimaryBtn.js +3 -2
- package/lib/module/components/Button/PrimaryBtn.js.map +1 -1
- package/lib/module/components/Button/TextButton.js +3 -2
- package/lib/module/components/Button/TextButton.js.map +1 -1
- package/lib/module/components/Content/Card/Category/Category.js +3 -2
- package/lib/module/components/Content/Card/Category/Category.js.map +1 -1
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js +10 -7
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/Styles/One.js +6 -4
- package/lib/module/components/Content/Card/Sliders/Styles/One.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js +3 -2
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/index.js +1 -1
- package/lib/module/components/Content/Card/Sliders/index.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Five.js +7 -6
- package/lib/module/components/Content/Card/Styles/Five.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Four.js +9 -7
- package/lib/module/components/Content/Card/Styles/Four.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/One.js +33 -70
- package/lib/module/components/Content/Card/Styles/One.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/RotateInOut.js +6 -5
- package/lib/module/components/Content/Card/Styles/RotateInOut.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Six.js +7 -5
- package/lib/module/components/Content/Card/Styles/Six.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Three.js +6 -5
- package/lib/module/components/Content/Card/Styles/Three.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/TopTen.js +10 -12
- package/lib/module/components/Content/Card/Styles/TopTen.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Two.js +8 -6
- package/lib/module/components/Content/Card/Styles/Two.js.map +1 -1
- package/lib/module/components/Content/Card/components/CardPoster.js +17 -9
- package/lib/module/components/Content/Card/components/CardPoster.js.map +1 -1
- package/lib/module/components/Content/Card/components/NavigateToMore.js +4 -3
- package/lib/module/components/Content/Card/components/NavigateToMore.js.map +1 -1
- package/lib/module/components/Content/Card/components/NoContentFallback.js +5 -4
- package/lib/module/components/Content/Card/components/NoContentFallback.js.map +1 -1
- package/lib/module/components/Content/Card/components/ThumbnailCard.js +2 -1
- package/lib/module/components/Content/Card/components/ThumbnailCard.js.map +1 -1
- package/lib/module/components/Content/Content.js +21 -7
- package/lib/module/components/Content/Content.js.map +1 -1
- package/lib/module/components/Content/Sections.js +1 -1
- package/lib/module/components/Content/Sections.js.map +1 -1
- package/lib/module/components/ContentView/ContentView.js +8 -6
- package/lib/module/components/ContentView/ContentView.js.map +1 -1
- package/lib/module/components/ContentView/MoreContentList.js +211 -0
- package/lib/module/components/ContentView/MoreContentList.js.map +1 -0
- package/lib/module/components/ContentView/components/AboutSection.js +5 -4
- package/lib/module/components/ContentView/components/AboutSection.js.map +1 -1
- package/lib/module/components/ContentView/components/CastCard.js +5 -4
- package/lib/module/components/ContentView/components/CastCard.js.map +1 -1
- package/lib/module/components/ContentView/components/EpisodeCard.js +23 -3
- package/lib/module/components/ContentView/components/EpisodeCard.js.map +1 -1
- package/lib/module/components/ContentView/components/GenreTags.js +2 -1
- package/lib/module/components/ContentView/components/GenreTags.js.map +1 -1
- package/lib/module/components/ContentView/components/HeroBanner.js +14 -5
- package/lib/module/components/ContentView/components/HeroBanner.js.map +1 -1
- package/lib/module/components/ContentView/components/Title.js +4 -3
- package/lib/module/components/ContentView/components/Title.js.map +1 -1
- package/lib/module/components/ContentView/index.js +1 -0
- package/lib/module/components/ContentView/index.js.map +1 -1
- package/lib/module/components/Headers/AppHeader.js +20 -25
- package/lib/module/components/Headers/AppHeader.js.map +1 -1
- package/lib/module/components/Headers/One.js +1 -1
- package/lib/module/components/Headers/Three.js +5 -3
- package/lib/module/components/Headers/Three.js.map +1 -1
- package/lib/module/components/Headers/Two.js +5 -3
- package/lib/module/components/Headers/Two.js.map +1 -1
- package/lib/module/components/Input/InputOne.js +6 -4
- package/lib/module/components/Input/InputOne.js.map +1 -1
- package/lib/module/components/Input/InputTwo.js +5 -4
- package/lib/module/components/Input/InputTwo.js.map +1 -1
- package/lib/module/components/Input/PhoneNumberInput.js +12 -11
- package/lib/module/components/Input/PhoneNumberInput.js.map +1 -1
- package/lib/module/components/Keyboard/HideKeyboard.js +40 -12
- package/lib/module/components/Keyboard/HideKeyboard.js.map +1 -1
- package/lib/module/components/Logo/Logo.js +2 -1
- package/lib/module/components/Logo/Logo.js.map +1 -1
- package/lib/module/components/Search/One.js +6 -4
- package/lib/module/components/Search/One.js.map +1 -1
- package/lib/module/components/Search/components/RecentSearchesSection.js +10 -9
- package/lib/module/components/Search/components/RecentSearchesSection.js.map +1 -1
- package/lib/module/components/Search/components/SearchCard.js +6 -5
- package/lib/module/components/Search/components/SearchCard.js.map +1 -1
- package/lib/module/components/Settings/AppSettings.js +5 -4
- package/lib/module/components/Settings/AppSettings.js.map +1 -1
- package/lib/module/components/Subscription/SubOne.js +16 -15
- package/lib/module/components/Subscription/SubOne.js.map +1 -1
- package/lib/module/components/TabBar/One.js +5 -3
- package/lib/module/components/TabBar/One.js.map +1 -1
- package/lib/module/components/TabBar/Three.js +18 -14
- package/lib/module/components/TabBar/Three.js.map +1 -1
- package/lib/module/components/TabBar/Two.js +4 -2
- package/lib/module/components/TabBar/Two.js.map +1 -1
- package/lib/module/components/Text/Text.js +4 -4
- package/lib/module/components/Text/Text.js.map +1 -1
- package/lib/module/components/User/DeviceSessions/DeviceSessions.js +7 -6
- package/lib/module/components/User/DeviceSessions/DeviceSessions.js.map +1 -1
- package/lib/module/components/User/WatchHistory/WatchHistory.js +6 -7
- package/lib/module/components/User/WatchHistory/WatchHistory.js.map +1 -1
- package/lib/module/components/User/WatchLater/WatchLater.js +12 -9
- package/lib/module/components/User/WatchLater/WatchLater.js.map +1 -1
- package/lib/module/components/User/components/UserAvatar.js +1 -1
- package/lib/module/components/User/components/UserAvatar.js.map +1 -1
- package/lib/module/components/User/components/UserSection.js +5 -4
- package/lib/module/components/User/components/UserSection.js.map +1 -1
- package/lib/module/components/index.js +0 -1
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/layout/SafeAreaWrapper.js +12 -11
- package/lib/module/components/layout/SafeAreaWrapper.js.map +1 -1
- package/lib/module/hooks/useInitSplashCacheSync.js +67 -63
- package/lib/module/hooks/useInitSplashCacheSync.js.map +1 -1
- package/lib/module/hooks/useKeyboard.js +7 -9
- package/lib/module/hooks/useKeyboard.js.map +1 -1
- package/lib/module/hooks/usePaginatedSection.js +10 -3
- package/lib/module/hooks/usePaginatedSection.js.map +1 -1
- package/lib/module/theme/ThemeProvider.js +55 -52
- package/lib/module/theme/ThemeProvider.js.map +1 -1
- package/lib/module/theme/hook/useTheme.js +45 -0
- package/lib/module/theme/hook/useTheme.js.map +1 -0
- package/lib/module/theme/index.js +1 -0
- package/lib/module/theme/index.js.map +1 -1
- package/lib/module/theme/themes.js +1 -1
- package/lib/typescript/src/components/Account/Account.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/ForgotPassword/ForgotPassword.d.ts +9 -6
- package/lib/typescript/src/components/Auth/ForgotPassword/ForgotPassword.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/Login/LoginWithEmail.d.ts +6 -2
- package/lib/typescript/src/components/Auth/Login/LoginWithEmail.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/Login/LoginWithPhone.d.ts +6 -2
- package/lib/typescript/src/components/Auth/Login/LoginWithPhone.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/OTP/OTP.d.ts +7 -3
- package/lib/typescript/src/components/Auth/OTP/OTP.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/SignUp/SignUp.d.ts +6 -2
- package/lib/typescript/src/components/Auth/SignUp/SignUp.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/SplashScreen/SplashScreen.d.ts +34 -0
- package/lib/typescript/src/components/Auth/SplashScreen/SplashScreen.d.ts.map +1 -0
- package/lib/typescript/src/components/{SplashScreen → Auth/SplashScreen}/components/SplashImage/SplashImage.d.ts +2 -3
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.d.ts.map +1 -0
- package/lib/typescript/src/components/{SplashScreen → Auth/SplashScreen}/components/SplashLottie/SplashLottie.d.ts +1 -1
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.d.ts.map +1 -0
- package/lib/typescript/src/components/{SplashScreen → Auth/SplashScreen}/components/SplashVideo/SplashVideo.d.ts +1 -1
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/index.d.ts +49 -11
- package/lib/typescript/src/components/Auth/index.d.ts.map +1 -1
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayout.d.ts +5 -4
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayout.d.ts.map +1 -1
- package/lib/typescript/src/components/BlogView/BlogView.d.ts +1 -0
- package/lib/typescript/src/components/BlogView/BlogView.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/MenuBtn.d.ts +1 -8
- package/lib/typescript/src/components/Button/MenuBtn.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/PrimaryBtn.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/TextButton.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Category/Category.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/NowWatching/NowWatching.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Sliders/index.d.ts +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Five.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Four.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/RotateInOut.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Six.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Three.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/TopTen.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts +4 -0
- package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/NavigateToMore.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/NoContentFallback.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/ThumbnailCard.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Content.d.ts +1 -0
- package/lib/typescript/src/components/Content/Content.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/MoreContentList.d.ts +27 -0
- package/lib/typescript/src/components/ContentView/MoreContentList.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/components/AboutSection.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/CastCard.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/GenreTags.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/HeroBanner.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/Title.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/index.d.ts +1 -0
- package/lib/typescript/src/components/ContentView/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/AppHeader.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/Three.d.ts +1 -0
- package/lib/typescript/src/components/Headers/Three.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/Two.d.ts +1 -0
- package/lib/typescript/src/components/Headers/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/Input/InputOne.d.ts.map +1 -1
- package/lib/typescript/src/components/Input/InputTwo.d.ts.map +1 -1
- package/lib/typescript/src/components/Input/PhoneNumberInput.d.ts.map +1 -1
- package/lib/typescript/src/components/Keyboard/HideKeyboard.d.ts +1 -1
- package/lib/typescript/src/components/Keyboard/HideKeyboard.d.ts.map +1 -1
- package/lib/typescript/src/components/Logo/Logo.d.ts.map +1 -1
- package/lib/typescript/src/components/Search/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Search/components/RecentSearchesSection.d.ts.map +1 -1
- package/lib/typescript/src/components/Search/components/SearchCard.d.ts.map +1 -1
- package/lib/typescript/src/components/Settings/AppSettings.d.ts.map +1 -1
- package/lib/typescript/src/components/Subscription/SubOne.d.ts.map +1 -1
- package/lib/typescript/src/components/Subscription/index.d.ts.map +1 -1
- package/lib/typescript/src/components/TabBar/One.d.ts.map +1 -1
- package/lib/typescript/src/components/TabBar/Three.d.ts +2 -2
- package/lib/typescript/src/components/TabBar/Three.d.ts.map +1 -1
- package/lib/typescript/src/components/TabBar/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/User/DeviceSessions/DeviceSessions.d.ts.map +1 -1
- package/lib/typescript/src/components/User/WatchHistory/WatchHistory.d.ts.map +1 -1
- package/lib/typescript/src/components/User/WatchLater/WatchLater.d.ts.map +1 -1
- package/lib/typescript/src/components/User/components/UserSection.d.ts.map +1 -1
- package/lib/typescript/src/components/index.d.ts +0 -1
- package/lib/typescript/src/components/index.d.ts.map +1 -1
- package/lib/typescript/src/components/layout/SafeAreaWrapper.d.ts +2 -4
- package/lib/typescript/src/components/layout/SafeAreaWrapper.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useInitSplashCacheSync.d.ts +1 -1
- package/lib/typescript/src/hooks/useInitSplashCacheSync.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useKeyboard.d.ts.map +1 -1
- package/lib/typescript/src/hooks/usePaginatedSection.d.ts +1 -0
- package/lib/typescript/src/hooks/usePaginatedSection.d.ts.map +1 -1
- package/lib/typescript/src/theme/ThemeProvider.d.ts +8 -4
- package/lib/typescript/src/theme/ThemeProvider.d.ts.map +1 -1
- package/lib/typescript/src/theme/hook/useTheme.d.ts +9 -0
- package/lib/typescript/src/theme/hook/useTheme.d.ts.map +1 -0
- package/lib/typescript/src/theme/index.d.ts +1 -0
- package/lib/typescript/src/theme/index.d.ts.map +1 -1
- package/lib/typescript/src/types/content/content-view.types.d.ts +7 -3
- package/lib/typescript/src/types/content/content-view.types.d.ts.map +1 -1
- package/package.json +3 -2
- package/src/components/Account/Account.tsx +7 -6
- package/src/components/Auth/ForgotPassword/ForgotPassword.tsx +51 -32
- package/src/components/Auth/Login/LoginWithEmail.tsx +45 -26
- package/src/components/Auth/Login/LoginWithPhone.tsx +38 -24
- package/src/components/Auth/OTP/OTP.tsx +96 -61
- package/src/components/Auth/SignUp/SignUp.tsx +49 -31
- package/src/components/Auth/SplashScreen/SplashScreen.tsx +166 -0
- package/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.tsx +66 -0
- package/src/components/{SplashScreen → Auth/SplashScreen}/components/SplashLottie/SplashLottie.tsx +7 -19
- package/src/components/{SplashScreen → Auth/SplashScreen}/components/SplashVideo/SplashVideo.tsx +23 -14
- package/src/components/Auth/index.ts +3 -1
- package/src/components/BackgroundLayout/BackgroundLayout.tsx +72 -50
- package/src/components/BlogView/BlogView.tsx +29 -9
- package/src/components/Button/BackBtn.tsx +1 -1
- package/src/components/Button/MenuBtn.tsx +6 -9
- package/src/components/Button/PrimaryBtn.tsx +3 -2
- package/src/components/Button/TextButton.tsx +3 -2
- package/src/components/Content/Card/Category/Category.tsx +3 -2
- package/src/components/Content/Card/NowWatching/NowWatching.tsx +15 -8
- package/src/components/Content/Card/Sliders/Styles/One.tsx +4 -3
- package/src/components/Content/Card/Sliders/Styles/Two.tsx +3 -2
- package/src/components/Content/Card/Sliders/index.ts +1 -1
- package/src/components/Content/Card/Styles/Five.tsx +7 -6
- package/src/components/Content/Card/Styles/Four.tsx +7 -6
- package/src/components/Content/Card/Styles/One.tsx +44 -111
- package/src/components/Content/Card/Styles/RotateInOut.tsx +5 -5
- package/src/components/Content/Card/Styles/Six.tsx +7 -5
- package/src/components/Content/Card/Styles/Three.tsx +5 -5
- package/src/components/Content/Card/Styles/TopTen.tsx +10 -14
- package/src/components/Content/Card/Styles/Two.tsx +9 -7
- package/src/components/Content/Card/components/CardPoster.tsx +24 -11
- package/src/components/Content/Card/components/NavigateToMore.tsx +4 -3
- package/src/components/Content/Card/components/NoContentFallback.tsx +5 -4
- package/src/components/Content/Card/components/ThumbnailCard.tsx +2 -1
- package/src/components/Content/Content.tsx +38 -7
- package/src/components/Content/Sections.tsx +1 -1
- package/src/components/ContentView/ContentView.tsx +6 -6
- package/src/components/ContentView/MoreContentList.tsx +238 -0
- package/src/components/ContentView/components/AboutSection.tsx +5 -4
- package/src/components/ContentView/components/CastCard.tsx +5 -4
- package/src/components/ContentView/components/EpisodeCard.tsx +30 -4
- package/src/components/ContentView/components/GenreTags.tsx +2 -1
- package/src/components/ContentView/components/HeroBanner.tsx +10 -6
- package/src/components/ContentView/components/Title.tsx +4 -3
- package/src/components/ContentView/index.ts +1 -0
- package/src/components/Headers/AppHeader.tsx +20 -34
- package/src/components/Headers/One.tsx +1 -1
- package/src/components/Headers/Three.tsx +4 -3
- package/src/components/Headers/Two.tsx +4 -3
- package/src/components/Input/InputOne.tsx +6 -4
- package/src/components/Input/InputTwo.tsx +5 -4
- package/src/components/Input/PhoneNumberInput.tsx +12 -11
- package/src/components/Keyboard/HideKeyboard.tsx +41 -15
- package/src/components/Logo/Logo.tsx +2 -1
- package/src/components/Search/One.tsx +6 -5
- package/src/components/Search/components/RecentSearchesSection.tsx +10 -9
- package/src/components/Search/components/SearchCard.tsx +6 -5
- package/src/components/Settings/AppSettings.tsx +14 -13
- package/src/components/Subscription/SubOne.tsx +16 -15
- package/src/components/TabBar/One.tsx +6 -3
- package/src/components/TabBar/Three.tsx +28 -14
- package/src/components/TabBar/Two.tsx +4 -2
- package/src/components/Text/Text.tsx +4 -4
- package/src/components/User/DeviceSessions/DeviceSessions.tsx +7 -6
- package/src/components/User/WatchHistory/WatchHistory.tsx +5 -7
- package/src/components/User/WatchLater/WatchLater.tsx +12 -9
- package/src/components/User/components/UserAvatar.tsx +1 -1
- package/src/components/User/components/UserSection.tsx +5 -4
- package/src/components/index.ts +0 -1
- package/src/components/layout/SafeAreaWrapper.tsx +16 -9
- package/src/hooks/useInitSplashCacheSync.ts +74 -87
- package/src/hooks/useKeyboard.ts +9 -8
- package/src/hooks/usePaginatedSection.ts +7 -3
- package/src/theme/ThemeProvider.tsx +59 -55
- package/src/theme/hook/useTheme.ts +41 -0
- package/src/theme/index.ts +1 -0
- package/src/theme/themes.ts +1 -1
- package/src/types/content/content-view.types.ts +4 -2
- package/lib/module/components/SplashScreen/SplashScreen.js +0 -109
- package/lib/module/components/SplashScreen/SplashScreen.js.map +0 -1
- package/lib/module/components/SplashScreen/components/SplashImage/SplashImage.js +0 -68
- package/lib/module/components/SplashScreen/components/SplashImage/SplashImage.js.map +0 -1
- package/lib/module/components/SplashScreen/components/SplashLottie/SplashLottie.js.map +0 -1
- package/lib/module/components/SplashScreen/components/SplashVideo/SplashVideo.js.map +0 -1
- package/lib/module/components/SplashScreen/index.js +0 -9
- package/lib/module/components/SplashScreen/index.js.map +0 -1
- package/lib/typescript/src/components/SplashScreen/SplashScreen.d.ts +0 -32
- package/lib/typescript/src/components/SplashScreen/SplashScreen.d.ts.map +0 -1
- package/lib/typescript/src/components/SplashScreen/components/SplashImage/SplashImage.d.ts.map +0 -1
- package/lib/typescript/src/components/SplashScreen/components/SplashLottie/SplashLottie.d.ts.map +0 -1
- package/lib/typescript/src/components/SplashScreen/components/SplashVideo/SplashVideo.d.ts.map +0 -1
- package/lib/typescript/src/components/SplashScreen/index.d.ts +0 -6
- package/lib/typescript/src/components/SplashScreen/index.d.ts.map +0 -1
- package/src/components/SplashScreen/SplashScreen.tsx +0 -131
- package/src/components/SplashScreen/components/SplashImage/SplashImage.tsx +0 -84
- package/src/components/SplashScreen/index.ts +0 -6
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from 'react-native';
|
|
18
18
|
import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
19
19
|
import { moderateScale, scale, verticalScale } from 'react-native-size-matters';
|
|
20
|
-
import { useTheme } from '../../../../theme';
|
|
20
|
+
import { useTheme } from '../../../../theme/hook/useTheme';
|
|
21
21
|
import NavigateToMore from '../components/NavigateToMore';
|
|
22
22
|
import { usePaginatedSection } from '../../../../hooks/usePaginatedSection';
|
|
23
23
|
import type { IContentData, IGetSectionData, ISectionContent, MoreFetchData } from '../../../../types';
|
|
@@ -26,6 +26,7 @@ import FastImage from 'react-native-fast-image';
|
|
|
26
26
|
import LinearGradient from 'react-native-linear-gradient';
|
|
27
27
|
import { Text } from '../../../Text';
|
|
28
28
|
import CardPoster from '../components/CardPoster';
|
|
29
|
+
import { RFValue } from 'react-native-responsive-fontsize';
|
|
29
30
|
|
|
30
31
|
const DEFAULT_ITEM_WIDTH = moderateScale(120);
|
|
31
32
|
const DEFAULT_ITEM_HEIGHT = moderateScale(180);
|
|
@@ -106,9 +107,6 @@ const TopTenCard: React.FC<TopTenCardProps> = ({
|
|
|
106
107
|
);
|
|
107
108
|
const renderItem = useCallback(
|
|
108
109
|
({ item, index }: { item: IContentData; index: number }) => {
|
|
109
|
-
const lastIndex = listData.length - 1;
|
|
110
|
-
const isLastItem = index === lastIndex && lastIndex >= 9;
|
|
111
|
-
|
|
112
110
|
return (
|
|
113
111
|
<TouchableOpacity
|
|
114
112
|
style={[styles.item, index === 0 && styles.firstItem, itemStyle]}
|
|
@@ -120,7 +118,7 @@ const TopTenCard: React.FC<TopTenCardProps> = ({
|
|
|
120
118
|
posterUri={item.poster}
|
|
121
119
|
isLoading={isLoading}
|
|
122
120
|
borderRadius={borderRadius}
|
|
123
|
-
posterWrapperStyle={[styles.image
|
|
121
|
+
posterWrapperStyle={[styles.image]}
|
|
124
122
|
resizeMode={FastImage.resizeMode.cover}
|
|
125
123
|
theme={appliedTheme}
|
|
126
124
|
/>
|
|
@@ -139,12 +137,10 @@ const TopTenCard: React.FC<TopTenCardProps> = ({
|
|
|
139
137
|
);
|
|
140
138
|
},
|
|
141
139
|
[
|
|
142
|
-
listData.length,
|
|
143
140
|
styles.item,
|
|
144
141
|
styles.firstItem,
|
|
145
142
|
styles.imageOverlay,
|
|
146
143
|
styles.image,
|
|
147
|
-
styles.lastImage,
|
|
148
144
|
styles.numberContainer,
|
|
149
145
|
styles.rankNumberBox,
|
|
150
146
|
styles.rankNumberText,
|
|
@@ -162,6 +158,7 @@ const TopTenCard: React.FC<TopTenCardProps> = ({
|
|
|
162
158
|
key={`skeleton-${index}`}
|
|
163
159
|
highlightColor={appliedTheme.colors.skeletonHighlightColor}
|
|
164
160
|
backgroundColor={appliedTheme.colors.skeletonBaseColor}
|
|
161
|
+
borderRadius={borderRadius}
|
|
165
162
|
>
|
|
166
163
|
<SkeletonPlaceholder.Item
|
|
167
164
|
width={itemWidth}
|
|
@@ -245,12 +242,13 @@ const TopTenCard: React.FC<TopTenCardProps> = ({
|
|
|
245
242
|
<SkeletonPlaceholder
|
|
246
243
|
highlightColor={appliedTheme.colors.skeletonHighlightColor}
|
|
247
244
|
backgroundColor={appliedTheme.colors.skeletonBaseColor}
|
|
245
|
+
borderRadius={borderRadius}
|
|
248
246
|
speed={800}
|
|
249
247
|
>
|
|
250
248
|
<View style={[styles.item, styles.skeletonItem]}>
|
|
251
249
|
<SkeletonPlaceholder.Item width={itemWidth} height={itemHeight} borderRadius={borderRadius} />
|
|
252
250
|
<View style={styles.numberContainer}>
|
|
253
|
-
<SkeletonPlaceholder.Item width={scale(40)} height={scale(40)}
|
|
251
|
+
<SkeletonPlaceholder.Item width={scale(40)} height={scale(40)} borderRadius={borderRadius} />
|
|
254
252
|
</View>
|
|
255
253
|
</View>
|
|
256
254
|
</SkeletonPlaceholder>
|
|
@@ -278,7 +276,7 @@ const getStyles = (theme: ITheme, width: number, height: number, radius: number)
|
|
|
278
276
|
position: 'relative'
|
|
279
277
|
},
|
|
280
278
|
firstItem: {
|
|
281
|
-
marginLeft: moderateScale(
|
|
279
|
+
marginLeft: moderateScale(10)
|
|
282
280
|
},
|
|
283
281
|
imageOverlay: {
|
|
284
282
|
width: '100%',
|
|
@@ -291,9 +289,7 @@ const getStyles = (theme: ITheme, width: number, height: number, radius: number)
|
|
|
291
289
|
height: '100%',
|
|
292
290
|
borderRadius: radius
|
|
293
291
|
},
|
|
294
|
-
|
|
295
|
-
marginLeft: scale(50)
|
|
296
|
-
},
|
|
292
|
+
|
|
297
293
|
rankNumberBox: {
|
|
298
294
|
width: scale(40),
|
|
299
295
|
height: scale(40),
|
|
@@ -302,7 +298,7 @@ const getStyles = (theme: ITheme, width: number, height: number, radius: number)
|
|
|
302
298
|
alignItems: 'center'
|
|
303
299
|
},
|
|
304
300
|
rankNumberText: {
|
|
305
|
-
fontSize:
|
|
301
|
+
fontSize: RFValue(27),
|
|
306
302
|
fontWeight: '900',
|
|
307
303
|
color: theme.colors.textPrimary,
|
|
308
304
|
textShadowColor: 'rgba(0, 0, 0, 0.6)',
|
|
@@ -326,7 +322,7 @@ const getStyles = (theme: ITheme, width: number, height: number, radius: number)
|
|
|
326
322
|
paddingRight: moderateScale(20)
|
|
327
323
|
},
|
|
328
324
|
title: {
|
|
329
|
-
fontSize:
|
|
325
|
+
fontSize: RFValue(13),
|
|
330
326
|
fontWeight: '600',
|
|
331
327
|
color: theme.colors.textPrimary
|
|
332
328
|
},
|
|
@@ -23,9 +23,10 @@ import { moderateScale, verticalScale } from 'react-native-size-matters';
|
|
|
23
23
|
import { usePaginatedSection } from '../../../../hooks/usePaginatedSection';
|
|
24
24
|
import type { IContentData, IGetSectionData, ISectionContent, MoreFetchData } from '../../../../types';
|
|
25
25
|
import type { AppTheme, ITheme } from '../../../../theme/themes';
|
|
26
|
-
import { useTheme } from '../../../../theme';
|
|
26
|
+
import { useTheme } from '../../../../theme/hook/useTheme';
|
|
27
27
|
import NavigateToMore from '../components/NavigateToMore';
|
|
28
28
|
import CardPoster from '../components/CardPoster';
|
|
29
|
+
import { RFValue } from 'react-native-responsive-fontsize';
|
|
29
30
|
|
|
30
31
|
// Defaults
|
|
31
32
|
const DEFAULT_WIDTH = moderateScale(172);
|
|
@@ -131,21 +132,21 @@ const MovieCardTwo: React.FC<MovieCardTwoProps> = ({
|
|
|
131
132
|
borderRadius={borderRadius}
|
|
132
133
|
posterWrapperStyle={styles.image}
|
|
133
134
|
resizeMode={FastImage.resizeMode.cover}
|
|
134
|
-
isLoading={
|
|
135
|
+
isLoading={isLoading}
|
|
135
136
|
/>
|
|
136
137
|
)}
|
|
137
138
|
</TouchableOpacity>
|
|
138
139
|
);
|
|
139
140
|
},
|
|
140
141
|
[
|
|
141
|
-
renderItemImage,
|
|
142
142
|
styles.item,
|
|
143
143
|
styles.firstItem,
|
|
144
144
|
styles.image,
|
|
145
145
|
itemStyle,
|
|
146
|
+
renderItemImage,
|
|
146
147
|
appliedTheme,
|
|
147
148
|
borderRadius,
|
|
148
|
-
|
|
149
|
+
isLoading,
|
|
149
150
|
handleItemPress
|
|
150
151
|
]
|
|
151
152
|
);
|
|
@@ -235,6 +236,7 @@ const MovieCardTwo: React.FC<MovieCardTwoProps> = ({
|
|
|
235
236
|
<SkeletonPlaceholder
|
|
236
237
|
highlightColor={appliedTheme.colors.skeletonHighlightColor}
|
|
237
238
|
backgroundColor={appliedTheme.colors.skeletonBaseColor}
|
|
239
|
+
borderRadius={borderRadius}
|
|
238
240
|
>
|
|
239
241
|
<SkeletonPlaceholder.Item
|
|
240
242
|
width={itemWidth}
|
|
@@ -264,7 +266,7 @@ const getStyles = (theme: ITheme, width: number, radius: number) =>
|
|
|
264
266
|
backgroundColor: theme.colors.background ?? '#2c2c2c'
|
|
265
267
|
},
|
|
266
268
|
firstItem: {
|
|
267
|
-
marginLeft: moderateScale(
|
|
269
|
+
marginLeft: moderateScale(10)
|
|
268
270
|
},
|
|
269
271
|
image: {
|
|
270
272
|
width: '100%',
|
|
@@ -273,11 +275,11 @@ const getStyles = (theme: ITheme, width: number, radius: number) =>
|
|
|
273
275
|
backgroundColor: theme.colors.background ?? '#222'
|
|
274
276
|
},
|
|
275
277
|
navigateToMoreContainer: {
|
|
276
|
-
paddingHorizontal: moderateScale(
|
|
278
|
+
paddingHorizontal: moderateScale(10),
|
|
277
279
|
marginBottom: verticalScale(8)
|
|
278
280
|
},
|
|
279
281
|
title: {
|
|
280
|
-
fontSize:
|
|
282
|
+
fontSize: RFValue(13),
|
|
281
283
|
fontWeight: '600'
|
|
282
284
|
},
|
|
283
285
|
listContent: {
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
* @author Naresh Dhamu
|
|
3
3
|
* @lastModified Wed 02 Jul 2025 at 10:29 AM
|
|
4
4
|
*/
|
|
5
|
+
/**
|
|
6
|
+
* @author Naresh Dhamu
|
|
7
|
+
* @lastModified Wed 02 Jul 2025 at 10:29 AM
|
|
8
|
+
*/
|
|
9
|
+
|
|
5
10
|
import React, { useState, useEffect, useMemo } from 'react';
|
|
6
11
|
import { View, StyleSheet, type StyleProp, type ViewStyle } from 'react-native';
|
|
7
12
|
import type { ImageStyle as FastImageStyle, ImageStyle, ResizeMode } from 'react-native-fast-image';
|
|
@@ -11,6 +16,7 @@ import { scale } from 'react-native-size-matters';
|
|
|
11
16
|
import { Text } from '../../../Text';
|
|
12
17
|
import { ImageOff } from 'lucide-react-native';
|
|
13
18
|
import type { ITheme } from '../../../../theme/themes';
|
|
19
|
+
import { RFValue } from 'react-native-responsive-fontsize';
|
|
14
20
|
|
|
15
21
|
export type CardPosterProps = {
|
|
16
22
|
posterUri: string;
|
|
@@ -34,11 +40,6 @@ const CardPoster: React.FC<CardPosterProps> = ({
|
|
|
34
40
|
const [imageLoading, setImageLoading] = useState(true);
|
|
35
41
|
const [imageError, setImageError] = useState(false);
|
|
36
42
|
|
|
37
|
-
useEffect(() => {
|
|
38
|
-
setImageLoading(true);
|
|
39
|
-
setImageError(false);
|
|
40
|
-
}, [posterUri]);
|
|
41
|
-
|
|
42
43
|
const hasValidPoster = useMemo(() => {
|
|
43
44
|
if (!posterUri || typeof posterUri !== 'string') return false;
|
|
44
45
|
|
|
@@ -48,11 +49,18 @@ const CardPoster: React.FC<CardPosterProps> = ({
|
|
|
48
49
|
/\.(jpg|jpeg|png|webp|gif|bmp)$/i.test(cleaned)
|
|
49
50
|
);
|
|
50
51
|
}, [posterUri]);
|
|
52
|
+
|
|
51
53
|
useEffect(() => {
|
|
52
54
|
if (hasValidPoster) {
|
|
55
|
+
setImageLoading(true);
|
|
56
|
+
setImageError(false);
|
|
53
57
|
FastImage.preload([{ uri: posterUri }]);
|
|
58
|
+
} else {
|
|
59
|
+
setImageLoading(false);
|
|
60
|
+
setImageError(true);
|
|
54
61
|
}
|
|
55
62
|
}, [posterUri, hasValidPoster]);
|
|
63
|
+
|
|
56
64
|
const showSkeleton = isLoading || (imageLoading && !imageError && hasValidPoster);
|
|
57
65
|
|
|
58
66
|
const fallbackImageStyle: ImageStyle = useMemo(
|
|
@@ -105,16 +113,17 @@ const CardPoster: React.FC<CardPosterProps> = ({
|
|
|
105
113
|
if (hasValidPoster) {
|
|
106
114
|
setImageLoading(true);
|
|
107
115
|
setImageError(false);
|
|
116
|
+
} else {
|
|
117
|
+
setImageLoading(false);
|
|
118
|
+
setImageError(true);
|
|
108
119
|
}
|
|
109
120
|
}}
|
|
110
121
|
onLoad={() => {
|
|
111
122
|
setImageLoading(false);
|
|
112
123
|
}}
|
|
113
124
|
onError={() => {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
setImageError(true);
|
|
117
|
-
}, 100);
|
|
125
|
+
setImageLoading(false);
|
|
126
|
+
setImageError(true);
|
|
118
127
|
}}
|
|
119
128
|
/>
|
|
120
129
|
)}
|
|
@@ -123,7 +132,11 @@ const CardPoster: React.FC<CardPosterProps> = ({
|
|
|
123
132
|
<View
|
|
124
133
|
style={[
|
|
125
134
|
styles.fallbackWrapper,
|
|
126
|
-
{
|
|
135
|
+
{
|
|
136
|
+
borderRadius,
|
|
137
|
+
backgroundColor: theme.colors.background,
|
|
138
|
+
borderColor: theme.colors.error
|
|
139
|
+
}
|
|
127
140
|
]}
|
|
128
141
|
>
|
|
129
142
|
<View
|
|
@@ -199,6 +212,6 @@ const styles = StyleSheet.create({
|
|
|
199
212
|
},
|
|
200
213
|
fallbackText: {
|
|
201
214
|
marginTop: scale(4),
|
|
202
|
-
fontSize:
|
|
215
|
+
fontSize: RFValue(9)
|
|
203
216
|
}
|
|
204
217
|
});
|
|
@@ -5,9 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { StyleSheet, View, type StyleProp, type TextStyle, type ViewStyle } from 'react-native';
|
|
8
|
-
import {
|
|
8
|
+
import { verticalScale } from 'react-native-size-matters';
|
|
9
9
|
import ShowAllButton, { type ShowAllButtonProps } from './ShowAllButton';
|
|
10
10
|
import { Text } from '../../../Text';
|
|
11
|
+
import { RFValue } from 'react-native-responsive-fontsize';
|
|
11
12
|
|
|
12
13
|
interface IProps {
|
|
13
14
|
title: string;
|
|
@@ -51,8 +52,8 @@ const styles = StyleSheet.create({
|
|
|
51
52
|
justifyContent: 'center'
|
|
52
53
|
},
|
|
53
54
|
title: {
|
|
54
|
-
fontSize:
|
|
55
|
-
fontWeight: '
|
|
55
|
+
fontSize: RFValue(13),
|
|
56
|
+
fontWeight: '500',
|
|
56
57
|
textTransform: 'capitalize'
|
|
57
58
|
}
|
|
58
59
|
});
|
|
@@ -8,8 +8,9 @@ import { TouchableOpacity, StyleSheet, type StyleProp, type ViewStyle } from 're
|
|
|
8
8
|
import Animated, { useSharedValue, useAnimatedStyle, withSpring } from 'react-native-reanimated';
|
|
9
9
|
import { scale, verticalScale } from 'react-native-size-matters';
|
|
10
10
|
import { Text } from '../../../Text';
|
|
11
|
-
import { useTheme } from '../../../../theme';
|
|
11
|
+
import { useTheme } from '../../../../theme/hook/useTheme';
|
|
12
12
|
import type { AppTheme } from '../../../../theme/themes';
|
|
13
|
+
import { RFValue } from 'react-native-responsive-fontsize';
|
|
13
14
|
|
|
14
15
|
type NoContentFallbackProps = {
|
|
15
16
|
message?: string;
|
|
@@ -102,12 +103,12 @@ const styles = StyleSheet.create({
|
|
|
102
103
|
paddingVertical: verticalScale(40)
|
|
103
104
|
},
|
|
104
105
|
emoji: {
|
|
105
|
-
fontSize:
|
|
106
|
+
fontSize: RFValue(63),
|
|
106
107
|
marginBottom: verticalScale(16),
|
|
107
108
|
textAlign: 'center'
|
|
108
109
|
},
|
|
109
110
|
message: {
|
|
110
|
-
fontSize:
|
|
111
|
+
fontSize: RFValue(15),
|
|
111
112
|
textAlign: 'center',
|
|
112
113
|
fontWeight: '500',
|
|
113
114
|
lineHeight: verticalScale(22),
|
|
@@ -120,7 +121,7 @@ const styles = StyleSheet.create({
|
|
|
120
121
|
borderWidth: scale(1)
|
|
121
122
|
},
|
|
122
123
|
retryText: {
|
|
123
|
-
fontSize:
|
|
124
|
+
fontSize: RFValue(13),
|
|
124
125
|
fontWeight: '600',
|
|
125
126
|
textAlign: 'center'
|
|
126
127
|
}
|
|
@@ -12,6 +12,7 @@ import { scale } from 'react-native-size-matters';
|
|
|
12
12
|
import { Text } from '../../../Text';
|
|
13
13
|
import { ImageOff } from 'lucide-react-native';
|
|
14
14
|
import type { ITheme } from '../../../../theme/themes';
|
|
15
|
+
import { RFValue } from 'react-native-responsive-fontsize';
|
|
15
16
|
|
|
16
17
|
export type ThumbnailCardProps = {
|
|
17
18
|
thumbnailUri?: string;
|
|
@@ -145,6 +146,6 @@ const styles = StyleSheet.create({
|
|
|
145
146
|
},
|
|
146
147
|
fallbackText: {
|
|
147
148
|
marginTop: scale(4),
|
|
148
|
-
fontSize:
|
|
149
|
+
fontSize: RFValue(9)
|
|
149
150
|
}
|
|
150
151
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React, { useMemo } from 'react';
|
|
6
6
|
import {
|
|
7
|
+
ActivityIndicator,
|
|
7
8
|
FlatList,
|
|
8
9
|
type FlatListProps,
|
|
9
10
|
type NativeScrollEvent,
|
|
@@ -31,6 +32,7 @@ export type IContentLoading = {
|
|
|
31
32
|
category?: boolean;
|
|
32
33
|
history?: boolean;
|
|
33
34
|
section?: boolean;
|
|
35
|
+
InfiniteScrollIsLoading?: boolean;
|
|
34
36
|
};
|
|
35
37
|
export interface IContentProps {
|
|
36
38
|
contentData: {
|
|
@@ -74,16 +76,42 @@ const AnimatedFlatList = Animated.createAnimatedComponent(
|
|
|
74
76
|
interface FooterProps {
|
|
75
77
|
isEmpty: boolean;
|
|
76
78
|
ErrorComponent?: React.ReactNode;
|
|
79
|
+
InfiniteScrollIsLoading?: boolean;
|
|
80
|
+
InfiniteScrollLoaderComponent?: React.ReactNode;
|
|
77
81
|
}
|
|
78
82
|
|
|
79
|
-
const ContentFooter = ({
|
|
83
|
+
const ContentFooter = ({
|
|
84
|
+
isEmpty,
|
|
85
|
+
ErrorComponent,
|
|
86
|
+
InfiniteScrollIsLoading,
|
|
87
|
+
InfiniteScrollLoaderComponent
|
|
88
|
+
}: FooterProps) => {
|
|
89
|
+
if (InfiniteScrollIsLoading) {
|
|
90
|
+
return (
|
|
91
|
+
InfiniteScrollLoaderComponent ?? (
|
|
92
|
+
<Animated.View
|
|
93
|
+
style={{
|
|
94
|
+
paddingVertical: scale(30),
|
|
95
|
+
alignItems: 'center',
|
|
96
|
+
justifyContent: 'center'
|
|
97
|
+
}}
|
|
98
|
+
>
|
|
99
|
+
<ActivityIndicator size="small" />
|
|
100
|
+
</Animated.View>
|
|
101
|
+
)
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
|
|
80
105
|
if (isEmpty) {
|
|
81
106
|
return ErrorComponent ? <>{ErrorComponent}</> : <NoContentFallback />;
|
|
82
107
|
}
|
|
108
|
+
|
|
83
109
|
return null;
|
|
84
110
|
};
|
|
111
|
+
|
|
85
112
|
export const Content: React.FC<IContentProps> = ({
|
|
86
113
|
customComponents,
|
|
114
|
+
InfiniteScrollLoaderComponent,
|
|
87
115
|
LoaderComponent,
|
|
88
116
|
ErrorComponent,
|
|
89
117
|
onScroll,
|
|
@@ -98,10 +126,6 @@ export const Content: React.FC<IContentProps> = ({
|
|
|
98
126
|
isLoading
|
|
99
127
|
}) => {
|
|
100
128
|
const sectionData = useMemo<IGetSectionData[]>(() => contentData?.sectionData ?? [], [contentData?.sectionData]);
|
|
101
|
-
const onEndReachedHandler = () => {
|
|
102
|
-
onEndReached?.();
|
|
103
|
-
};
|
|
104
|
-
|
|
105
129
|
const headerComponent = useMemo(() => {
|
|
106
130
|
if (!contentData?.category || contentData.category.length === 0) return null;
|
|
107
131
|
|
|
@@ -167,9 +191,16 @@ export const Content: React.FC<IContentProps> = ({
|
|
|
167
191
|
data={isLoading?.section ? dummySections : sectionData}
|
|
168
192
|
renderItem={renderItem as any}
|
|
169
193
|
keyExtractor={(_item, index) => index.toString()}
|
|
170
|
-
onEndReached={
|
|
194
|
+
onEndReached={() => onEndReached?.()}
|
|
171
195
|
ListHeaderComponent={headerComponent}
|
|
172
|
-
ListFooterComponent={
|
|
196
|
+
ListFooterComponent={
|
|
197
|
+
<ContentFooter
|
|
198
|
+
InfiniteScrollLoaderComponent={InfiniteScrollLoaderComponent}
|
|
199
|
+
InfiniteScrollIsLoading={isLoading?.InfiniteScrollIsLoading}
|
|
200
|
+
isEmpty={isEmpty}
|
|
201
|
+
ErrorComponent={ErrorComponent}
|
|
202
|
+
/>
|
|
203
|
+
}
|
|
173
204
|
onEndReachedThreshold={0.7}
|
|
174
205
|
contentContainerStyle={[
|
|
175
206
|
{
|
|
@@ -67,7 +67,7 @@ const renderDefaultComponent = (
|
|
|
67
67
|
case 'slider':
|
|
68
68
|
return <Sliders.Styles.One {...commonProps} showPlayIcon={props.sectionProps?.showPlayBtn} />;
|
|
69
69
|
case 'slider_style_2':
|
|
70
|
-
return <Sliders.Styles.
|
|
70
|
+
return <Sliders.Styles.Two {...commonProps} />;
|
|
71
71
|
case 'normal':
|
|
72
72
|
return <Cards.Styles.One {...commonProps} />;
|
|
73
73
|
case 'new_releases':
|
|
@@ -9,7 +9,7 @@ import { HeroBanner } from './components/HeroBanner';
|
|
|
9
9
|
import { GenreTags } from './components/GenreTags';
|
|
10
10
|
import { AboutSection } from './components/AboutSection';
|
|
11
11
|
import { Title } from './components/Title';
|
|
12
|
-
import { useTheme } from '../../theme';
|
|
12
|
+
import { useTheme } from '../../theme/hook/useTheme';
|
|
13
13
|
import { CastCard } from './components/CastCard';
|
|
14
14
|
import Cards from '../Content/Card';
|
|
15
15
|
import { scale } from 'react-native-size-matters';
|
|
@@ -34,8 +34,8 @@ export const ContentView = ({
|
|
|
34
34
|
}: ComponentProps) => {
|
|
35
35
|
const { theme: appliedTheme } = useTheme(theme);
|
|
36
36
|
const seekTime = history?.currentTime || 0;
|
|
37
|
-
const isComplete = history?.completed ||
|
|
38
|
-
const currentEpisode = history?.current_episode
|
|
37
|
+
const isComplete = history?.completed || false;
|
|
38
|
+
const currentEpisode = history?.current_episode;
|
|
39
39
|
return (
|
|
40
40
|
<ScrollView
|
|
41
41
|
showsVerticalScrollIndicator={false}
|
|
@@ -47,14 +47,14 @@ export const ContentView = ({
|
|
|
47
47
|
title={content?.name}
|
|
48
48
|
theme={appliedTheme}
|
|
49
49
|
isLoading={isLoading}
|
|
50
|
-
onPressPlay={() =>
|
|
50
|
+
onPressPlay={({ is_trailer }) =>
|
|
51
51
|
events?.onPlay?.({
|
|
52
52
|
id: content._id,
|
|
53
53
|
slug: content.slug,
|
|
54
54
|
type: content.type,
|
|
55
55
|
current_episode: currentEpisode,
|
|
56
|
-
mode: '
|
|
57
|
-
is_trailer
|
|
56
|
+
mode: 'fullscreen',
|
|
57
|
+
is_trailer,
|
|
58
58
|
seekTime: isComplete ? 0 : seekTime
|
|
59
59
|
})
|
|
60
60
|
}
|