@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.
- package/LICENSE +0 -0
- package/README.md +6 -0
- package/lib/module/assets/animations/135037-payment-processing-error.json +1347 -1
- package/lib/module/assets/animations/7227-vui-animation.json +3377 -1
- package/lib/module/assets/animations/succesfull-payment.json +2379 -1
- package/lib/module/assets/animations/voice-icon.json +542 -1
- package/lib/module/components/Account/Account.js +6 -6
- package/lib/module/components/Account/Account.js.map +1 -1
- package/lib/module/components/Account/index.js +1 -1
- package/lib/module/components/Account/index.js.map +1 -1
- package/lib/module/components/Alert/UAAlert.js +138 -0
- package/lib/module/components/Alert/UAAlert.js.map +1 -0
- package/lib/module/components/Alert/index.js +4 -0
- package/lib/module/components/Alert/index.js.map +1 -0
- package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js +9 -9
- package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js.map +1 -1
- package/lib/module/components/Auth/Login/LoginWithEmail.js +10 -10
- package/lib/module/components/Auth/Login/LoginWithEmail.js.map +1 -1
- package/lib/module/components/Auth/Login/LoginWithPhone.js +10 -10
- package/lib/module/components/Auth/Login/LoginWithPhone.js.map +1 -1
- package/lib/module/components/Auth/OTP/OTP.js +9 -9
- package/lib/module/components/Auth/OTP/OTP.js.map +1 -1
- package/lib/module/components/Auth/SignUp/SignUp.js +10 -10
- package/lib/module/components/Auth/SignUp/SignUp.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/SplashScreen.js +6 -6
- package/lib/module/components/Auth/SplashScreen/SplashScreen.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashImage/SplashImage.js +1 -6
- package/lib/module/components/Auth/SplashScreen/components/SplashImage/SplashImage.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.js +1 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js +1 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js.map +1 -1
- package/lib/module/components/Auth/index.js +6 -6
- package/lib/module/components/Auth/index.js.map +1 -1
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js +1 -1
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js.map +1 -1
- package/lib/module/components/BlogView/BlogView.js +4 -10
- package/lib/module/components/BlogView/BlogView.js.map +1 -1
- package/lib/module/components/BlogView/index.js +1 -1
- package/lib/module/components/BlogView/index.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 +1 -1
- package/lib/module/components/Button/MenuBtn.js.map +1 -1
- package/lib/module/components/Button/PrimaryBtn.js +2 -2
- package/lib/module/components/Button/PrimaryBtn.js.map +1 -1
- package/lib/module/components/Button/TextButton.js +2 -2
- package/lib/module/components/Button/TextButton.js.map +1 -1
- package/lib/module/components/Button/index.js +3 -3
- package/lib/module/components/Button/index.js.map +1 -1
- package/lib/module/components/Content/Card/Category/Category.js +2 -2
- package/lib/module/components/Content/Card/Category/Category.js.map +1 -1
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js +6 -6
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/Styles/One.js +3 -3
- package/lib/module/components/Content/Card/Sliders/Styles/One.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js +4 -4
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/index.js +2 -2
- package/lib/module/components/Content/Card/Sliders/index.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Five.js +4 -4
- package/lib/module/components/Content/Card/Styles/Five.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Four.js +4 -4
- package/lib/module/components/Content/Card/Styles/Four.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/One.js +4 -4
- package/lib/module/components/Content/Card/Styles/One.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/RotateInOut.js +4 -4
- package/lib/module/components/Content/Card/Styles/RotateInOut.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Six.js +5 -5
- package/lib/module/components/Content/Card/Styles/Six.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Three.js +4 -4
- package/lib/module/components/Content/Card/Styles/Three.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/TopTen.js +5 -5
- package/lib/module/components/Content/Card/Styles/TopTen.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Two.js +4 -4
- package/lib/module/components/Content/Card/Styles/Two.js.map +1 -1
- package/lib/module/components/Content/Card/components/CardPoster.js +1 -10
- package/lib/module/components/Content/Card/components/CardPoster.js.map +1 -1
- package/lib/module/components/Content/Card/components/NavigateToMore.js +2 -2
- package/lib/module/components/Content/Card/components/NavigateToMore.js.map +1 -1
- package/lib/module/components/Content/Card/components/NoContentFallback.js +3 -3
- package/lib/module/components/Content/Card/components/NoContentFallback.js.map +1 -1
- package/lib/module/components/Content/Card/components/ShowAllButton.js +1 -1
- package/lib/module/components/Content/Card/components/ShowAllButton.js.map +1 -1
- package/lib/module/components/Content/Card/components/ThumbnailCard.js +1 -1
- package/lib/module/components/Content/Card/components/ThumbnailCard.js.map +1 -1
- package/lib/module/components/Content/Card/index.js +10 -10
- package/lib/module/components/Content/Card/index.js.map +1 -1
- package/lib/module/components/Content/Content.js +4 -4
- package/lib/module/components/Content/Content.js.map +1 -1
- package/lib/module/components/Content/Sections.js +2 -2
- package/lib/module/components/Content/Sections.js.map +1 -1
- package/lib/module/components/ContentView/ContentView.js +8 -9
- package/lib/module/components/ContentView/ContentView.js.map +1 -1
- package/lib/module/components/ContentView/MoreContentList.js +6 -6
- package/lib/module/components/ContentView/MoreContentList.js.map +1 -1
- package/lib/module/components/ContentView/components/AboutSection.js +2 -2
- package/lib/module/components/ContentView/components/AboutSection.js.map +1 -1
- package/lib/module/components/ContentView/components/CastCard.js +2 -2
- package/lib/module/components/ContentView/components/CastCard.js.map +1 -1
- package/lib/module/components/ContentView/components/EpisodeCard.js +3 -3
- package/lib/module/components/ContentView/components/EpisodeCard.js.map +1 -1
- package/lib/module/components/ContentView/components/GenreTags.js +1 -1
- package/lib/module/components/ContentView/components/GenreTags.js.map +1 -1
- package/lib/module/components/ContentView/components/HeroBanner.js +5 -5
- package/lib/module/components/ContentView/components/HeroBanner.js.map +1 -1
- package/lib/module/components/ContentView/components/PlayButton.js +0 -1
- package/lib/module/components/ContentView/components/PlayButton.js.map +1 -1
- package/lib/module/components/ContentView/components/Title.js +1 -1
- package/lib/module/components/ContentView/components/Title.js.map +1 -1
- package/lib/module/components/ContentView/components/TrailerButton.js +1 -2
- package/lib/module/components/ContentView/components/TrailerButton.js.map +1 -1
- package/lib/module/components/ContentView/index.js +2 -2
- package/lib/module/components/ContentView/index.js.map +1 -1
- package/lib/module/components/Headers/AppHeader.js +2 -2
- package/lib/module/components/Headers/AppHeader.js.map +1 -1
- package/lib/module/components/Headers/One.js +2 -2
- package/lib/module/components/Headers/One.js.map +1 -1
- package/lib/module/components/Headers/Three.js +2 -2
- package/lib/module/components/Headers/Three.js.map +1 -1
- package/lib/module/components/Headers/Two.js +5 -6
- package/lib/module/components/Headers/Two.js.map +1 -1
- package/lib/module/components/Headers/index.js +3 -3
- package/lib/module/components/Headers/index.js.map +1 -1
- package/lib/module/components/Input/Input.js +3 -3
- package/lib/module/components/Input/Input.js.map +1 -1
- package/lib/module/components/Input/InputOne.js +1 -1
- package/lib/module/components/Input/InputOne.js.map +1 -1
- package/lib/module/components/Input/InputTwo.js +1 -1
- package/lib/module/components/Input/InputTwo.js.map +1 -1
- package/lib/module/components/Input/PhoneNumberInput.js +1 -1
- package/lib/module/components/Input/PhoneNumberInput.js.map +1 -1
- package/lib/module/components/Keyboard/HideKeyboard.js.map +1 -1
- package/lib/module/components/Loader/Loader.js +1 -6
- package/lib/module/components/Loader/Loader.js.map +1 -1
- package/lib/module/components/Logo/Logo.js +2 -2
- package/lib/module/components/Logo/Logo.js.map +1 -1
- package/lib/module/components/Search/One.js +9 -9
- package/lib/module/components/Search/One.js.map +1 -1
- package/lib/module/components/Search/components/RecentSearchesSection.js +1 -1
- package/lib/module/components/Search/components/RecentSearchesSection.js.map +1 -1
- package/lib/module/components/Search/components/SearchCard.js +3 -3
- package/lib/module/components/Search/components/SearchCard.js.map +1 -1
- package/lib/module/components/Search/index.js +2 -2
- package/lib/module/components/Search/index.js.map +1 -1
- package/lib/module/components/Settings/AppSettings.js +4 -4
- package/lib/module/components/Settings/AppSettings.js.map +1 -1
- package/lib/module/components/Settings/index.js +1 -1
- package/lib/module/components/Settings/index.js.map +1 -1
- package/lib/module/components/Subscription/SubOne.js +4 -4
- package/lib/module/components/Subscription/SubOne.js.map +1 -1
- package/lib/module/components/Subscription/index.js +1 -1
- package/lib/module/components/Subscription/index.js.map +1 -1
- package/lib/module/components/TabBar/One.js +2 -2
- package/lib/module/components/TabBar/One.js.map +1 -1
- package/lib/module/components/TabBar/Three.js +1 -1
- package/lib/module/components/TabBar/Three.js.map +1 -1
- package/lib/module/components/TabBar/Two.js +2 -2
- package/lib/module/components/TabBar/Two.js.map +1 -1
- package/lib/module/components/TabBar/index.js +3 -3
- package/lib/module/components/TabBar/index.js.map +1 -1
- package/lib/module/components/Text/Text.js +1 -1
- package/lib/module/components/Text/Text.js.map +1 -1
- package/lib/module/components/Text/index.js +1 -1
- package/lib/module/components/Text/index.js.map +1 -1
- package/lib/module/components/User/DeviceSessions/DeviceSessions.js +3 -3
- package/lib/module/components/User/DeviceSessions/DeviceSessions.js.map +1 -1
- package/lib/module/components/User/WatchHistory/WatchHistory.js +4 -4
- package/lib/module/components/User/WatchHistory/WatchHistory.js.map +1 -1
- package/lib/module/components/User/WatchLater/WatchLater.js +5 -5
- 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 +3 -3
- package/lib/module/components/User/components/UserSection.js.map +1 -1
- package/lib/module/components/User/index.js +3 -3
- package/lib/module/components/User/index.js.map +1 -1
- package/lib/module/components/View/View.js.map +1 -1
- package/lib/module/components/View/index.js +1 -1
- package/lib/module/components/View/index.js.map +1 -1
- package/lib/module/components/index.js +19 -18
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/layout/SafeAreaWrapper.js +1 -1
- package/lib/module/components/layout/SafeAreaWrapper.js.map +1 -1
- package/lib/module/components/layout/index.js +1 -1
- package/lib/module/components/layout/index.js.map +1 -1
- package/lib/module/constants/dummySections.js.map +1 -1
- package/lib/module/hooks/useDebounce.js.map +1 -1
- package/lib/module/hooks/useInitSplashCacheSync.js +7 -7
- package/lib/module/hooks/useInitSplashCacheSync.js.map +1 -1
- package/lib/module/hooks/useKeyboard.js.map +1 -1
- package/lib/module/hooks/usePaginatedSection.js.map +1 -1
- package/lib/module/index.js +3 -3
- package/lib/module/index.js.map +1 -1
- package/lib/module/package.json +1 -0
- package/lib/module/store/RecentSearchesStore.js.map +1 -1
- package/lib/module/store/splashStore.js.map +1 -1
- package/lib/module/theme/ThemeProvider.js +11 -8
- package/lib/module/theme/ThemeProvider.js.map +1 -1
- package/lib/module/theme/hook/useTheme.js +2 -2
- package/lib/module/theme/hook/useTheme.js.map +1 -1
- package/lib/module/theme/index.js +3 -2
- package/lib/module/theme/index.js.map +1 -1
- package/lib/module/theme/themes.js +0 -13
- package/lib/module/theme/themes.js.map +1 -1
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/components/Account/Account.d.ts +0 -1
- package/lib/typescript/src/components/Account/Account.d.ts.map +1 -1
- package/lib/typescript/src/components/Alert/UAAlert.d.ts +16 -0
- package/lib/typescript/src/components/Alert/UAAlert.d.ts.map +1 -0
- package/lib/typescript/src/components/Alert/index.d.ts +2 -0
- package/lib/typescript/src/components/Alert/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/ForgotPassword/ForgotPassword.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/Login/LoginWithEmail.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/Login/LoginWithPhone.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/OTP/OTP.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/SignUp/SignUp.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/SplashScreen/SplashScreen.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.d.ts +0 -4
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/index.d.ts +1 -1
- package/lib/typescript/src/components/Auth/index.d.ts.map +1 -1
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayout.d.ts.map +1 -1
- package/lib/typescript/src/components/BlogView/BlogView.d.ts +0 -4
- package/lib/typescript/src/components/BlogView/BlogView.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/BackBtn.d.ts.map +1 -1
- 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 +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/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 +0 -8
- 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 +1 -2
- package/lib/typescript/src/components/Content/Card/components/NoContentFallback.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/ShowAllButton.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/Card/index.d.ts +2 -2
- package/lib/typescript/src/components/Content/Content.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Sections.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/ContentView.d.ts +1 -2
- package/lib/typescript/src/components/ContentView/ContentView.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/MoreContentList.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/AboutSection.d.ts +1 -2
- package/lib/typescript/src/components/ContentView/components/AboutSection.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/CastCard.d.ts +1 -6
- package/lib/typescript/src/components/ContentView/components/CastCard.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts +1 -2
- package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/GenreTags.d.ts +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 +1 -2
- package/lib/typescript/src/components/ContentView/components/HeroBanner.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/PlayButton.d.ts +1 -2
- package/lib/typescript/src/components/ContentView/components/PlayButton.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/Title.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/components/Title.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/TrailerButton.d.ts +1 -2
- package/lib/typescript/src/components/ContentView/components/TrailerButton.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/AppHeader.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/Three.d.ts.map +1 -1
- 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.map +1 -1
- package/lib/typescript/src/components/Loader/Loader.d.ts +0 -4
- package/lib/typescript/src/components/Loader/Loader.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 +1 -1
- package/lib/typescript/src/components/Subscription/SubOne.d.ts.map +1 -1
- package/lib/typescript/src/components/Subscription/index.d.ts +2 -2
- package/lib/typescript/src/components/Subscription/index.d.ts.map +1 -1
- package/lib/typescript/src/components/TabBar/One.d.ts +2 -2
- package/lib/typescript/src/components/TabBar/One.d.ts.map +1 -1
- package/lib/typescript/src/components/TabBar/Three.d.ts.map +1 -1
- package/lib/typescript/src/components/TabBar/Two.d.ts +1 -1
- package/lib/typescript/src/components/TabBar/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/TabBar/index.d.ts +2 -2
- package/lib/typescript/src/components/Text/Text.d.ts.map +1 -1
- package/lib/typescript/src/components/User/DeviceSessions/DeviceSessions.d.ts +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/UserAvatar.d.ts.map +1 -1
- package/lib/typescript/src/components/User/components/UserSection.d.ts.map +1 -1
- package/lib/typescript/src/components/View/View.d.ts.map +1 -1
- package/lib/typescript/src/components/index.d.ts +1 -0
- package/lib/typescript/src/components/index.d.ts.map +1 -1
- package/lib/typescript/src/components/layout/SafeAreaWrapper.d.ts.map +1 -1
- package/lib/typescript/src/constants/dummySections.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useDebounce.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.map +1 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/store/RecentSearchesStore.d.ts +5 -3
- package/lib/typescript/src/store/RecentSearchesStore.d.ts.map +1 -1
- package/lib/typescript/src/store/splashStore.d.ts +5 -3
- package/lib/typescript/src/store/splashStore.d.ts.map +1 -1
- package/lib/typescript/src/theme/ThemeProvider.d.ts.map +1 -1
- package/lib/typescript/src/theme/hook/useTheme.d.ts.map +1 -1
- package/lib/typescript/src/theme/index.d.ts +5 -0
- package/lib/typescript/src/theme/index.d.ts.map +1 -1
- package/lib/typescript/src/theme/themes.d.ts +11 -4
- package/lib/typescript/src/theme/themes.d.ts.map +1 -1
- package/lib/typescript/src/types/content/content-view.types.d.ts.map +1 -1
- package/lib/typescript/src/types/hook/usePaginatedSetion.d.ts +1 -1
- package/lib/typescript/src/types/hook/usePaginatedSetion.d.ts.map +1 -1
- package/package.json +167 -70
- package/src/Styles/globalStyles.ts +18 -18
- package/src/assets/animations/135037-payment-processing-error.json +1347 -1
- package/src/assets/animations/7227-vui-animation.json +3377 -1
- package/src/assets/animations/succesfull-payment.json +2379 -1
- package/src/assets/animations/voice-icon.json +542 -1
- package/src/components/Account/Account.tsx +139 -61
- package/src/components/Alert/UAAlert.tsx +168 -0
- package/src/components/Alert/index.ts +1 -0
- package/src/components/Auth/ForgotPassword/ForgotPassword.tsx +53 -23
- package/src/components/Auth/Login/LoginWithEmail.tsx +62 -32
- package/src/components/Auth/Login/LoginWithPhone.tsx +55 -24
- package/src/components/Auth/OTP/OTP.tsx +77 -32
- package/src/components/Auth/SignUp/SignUp.tsx +67 -32
- package/src/components/Auth/SplashScreen/SplashScreen.tsx +44 -16
- package/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.tsx +21 -12
- package/src/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.tsx +5 -5
- package/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.tsx +15 -5
- package/src/components/Auth/index.ts +1 -1
- package/src/components/BackgroundLayout/BackgroundLayout.tsx +45 -17
- package/src/components/BlogView/BlogView.tsx +51 -31
- package/src/components/Button/BackBtn.tsx +31 -9
- package/src/components/Button/MenuBtn.tsx +61 -22
- package/src/components/Button/PrimaryBtn.tsx +30 -10
- package/src/components/Button/TextButton.tsx +30 -15
- package/src/components/Button/index.ts +1 -1
- package/src/components/Content/Card/Category/Category.tsx +73 -32
- package/src/components/Content/Card/NowWatching/NowWatching.tsx +102 -44
- package/src/components/Content/Card/Sliders/Styles/One.tsx +89 -38
- package/src/components/Content/Card/Sliders/Styles/Two.tsx +47 -21
- package/src/components/Content/Card/Sliders/index.ts +2 -2
- package/src/components/Content/Card/Styles/Five.tsx +65 -22
- package/src/components/Content/Card/Styles/Four.tsx +73 -23
- package/src/components/Content/Card/Styles/One.tsx +68 -21
- package/src/components/Content/Card/Styles/RotateInOut.tsx +59 -23
- package/src/components/Content/Card/Styles/Six.tsx +57 -19
- package/src/components/Content/Card/Styles/Three.tsx +59 -23
- package/src/components/Content/Card/Styles/TopTen.tsx +59 -26
- package/src/components/Content/Card/Styles/Two.tsx +39 -18
- package/src/components/Content/Card/components/CardPoster.tsx +34 -32
- package/src/components/Content/Card/components/NavigateToMore.tsx +17 -7
- package/src/components/Content/Card/components/NoContentFallback.tsx +36 -19
- package/src/components/Content/Card/components/ShowAllButton.tsx +12 -8
- package/src/components/Content/Card/components/ThumbnailCard.tsx +26 -17
- package/src/components/Content/Card/index.ts +2 -2
- package/src/components/Content/Content.tsx +41 -17
- package/src/components/Content/Sections.tsx +14 -8
- package/src/components/ContentView/ContentView.tsx +34 -27
- package/src/components/ContentView/MoreContentList.tsx +40 -18
- package/src/components/ContentView/components/AboutSection.tsx +30 -12
- package/src/components/ContentView/components/CastCard.tsx +65 -24
- package/src/components/ContentView/components/EpisodeCard.tsx +109 -44
- package/src/components/ContentView/components/GenreTags.tsx +35 -11
- package/src/components/ContentView/components/HeroBanner.tsx +52 -21
- package/src/components/ContentView/components/PlayButton.tsx +13 -5
- package/src/components/ContentView/components/Title.tsx +30 -10
- package/src/components/ContentView/components/TrailerButton.tsx +16 -7
- package/src/components/Headers/AppHeader.tsx +40 -14
- package/src/components/Headers/One.tsx +18 -9
- package/src/components/Headers/Three.tsx +22 -7
- package/src/components/Headers/Two.tsx +24 -13
- package/src/components/Headers/index.ts +1 -1
- package/src/components/Input/Input.ts +1 -1
- package/src/components/Input/InputOne.tsx +69 -23
- package/src/components/Input/InputTwo.tsx +41 -18
- package/src/components/Input/PhoneNumberInput.tsx +94 -48
- package/src/components/Keyboard/HideKeyboard.tsx +16 -10
- package/src/components/Loader/Loader.tsx +3 -8
- package/src/components/Logo/Logo.tsx +17 -9
- package/src/components/Search/One.tsx +46 -17
- package/src/components/Search/components/RecentSearchesSection.tsx +48 -21
- package/src/components/Search/components/SearchCard.tsx +34 -16
- package/src/components/Search/index.ts +1 -1
- package/src/components/Settings/AppSettings.tsx +80 -29
- package/src/components/Subscription/SubOne.tsx +84 -39
- package/src/components/Subscription/index.ts +1 -1
- package/src/components/TabBar/One.tsx +22 -18
- package/src/components/TabBar/Three.tsx +55 -19
- package/src/components/TabBar/Two.tsx +16 -12
- package/src/components/TabBar/index.ts +1 -1
- package/src/components/Text/Text.tsx +7 -3
- package/src/components/User/DeviceSessions/DeviceSessions.tsx +93 -38
- package/src/components/User/WatchHistory/WatchHistory.tsx +37 -12
- package/src/components/User/WatchLater/WatchLater.tsx +94 -31
- package/src/components/User/components/UserAvatar.tsx +8 -4
- package/src/components/User/components/UserSection.tsx +34 -19
- package/src/components/View/View.tsx +11 -2
- package/src/components/index.ts +1 -0
- package/src/components/layout/SafeAreaWrapper.tsx +10 -4
- package/src/constants/dummySections.ts +9 -7
- package/src/hooks/useDebounce.ts +4 -1
- package/src/hooks/useInitSplashCacheSync.ts +46 -18
- package/src/hooks/useKeyboard.ts +5 -3
- package/src/hooks/usePaginatedSection.ts +11 -7
- package/src/store/RecentSearchesStore.ts +12 -7
- package/src/store/splashStore.ts +16 -16
- package/src/theme/ThemeProvider.tsx +50 -20
- package/src/theme/hook/useTheme.ts +7 -3
- package/src/theme/index.ts +6 -0
- package/src/theme/themes.ts +42 -31
- package/src/types/content/content-view.types.ts +4 -1
- package/src/types/hook/usePaginatedSetion.ts +1 -1
- package/lib/module/components/Icons/AlertIcon.js +0 -33
- package/lib/module/components/Icons/AlertIcon.js.map +0 -1
- package/lib/module/components/Icons/DeviceIcon.js +0 -25
- package/lib/module/components/Icons/DeviceIcon.js.map +0 -1
- package/lib/module/components/Icons/DoneIcon/DoneIcon.js +0 -23
- package/lib/module/components/Icons/DoneIcon/DoneIcon.js.map +0 -1
- package/lib/module/components/Icons/ForgotPasswordMessageIcon.js +0 -65
- package/lib/module/components/Icons/ForgotPasswordMessageIcon.js.map +0 -1
- package/lib/module/components/Icons/ForgotPasswordMessageIconTwo.js +0 -56
- package/lib/module/components/Icons/ForgotPasswordMessageIconTwo.js.map +0 -1
- package/lib/module/components/Icons/NewIndex.js +0 -36
- package/lib/module/components/Icons/NewIndex.js.map +0 -1
- package/lib/module/components/Icons/ResendOTP.js +0 -21
- package/lib/module/components/Icons/ResendOTP.js.map +0 -1
- package/lib/typescript/src/components/Icons/AlertIcon.d.ts +0 -7
- package/lib/typescript/src/components/Icons/AlertIcon.d.ts.map +0 -1
- package/lib/typescript/src/components/Icons/DeviceIcon.d.ts +0 -7
- package/lib/typescript/src/components/Icons/DeviceIcon.d.ts.map +0 -1
- package/lib/typescript/src/components/Icons/DoneIcon/DoneIcon.d.ts +0 -6
- package/lib/typescript/src/components/Icons/DoneIcon/DoneIcon.d.ts.map +0 -1
- package/lib/typescript/src/components/Icons/ForgotPasswordMessageIcon.d.ts +0 -3
- package/lib/typescript/src/components/Icons/ForgotPasswordMessageIcon.d.ts.map +0 -1
- package/lib/typescript/src/components/Icons/ForgotPasswordMessageIconTwo.d.ts +0 -3
- package/lib/typescript/src/components/Icons/ForgotPasswordMessageIconTwo.d.ts.map +0 -1
- package/lib/typescript/src/components/Icons/NewIndex.d.ts +0 -19
- package/lib/typescript/src/components/Icons/NewIndex.d.ts.map +0 -1
- package/lib/typescript/src/components/Icons/ResendOTP.d.ts +0 -7
- package/lib/typescript/src/components/Icons/ResendOTP.d.ts.map +0 -1
- package/src/components/Icons/AlertIcon.tsx +0 -18
- package/src/components/Icons/DeviceIcon.tsx +0 -18
- package/src/components/Icons/DoneIcon/DoneIcon.tsx +0 -17
- package/src/components/Icons/ForgotPasswordMessageIcon.tsx +0 -34
- package/src/components/Icons/ForgotPasswordMessageIconTwo.tsx +0 -32
- package/src/components/Icons/NewIndex.ts +0 -35
- package/src/components/Icons/ResendOTP.tsx +0 -13
- /package/src/{index.ts → index.tsx} +0 -0
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
type ViewStyle,
|
|
14
14
|
type TextStyle,
|
|
15
15
|
type AccessibilityProps,
|
|
16
|
-
type ListRenderItemInfo
|
|
16
|
+
type ListRenderItemInfo,
|
|
17
17
|
} from 'react-native';
|
|
18
18
|
import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
19
19
|
import FastImage from 'react-native-fast-image';
|
|
@@ -22,7 +22,12 @@ import { useTheme } from '../../../../theme/hook/useTheme';
|
|
|
22
22
|
import CardPoster from '../components/CardPoster';
|
|
23
23
|
import NavigateToMore from '../components/NavigateToMore';
|
|
24
24
|
import { usePaginatedSection } from '../../../../hooks/usePaginatedSection';
|
|
25
|
-
import type {
|
|
25
|
+
import type {
|
|
26
|
+
IContentData,
|
|
27
|
+
IGetSectionData,
|
|
28
|
+
ISectionContent,
|
|
29
|
+
MoreFetchData,
|
|
30
|
+
} from '../../../../types';
|
|
26
31
|
import type { AppTheme, ITheme } from '../../../../theme/themes';
|
|
27
32
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
28
33
|
|
|
@@ -44,7 +49,10 @@ type MovieCardProps = {
|
|
|
44
49
|
name: IGetSectionData['name'];
|
|
45
50
|
type: IGetSectionData['type'];
|
|
46
51
|
}) => void;
|
|
47
|
-
renderItemImage?: (params: {
|
|
52
|
+
renderItemImage?: (params: {
|
|
53
|
+
item: IContentData;
|
|
54
|
+
index: number;
|
|
55
|
+
}) => React.ReactNode;
|
|
48
56
|
itemWidth?: number;
|
|
49
57
|
itemHeight?: number;
|
|
50
58
|
borderRadius?: number;
|
|
@@ -75,7 +83,7 @@ const MovieCard: React.FC<MovieCardProps> = ({
|
|
|
75
83
|
isLoading = false,
|
|
76
84
|
theme,
|
|
77
85
|
accessibilityLabel,
|
|
78
|
-
accessibilityHint
|
|
86
|
+
accessibilityHint,
|
|
79
87
|
}) => {
|
|
80
88
|
const flatListRef = useRef<FlatList<IContentData>>(null);
|
|
81
89
|
const onEndReachedCalledDuringMomentum = useRef(false);
|
|
@@ -90,17 +98,29 @@ const MovieCard: React.FC<MovieCardProps> = ({
|
|
|
90
98
|
data,
|
|
91
99
|
pagination,
|
|
92
100
|
loading: isPaginating,
|
|
93
|
-
loadMoreData
|
|
94
|
-
} = usePaginatedSection(
|
|
101
|
+
loadMoreData,
|
|
102
|
+
} = usePaginatedSection(
|
|
103
|
+
section_id,
|
|
104
|
+
moreFetchData,
|
|
105
|
+
initialData?.data || [],
|
|
106
|
+
isLoading
|
|
107
|
+
);
|
|
95
108
|
|
|
96
|
-
const handleItemPress = useCallback(
|
|
109
|
+
const handleItemPress = useCallback(
|
|
110
|
+
(item: IContentData) => onPressItem?.(item),
|
|
111
|
+
[onPressItem]
|
|
112
|
+
);
|
|
97
113
|
|
|
98
114
|
const handlePressMore = useCallback(() => {
|
|
99
115
|
onPressMore?.({ section_id, name: title, type });
|
|
100
116
|
}, [onPressMore, section_id, title, type]);
|
|
101
117
|
|
|
102
118
|
const handleEndReached = useCallback(() => {
|
|
103
|
-
if (
|
|
119
|
+
if (
|
|
120
|
+
!onEndReachedCalledDuringMomentum.current &&
|
|
121
|
+
pagination?.hasNextPage &&
|
|
122
|
+
pagination?.nextPage
|
|
123
|
+
) {
|
|
104
124
|
onEndReachedCalledDuringMomentum.current = true;
|
|
105
125
|
loadMoreData(pagination.nextPage);
|
|
106
126
|
}
|
|
@@ -109,7 +129,11 @@ const MovieCard: React.FC<MovieCardProps> = ({
|
|
|
109
129
|
const renderItem = useCallback(
|
|
110
130
|
({ item, index }: ListRenderItemInfo<IContentData>) => {
|
|
111
131
|
return (
|
|
112
|
-
<TouchableOpacity
|
|
132
|
+
<TouchableOpacity
|
|
133
|
+
style={[styles.item, itemStyle]}
|
|
134
|
+
onPress={() => handleItemPress(item)}
|
|
135
|
+
activeOpacity={0.8}
|
|
136
|
+
>
|
|
113
137
|
{renderItemImage ? (
|
|
114
138
|
renderItemImage({ item, index })
|
|
115
139
|
) : (
|
|
@@ -125,7 +149,16 @@ const MovieCard: React.FC<MovieCardProps> = ({
|
|
|
125
149
|
</TouchableOpacity>
|
|
126
150
|
);
|
|
127
151
|
},
|
|
128
|
-
[
|
|
152
|
+
[
|
|
153
|
+
styles.item,
|
|
154
|
+
styles.image,
|
|
155
|
+
itemStyle,
|
|
156
|
+
renderItemImage,
|
|
157
|
+
appliedTheme,
|
|
158
|
+
borderRadius,
|
|
159
|
+
isLoading,
|
|
160
|
+
handleItemPress,
|
|
161
|
+
]
|
|
129
162
|
);
|
|
130
163
|
|
|
131
164
|
const renderSkeletonItem = ({ index }: { index: number }) => (
|
|
@@ -150,7 +183,10 @@ const MovieCard: React.FC<MovieCardProps> = ({
|
|
|
150
183
|
|
|
151
184
|
if (isLoading) {
|
|
152
185
|
return (
|
|
153
|
-
<View
|
|
186
|
+
<View
|
|
187
|
+
style={[styles.root, containerStyle]}
|
|
188
|
+
testID={`movie-card-skeleton-${section_id}`}
|
|
189
|
+
>
|
|
154
190
|
<SkeletonPlaceholder
|
|
155
191
|
highlightColor={appliedTheme.colors.skeletonHighlightColor}
|
|
156
192
|
backgroundColor={appliedTheme.colors.skeletonBaseColor}
|
|
@@ -185,7 +221,11 @@ const MovieCard: React.FC<MovieCardProps> = ({
|
|
|
185
221
|
<NavigateToMore
|
|
186
222
|
title={title}
|
|
187
223
|
onPress={handlePressMore}
|
|
188
|
-
titleStyle={[
|
|
224
|
+
titleStyle={[
|
|
225
|
+
styles.title,
|
|
226
|
+
{ color: appliedTheme.colors.textPrimary },
|
|
227
|
+
titleStyle,
|
|
228
|
+
]}
|
|
189
229
|
containerStyle={styles.navigateToMoreContainer}
|
|
190
230
|
showAllProps={{ iconColor: appliedTheme.colors.textPrimary }}
|
|
191
231
|
/>
|
|
@@ -206,37 +246,44 @@ const MovieCard: React.FC<MovieCardProps> = ({
|
|
|
206
246
|
onMomentumScrollBegin={() => {
|
|
207
247
|
onEndReachedCalledDuringMomentum.current = false;
|
|
208
248
|
}}
|
|
209
|
-
ListFooterComponent={
|
|
249
|
+
ListFooterComponent={
|
|
250
|
+
isPaginating ? renderSkeletonItem({ index: 0 }) : null
|
|
251
|
+
}
|
|
210
252
|
/>
|
|
211
253
|
</View>
|
|
212
254
|
);
|
|
213
255
|
};
|
|
214
256
|
|
|
215
|
-
const getStyles = (
|
|
257
|
+
const getStyles = (
|
|
258
|
+
theme: ITheme,
|
|
259
|
+
width: number,
|
|
260
|
+
height: number,
|
|
261
|
+
radius: number
|
|
262
|
+
) =>
|
|
216
263
|
StyleSheet.create({
|
|
217
264
|
root: {
|
|
218
|
-
marginVertical: verticalScale(6)
|
|
265
|
+
marginVertical: verticalScale(6),
|
|
219
266
|
},
|
|
220
267
|
item: {
|
|
221
|
-
marginLeft: moderateScale(10)
|
|
268
|
+
marginLeft: moderateScale(10),
|
|
222
269
|
},
|
|
223
270
|
image: {
|
|
224
271
|
width,
|
|
225
272
|
height,
|
|
226
273
|
borderRadius: radius,
|
|
227
|
-
backgroundColor: theme.colors.surfaceVariant
|
|
274
|
+
backgroundColor: theme.colors.surfaceVariant,
|
|
228
275
|
},
|
|
229
276
|
navigateToMoreContainer: {
|
|
230
277
|
paddingHorizontal: moderateScale(10),
|
|
231
|
-
marginBottom: verticalScale(8)
|
|
278
|
+
marginBottom: verticalScale(8),
|
|
232
279
|
},
|
|
233
280
|
title: {
|
|
234
281
|
fontSize: RFValue(13),
|
|
235
|
-
fontWeight: '600'
|
|
282
|
+
fontWeight: '600',
|
|
236
283
|
},
|
|
237
284
|
listContent: {
|
|
238
|
-
paddingRight: moderateScale(15)
|
|
239
|
-
}
|
|
285
|
+
paddingRight: moderateScale(15),
|
|
286
|
+
},
|
|
240
287
|
});
|
|
241
288
|
|
|
242
289
|
export default memo(MovieCard);
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
TouchableOpacity,
|
|
12
12
|
type StyleProp,
|
|
13
13
|
type ViewStyle,
|
|
14
|
-
type TextStyle
|
|
14
|
+
type TextStyle,
|
|
15
15
|
} from 'react-native';
|
|
16
16
|
import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
17
17
|
import FastImage from 'react-native-fast-image';
|
|
@@ -24,7 +24,12 @@ import CardPoster from '../components/CardPoster';
|
|
|
24
24
|
import NavigateToMore from '../components/NavigateToMore';
|
|
25
25
|
|
|
26
26
|
import { usePaginatedSection } from '../../../../hooks/usePaginatedSection';
|
|
27
|
-
import type {
|
|
27
|
+
import type {
|
|
28
|
+
IContentData,
|
|
29
|
+
IGetSectionData,
|
|
30
|
+
ISectionContent,
|
|
31
|
+
MoreFetchData,
|
|
32
|
+
} from '../../../../types';
|
|
28
33
|
import type { AppTheme } from '../../../../theme/themes';
|
|
29
34
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
30
35
|
|
|
@@ -37,18 +42,18 @@ const DEFAULT_BORDER_RADIUS = moderateScale(10);
|
|
|
37
42
|
// Static styles defined outside getStyles to avoid recalculation
|
|
38
43
|
const staticStyles = StyleSheet.create({
|
|
39
44
|
root: {
|
|
40
|
-
marginVertical: verticalScale(6)
|
|
45
|
+
marginVertical: verticalScale(6),
|
|
41
46
|
},
|
|
42
47
|
navigateToMoreContainer: {
|
|
43
48
|
paddingHorizontal: moderateScale(10),
|
|
44
|
-
marginBottom: verticalScale(8)
|
|
49
|
+
marginBottom: verticalScale(8),
|
|
45
50
|
},
|
|
46
51
|
title: {
|
|
47
52
|
fontSize: RFValue(13),
|
|
48
53
|
fontWeight: '600',
|
|
49
54
|
marginHorizontal: moderateScale(15),
|
|
50
|
-
marginVertical: moderateScale(5)
|
|
51
|
-
}
|
|
55
|
+
marginVertical: moderateScale(5),
|
|
56
|
+
},
|
|
52
57
|
});
|
|
53
58
|
|
|
54
59
|
type Props = {
|
|
@@ -63,7 +68,10 @@ type Props = {
|
|
|
63
68
|
name: IGetSectionData['name'];
|
|
64
69
|
type: IGetSectionData['type'];
|
|
65
70
|
}) => void;
|
|
66
|
-
renderItemImage?: (params: {
|
|
71
|
+
renderItemImage?: (params: {
|
|
72
|
+
item: IContentData;
|
|
73
|
+
index: number;
|
|
74
|
+
}) => React.ReactNode;
|
|
67
75
|
itemWidth?: number;
|
|
68
76
|
itemHeight?: number;
|
|
69
77
|
borderRadius?: number;
|
|
@@ -92,7 +100,7 @@ const RotateCarousel: React.FC<Props> = ({
|
|
|
92
100
|
titleStyle,
|
|
93
101
|
itemStyle,
|
|
94
102
|
isLoading = false,
|
|
95
|
-
theme
|
|
103
|
+
theme,
|
|
96
104
|
}) => {
|
|
97
105
|
const { theme: appliedTheme } = useTheme(theme);
|
|
98
106
|
const carouselRef = useRef<any>(null);
|
|
@@ -110,20 +118,20 @@ const RotateCarousel: React.FC<Props> = ({
|
|
|
110
118
|
shadowColor: 'transparent',
|
|
111
119
|
shadowOffset: { width: 0, height: 0 },
|
|
112
120
|
shadowOpacity: 0,
|
|
113
|
-
shadowRadius: 0
|
|
121
|
+
shadowRadius: 0,
|
|
114
122
|
},
|
|
115
123
|
image: {
|
|
116
124
|
width: '100%',
|
|
117
125
|
height: '100%',
|
|
118
|
-
backgroundColor: appliedTheme.colors.skeletonBaseColor ?? '#222'
|
|
126
|
+
backgroundColor: appliedTheme.colors.skeletonBaseColor ?? '#222',
|
|
119
127
|
},
|
|
120
128
|
skeleton: {
|
|
121
129
|
width: itemWidth,
|
|
122
130
|
height: itemHeight,
|
|
123
131
|
borderRadius,
|
|
124
132
|
overflow: 'hidden',
|
|
125
|
-
marginRight: moderateScale(12)
|
|
126
|
-
}
|
|
133
|
+
marginRight: moderateScale(12),
|
|
134
|
+
},
|
|
127
135
|
}),
|
|
128
136
|
[appliedTheme.colors.skeletonBaseColor, itemWidth, itemHeight, borderRadius]
|
|
129
137
|
);
|
|
@@ -132,21 +140,31 @@ const RotateCarousel: React.FC<Props> = ({
|
|
|
132
140
|
data,
|
|
133
141
|
loading: isPaginating,
|
|
134
142
|
pagination,
|
|
135
|
-
loadMoreData
|
|
136
|
-
} = usePaginatedSection(
|
|
143
|
+
loadMoreData,
|
|
144
|
+
} = usePaginatedSection(
|
|
145
|
+
section_id,
|
|
146
|
+
moreFetchData,
|
|
147
|
+
initialData?.data || [],
|
|
148
|
+
isLoading
|
|
149
|
+
);
|
|
137
150
|
|
|
138
151
|
// Memoized skeleton items
|
|
139
152
|
const skeletonItems = useMemo(() => {
|
|
140
153
|
const count = isLoading ? skeletonCount : isPaginating ? 1 : 0;
|
|
141
154
|
return Array.from({ length: count }, (_, i) => ({
|
|
142
155
|
_id: `skeleton-${i}`,
|
|
143
|
-
isSkeleton: true
|
|
156
|
+
isSkeleton: true,
|
|
144
157
|
}));
|
|
145
158
|
}, [isLoading, isPaginating, skeletonCount]);
|
|
146
159
|
|
|
147
160
|
// Optimized finalData to avoid unnecessary spread
|
|
148
161
|
const finalData = useMemo(
|
|
149
|
-
() =>
|
|
162
|
+
() =>
|
|
163
|
+
isLoading
|
|
164
|
+
? skeletonItems
|
|
165
|
+
: skeletonItems.length > 0
|
|
166
|
+
? [...data, ...skeletonItems]
|
|
167
|
+
: data,
|
|
150
168
|
[isLoading, data, skeletonItems]
|
|
151
169
|
);
|
|
152
170
|
|
|
@@ -170,12 +188,18 @@ const RotateCarousel: React.FC<Props> = ({
|
|
|
170
188
|
onPressMore?.({
|
|
171
189
|
section_id,
|
|
172
190
|
name: title,
|
|
173
|
-
type
|
|
191
|
+
type,
|
|
174
192
|
});
|
|
175
193
|
}, [onPressMore, section_id, title, type]);
|
|
176
194
|
|
|
177
195
|
const renderItem = useCallback(
|
|
178
|
-
({
|
|
196
|
+
({
|
|
197
|
+
item,
|
|
198
|
+
index,
|
|
199
|
+
}: {
|
|
200
|
+
item: IContentData | { isSkeleton: true; _id: string };
|
|
201
|
+
index: number;
|
|
202
|
+
}) => {
|
|
179
203
|
if ('isSkeleton' in item) {
|
|
180
204
|
return (
|
|
181
205
|
<View key={item._id} style={styles.skeleton}>
|
|
@@ -183,7 +207,11 @@ const RotateCarousel: React.FC<Props> = ({
|
|
|
183
207
|
highlightColor={appliedTheme.colors.skeletonHighlightColor}
|
|
184
208
|
backgroundColor={appliedTheme.colors.skeletonBaseColor}
|
|
185
209
|
>
|
|
186
|
-
<SkeletonPlaceholder.Item
|
|
210
|
+
<SkeletonPlaceholder.Item
|
|
211
|
+
width={itemWidth}
|
|
212
|
+
height={itemHeight}
|
|
213
|
+
borderRadius={borderRadius}
|
|
214
|
+
/>
|
|
187
215
|
</SkeletonPlaceholder>
|
|
188
216
|
</View>
|
|
189
217
|
);
|
|
@@ -224,7 +252,7 @@ const RotateCarousel: React.FC<Props> = ({
|
|
|
224
252
|
borderRadius,
|
|
225
253
|
itemWidth,
|
|
226
254
|
itemHeight,
|
|
227
|
-
handleItemPress
|
|
255
|
+
handleItemPress,
|
|
228
256
|
]
|
|
229
257
|
);
|
|
230
258
|
if (!initialData) {
|
|
@@ -233,7 +261,10 @@ const RotateCarousel: React.FC<Props> = ({
|
|
|
233
261
|
if (!isLoading && (!data || data.length === 0)) return null;
|
|
234
262
|
|
|
235
263
|
return (
|
|
236
|
-
<View
|
|
264
|
+
<View
|
|
265
|
+
style={[staticStyles.root, containerStyle]}
|
|
266
|
+
testID={`movie-card-${section_id}`}
|
|
267
|
+
>
|
|
237
268
|
{isLoading ? (
|
|
238
269
|
<SkeletonPlaceholder
|
|
239
270
|
highlightColor={appliedTheme.colors.skeletonHighlightColor}
|
|
@@ -251,7 +282,11 @@ const RotateCarousel: React.FC<Props> = ({
|
|
|
251
282
|
<NavigateToMore
|
|
252
283
|
title={title}
|
|
253
284
|
onPress={handlePressMore}
|
|
254
|
-
titleStyle={[
|
|
285
|
+
titleStyle={[
|
|
286
|
+
staticStyles.title,
|
|
287
|
+
{ color: appliedTheme.colors.textPrimary },
|
|
288
|
+
titleStyle,
|
|
289
|
+
]}
|
|
255
290
|
containerStyle={staticStyles.navigateToMoreContainer}
|
|
256
291
|
showAllProps={{ iconColor: appliedTheme.colors.textPrimary }}
|
|
257
292
|
/>
|
|
@@ -267,7 +302,8 @@ const RotateCarousel: React.FC<Props> = ({
|
|
|
267
302
|
sliderWidth={width}
|
|
268
303
|
itemWidth={itemWidth}
|
|
269
304
|
onSnapToItem={(index) => {
|
|
270
|
-
if (isLoading || !pagination?.hasNextPage || !pagination?.nextPage)
|
|
305
|
+
if (isLoading || !pagination?.hasNextPage || !pagination?.nextPage)
|
|
306
|
+
return;
|
|
271
307
|
if (index >= finalData.length - 2) {
|
|
272
308
|
debouncedLoadMore(pagination.nextPage);
|
|
273
309
|
}
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
type TextStyle,
|
|
15
15
|
type AccessibilityProps,
|
|
16
16
|
type ListRenderItemInfo,
|
|
17
|
-
ScrollView
|
|
17
|
+
ScrollView,
|
|
18
18
|
} from 'react-native';
|
|
19
19
|
import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
20
20
|
import { moderateScale, verticalScale } from 'react-native-size-matters';
|
|
@@ -26,7 +26,12 @@ import { ThumbnailCard } from '../components/ThumbnailCard';
|
|
|
26
26
|
import { Text } from '../../../Text';
|
|
27
27
|
import { usePaginatedSection } from '../../../../hooks/usePaginatedSection';
|
|
28
28
|
import type { AppTheme } from '../../../../theme/themes';
|
|
29
|
-
import type {
|
|
29
|
+
import type {
|
|
30
|
+
IContentData,
|
|
31
|
+
IGetSectionData,
|
|
32
|
+
ISectionContent,
|
|
33
|
+
MoreFetchData,
|
|
34
|
+
} from '../../../../types';
|
|
30
35
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
31
36
|
const DEFAULT_ITEM_WIDTH = moderateScale(160);
|
|
32
37
|
const DEFAULT_BORDER_RADIUS = moderateScale(5);
|
|
@@ -71,13 +76,18 @@ const MovieCardSix: React.FC<MovieCardSixProps> = ({
|
|
|
71
76
|
itemStyle,
|
|
72
77
|
isLoading = false,
|
|
73
78
|
accessibilityLabel,
|
|
74
|
-
accessibilityHint
|
|
79
|
+
accessibilityHint,
|
|
75
80
|
}) => {
|
|
76
81
|
const flatListRef = useRef<FlatList<IContentData>>(null);
|
|
77
82
|
const onEndReachedCalledDuringMomentum = useRef(false);
|
|
78
83
|
const { theme: appliedTheme } = useTheme(theme);
|
|
79
84
|
|
|
80
|
-
const paginated = usePaginatedSection(
|
|
85
|
+
const paginated = usePaginatedSection(
|
|
86
|
+
section_id,
|
|
87
|
+
moreFetchData,
|
|
88
|
+
initialData?.data,
|
|
89
|
+
isLoading
|
|
90
|
+
);
|
|
81
91
|
|
|
82
92
|
const sectionData = paginated.data;
|
|
83
93
|
const pagination = paginated.pagination;
|
|
@@ -96,7 +106,11 @@ const MovieCardSix: React.FC<MovieCardSixProps> = ({
|
|
|
96
106
|
}, [onPressMore, section_id, title, type]);
|
|
97
107
|
|
|
98
108
|
const handleEndReached = useCallback(() => {
|
|
99
|
-
if (
|
|
109
|
+
if (
|
|
110
|
+
!onEndReachedCalledDuringMomentum.current &&
|
|
111
|
+
pagination?.hasNextPage &&
|
|
112
|
+
pagination?.nextPage
|
|
113
|
+
) {
|
|
100
114
|
onEndReachedCalledDuringMomentum.current = true;
|
|
101
115
|
loadMoreData(pagination.nextPage);
|
|
102
116
|
}
|
|
@@ -104,7 +118,11 @@ const MovieCardSix: React.FC<MovieCardSixProps> = ({
|
|
|
104
118
|
|
|
105
119
|
const renderItem = useCallback(
|
|
106
120
|
({ item }: ListRenderItemInfo<IContentData>) => (
|
|
107
|
-
<TouchableOpacity
|
|
121
|
+
<TouchableOpacity
|
|
122
|
+
style={[styles.item, itemStyle]}
|
|
123
|
+
onPress={() => handleItemPress(item)}
|
|
124
|
+
activeOpacity={0.8}
|
|
125
|
+
>
|
|
108
126
|
<ThumbnailCard
|
|
109
127
|
thumbnailUri={item.thumbnail}
|
|
110
128
|
theme={appliedTheme}
|
|
@@ -114,7 +132,13 @@ const MovieCardSix: React.FC<MovieCardSixProps> = ({
|
|
|
114
132
|
resizeMode={FastImage.resizeMode.cover}
|
|
115
133
|
/>
|
|
116
134
|
<View style={{ width: itemWidth, marginTop: verticalScale(4) }}>
|
|
117
|
-
<Text
|
|
135
|
+
<Text
|
|
136
|
+
style={[
|
|
137
|
+
styles.itemTitle,
|
|
138
|
+
{ color: appliedTheme.colors.textPrimary },
|
|
139
|
+
]}
|
|
140
|
+
numberOfLines={1}
|
|
141
|
+
>
|
|
118
142
|
{item.name}
|
|
119
143
|
</Text>
|
|
120
144
|
</View>
|
|
@@ -138,7 +162,11 @@ const MovieCardSix: React.FC<MovieCardSixProps> = ({
|
|
|
138
162
|
marginRight={moderateScale(12)}
|
|
139
163
|
>
|
|
140
164
|
{/* Thumbnail */}
|
|
141
|
-
<SkeletonPlaceholder.Item
|
|
165
|
+
<SkeletonPlaceholder.Item
|
|
166
|
+
width={itemWidth}
|
|
167
|
+
height={(itemWidth * 9) / 16}
|
|
168
|
+
borderRadius={borderRadius}
|
|
169
|
+
/>
|
|
142
170
|
|
|
143
171
|
{/* Title */}
|
|
144
172
|
<SkeletonPlaceholder.Item
|
|
@@ -177,8 +205,14 @@ const MovieCardSix: React.FC<MovieCardSixProps> = ({
|
|
|
177
205
|
marginBottom={verticalScale(6)}
|
|
178
206
|
/>
|
|
179
207
|
</SkeletonPlaceholder>
|
|
180
|
-
<ScrollView
|
|
181
|
-
|
|
208
|
+
<ScrollView
|
|
209
|
+
horizontal
|
|
210
|
+
showsHorizontalScrollIndicator={false}
|
|
211
|
+
contentContainerStyle={styles.skeletonList}
|
|
212
|
+
>
|
|
213
|
+
{Array.from({ length: isPaginating ? 1 : skeletonCount }).map(
|
|
214
|
+
(_, index) => renderSkeletonItem(index)
|
|
215
|
+
)}
|
|
182
216
|
</ScrollView>
|
|
183
217
|
</>
|
|
184
218
|
) : (
|
|
@@ -186,7 +220,11 @@ const MovieCardSix: React.FC<MovieCardSixProps> = ({
|
|
|
186
220
|
<NavigateToMore
|
|
187
221
|
title={title}
|
|
188
222
|
onPress={handlePressMore}
|
|
189
|
-
titleStyle={[
|
|
223
|
+
titleStyle={[
|
|
224
|
+
styles.title,
|
|
225
|
+
{ color: appliedTheme.colors.textPrimary },
|
|
226
|
+
titleStyle,
|
|
227
|
+
]}
|
|
190
228
|
containerStyle={styles.navigateToMoreContainer}
|
|
191
229
|
showAllProps={{ iconColor: appliedTheme.colors.textPrimary }}
|
|
192
230
|
/>
|
|
@@ -217,33 +255,33 @@ const MovieCardSix: React.FC<MovieCardSixProps> = ({
|
|
|
217
255
|
|
|
218
256
|
const styles = StyleSheet.create({
|
|
219
257
|
root: {
|
|
220
|
-
marginVertical: verticalScale(6)
|
|
258
|
+
marginVertical: verticalScale(6),
|
|
221
259
|
},
|
|
222
260
|
item: {
|
|
223
|
-
marginLeft: moderateScale(10)
|
|
261
|
+
marginLeft: moderateScale(10),
|
|
224
262
|
},
|
|
225
263
|
navigateToMoreContainer: {
|
|
226
264
|
paddingHorizontal: moderateScale(10),
|
|
227
|
-
marginBottom: verticalScale(8)
|
|
265
|
+
marginBottom: verticalScale(8),
|
|
228
266
|
},
|
|
229
267
|
title: {
|
|
230
268
|
fontSize: RFValue(13),
|
|
231
|
-
fontWeight: '600'
|
|
269
|
+
fontWeight: '600',
|
|
232
270
|
},
|
|
233
271
|
itemTitle: {
|
|
234
272
|
fontSize: RFValue(9),
|
|
235
273
|
fontWeight: '500',
|
|
236
274
|
lineHeight: moderateScale(13),
|
|
237
|
-
height: moderateScale(13)
|
|
275
|
+
height: moderateScale(13),
|
|
238
276
|
},
|
|
239
277
|
listContent: {
|
|
240
|
-
paddingRight: moderateScale(15)
|
|
278
|
+
paddingRight: moderateScale(15),
|
|
241
279
|
},
|
|
242
280
|
skeletonList: {
|
|
243
281
|
flexDirection: 'row',
|
|
244
282
|
alignItems: 'flex-start',
|
|
245
|
-
paddingRight: moderateScale(15)
|
|
246
|
-
}
|
|
283
|
+
paddingRight: moderateScale(15),
|
|
284
|
+
},
|
|
247
285
|
});
|
|
248
286
|
|
|
249
287
|
export default memo(MovieCardSix);
|