@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
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
type ViewStyle,
|
|
12
12
|
type TextStyle,
|
|
13
13
|
Dimensions,
|
|
14
|
-
TouchableOpacity
|
|
14
|
+
TouchableOpacity,
|
|
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 { usePaginatedSection } from '../../../../hooks/usePaginatedSection';
|
|
|
24
24
|
import { useTheme } from '../../../../theme/hook/useTheme';
|
|
25
25
|
import CardPoster from '../components/CardPoster';
|
|
26
26
|
import NavigateToMore from '../components/NavigateToMore';
|
|
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 MovieCardThree: 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
|
|
|
@@ -111,20 +119,20 @@ const MovieCardThree: React.FC<Props> = ({
|
|
|
111
119
|
shadowColor: 'transparent',
|
|
112
120
|
shadowOffset: { width: 0, height: 0 },
|
|
113
121
|
shadowOpacity: 0,
|
|
114
|
-
shadowRadius: 0
|
|
122
|
+
shadowRadius: 0,
|
|
115
123
|
},
|
|
116
124
|
image: {
|
|
117
125
|
width: '100%',
|
|
118
126
|
height: '100%',
|
|
119
|
-
backgroundColor: appliedTheme.colors.skeletonBaseColor ?? '#222'
|
|
127
|
+
backgroundColor: appliedTheme.colors.skeletonBaseColor ?? '#222',
|
|
120
128
|
},
|
|
121
129
|
skeleton: {
|
|
122
130
|
width: itemWidth,
|
|
123
131
|
height: itemHeight,
|
|
124
132
|
borderRadius,
|
|
125
133
|
overflow: 'hidden',
|
|
126
|
-
marginRight: moderateScale(12)
|
|
127
|
-
}
|
|
134
|
+
marginRight: moderateScale(12),
|
|
135
|
+
},
|
|
128
136
|
}),
|
|
129
137
|
[appliedTheme.colors.skeletonBaseColor, itemWidth, itemHeight, borderRadius]
|
|
130
138
|
);
|
|
@@ -133,21 +141,31 @@ const MovieCardThree: React.FC<Props> = ({
|
|
|
133
141
|
data,
|
|
134
142
|
loading: isPaginating,
|
|
135
143
|
pagination,
|
|
136
|
-
loadMoreData
|
|
137
|
-
} = usePaginatedSection(
|
|
144
|
+
loadMoreData,
|
|
145
|
+
} = usePaginatedSection(
|
|
146
|
+
section_id,
|
|
147
|
+
moreFetchData,
|
|
148
|
+
initialData?.data || [],
|
|
149
|
+
isLoading
|
|
150
|
+
);
|
|
138
151
|
|
|
139
152
|
// Memoized skeleton items
|
|
140
153
|
const skeletonItems = useMemo(() => {
|
|
141
154
|
const count = isLoading ? skeletonCount : isPaginating ? 1 : 0;
|
|
142
155
|
return Array.from({ length: count }, (_, i) => ({
|
|
143
156
|
_id: `skeleton-${i}`,
|
|
144
|
-
isSkeleton: true
|
|
157
|
+
isSkeleton: true,
|
|
145
158
|
}));
|
|
146
159
|
}, [isLoading, isPaginating, skeletonCount]);
|
|
147
160
|
|
|
148
161
|
// Optimized finalData to avoid unnecessary spread
|
|
149
162
|
const finalData = useMemo(
|
|
150
|
-
() =>
|
|
163
|
+
() =>
|
|
164
|
+
isLoading
|
|
165
|
+
? skeletonItems
|
|
166
|
+
: skeletonItems.length > 0
|
|
167
|
+
? [...data, ...skeletonItems]
|
|
168
|
+
: data,
|
|
151
169
|
[isLoading, data, skeletonItems]
|
|
152
170
|
);
|
|
153
171
|
|
|
@@ -171,12 +189,18 @@ const MovieCardThree: React.FC<Props> = ({
|
|
|
171
189
|
onPressMore?.({
|
|
172
190
|
section_id,
|
|
173
191
|
name: title,
|
|
174
|
-
type
|
|
192
|
+
type,
|
|
175
193
|
});
|
|
176
194
|
}, [onPressMore, section_id, title, type]);
|
|
177
195
|
|
|
178
196
|
const renderItem = useCallback(
|
|
179
|
-
({
|
|
197
|
+
({
|
|
198
|
+
item,
|
|
199
|
+
index,
|
|
200
|
+
}: {
|
|
201
|
+
item: IContentData | { isSkeleton: true; _id: string };
|
|
202
|
+
index: number;
|
|
203
|
+
}) => {
|
|
180
204
|
if ('isSkeleton' in item) {
|
|
181
205
|
return (
|
|
182
206
|
<View key={item._id} style={styles.skeleton}>
|
|
@@ -184,7 +208,11 @@ const MovieCardThree: React.FC<Props> = ({
|
|
|
184
208
|
highlightColor={appliedTheme.colors.skeletonHighlightColor}
|
|
185
209
|
backgroundColor={appliedTheme.colors.skeletonBaseColor}
|
|
186
210
|
>
|
|
187
|
-
<SkeletonPlaceholder.Item
|
|
211
|
+
<SkeletonPlaceholder.Item
|
|
212
|
+
width={itemWidth}
|
|
213
|
+
height={itemHeight}
|
|
214
|
+
borderRadius={borderRadius}
|
|
215
|
+
/>
|
|
188
216
|
</SkeletonPlaceholder>
|
|
189
217
|
</View>
|
|
190
218
|
);
|
|
@@ -225,14 +253,17 @@ const MovieCardThree: React.FC<Props> = ({
|
|
|
225
253
|
borderRadius,
|
|
226
254
|
itemWidth,
|
|
227
255
|
itemHeight,
|
|
228
|
-
handleItemPress
|
|
256
|
+
handleItemPress,
|
|
229
257
|
]
|
|
230
258
|
);
|
|
231
259
|
if (!initialData) return null;
|
|
232
260
|
if (!isLoading && (!data || data.length === 0)) return null;
|
|
233
261
|
|
|
234
262
|
return (
|
|
235
|
-
<View
|
|
263
|
+
<View
|
|
264
|
+
style={[staticStyles.root, containerStyle]}
|
|
265
|
+
testID={`movie-card-${section_id}`}
|
|
266
|
+
>
|
|
236
267
|
{isLoading ? (
|
|
237
268
|
<SkeletonPlaceholder
|
|
238
269
|
highlightColor={appliedTheme.colors.skeletonHighlightColor}
|
|
@@ -250,7 +281,11 @@ const MovieCardThree: React.FC<Props> = ({
|
|
|
250
281
|
<NavigateToMore
|
|
251
282
|
title={title}
|
|
252
283
|
onPress={handlePressMore}
|
|
253
|
-
titleStyle={[
|
|
284
|
+
titleStyle={[
|
|
285
|
+
staticStyles.title,
|
|
286
|
+
{ color: appliedTheme.colors.textPrimary },
|
|
287
|
+
titleStyle,
|
|
288
|
+
]}
|
|
254
289
|
containerStyle={staticStyles.navigateToMoreContainer}
|
|
255
290
|
showAllProps={{ iconColor: appliedTheme.colors.textPrimary }}
|
|
256
291
|
/>
|
|
@@ -266,7 +301,8 @@ const MovieCardThree: React.FC<Props> = ({
|
|
|
266
301
|
sliderWidth={width}
|
|
267
302
|
itemWidth={itemWidth}
|
|
268
303
|
onSnapToItem={(index) => {
|
|
269
|
-
if (isLoading || !pagination?.hasNextPage || !pagination?.nextPage)
|
|
304
|
+
if (isLoading || !pagination?.hasNextPage || !pagination?.nextPage)
|
|
305
|
+
return;
|
|
270
306
|
if (index >= finalData.length - 2) {
|
|
271
307
|
debouncedLoadMore(pagination.nextPage);
|
|
272
308
|
}
|
|
@@ -13,14 +13,19 @@ import {
|
|
|
13
13
|
type TextStyle,
|
|
14
14
|
type ViewStyle,
|
|
15
15
|
type AccessibilityProps,
|
|
16
|
-
type ListRenderItem
|
|
16
|
+
type ListRenderItem,
|
|
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
20
|
import { useTheme } from '../../../../theme/hook/useTheme';
|
|
21
21
|
import NavigateToMore from '../components/NavigateToMore';
|
|
22
22
|
import { usePaginatedSection } from '../../../../hooks/usePaginatedSection';
|
|
23
|
-
import type {
|
|
23
|
+
import type {
|
|
24
|
+
IContentData,
|
|
25
|
+
IGetSectionData,
|
|
26
|
+
ISectionContent,
|
|
27
|
+
MoreFetchData,
|
|
28
|
+
} from '../../../../types';
|
|
24
29
|
import type { AppTheme, ITheme } from '../../../../theme/themes';
|
|
25
30
|
import FastImage from 'react-native-fast-image';
|
|
26
31
|
import LinearGradient from 'react-native-linear-gradient';
|
|
@@ -74,7 +79,7 @@ const TopTenCard: React.FC<TopTenCardProps> = ({
|
|
|
74
79
|
isLoading = false,
|
|
75
80
|
theme,
|
|
76
81
|
accessibilityLabel,
|
|
77
|
-
accessibilityHint
|
|
82
|
+
accessibilityHint,
|
|
78
83
|
}) => {
|
|
79
84
|
const flatListRef = useRef<FlatList<IContentData>>(null);
|
|
80
85
|
const onEndReachedDuringMomentum = useRef(false);
|
|
@@ -88,13 +93,22 @@ const TopTenCard: React.FC<TopTenCardProps> = ({
|
|
|
88
93
|
data,
|
|
89
94
|
pagination: paginated,
|
|
90
95
|
loading: isPaginating,
|
|
91
|
-
loadMoreData
|
|
92
|
-
} = usePaginatedSection(
|
|
96
|
+
loadMoreData,
|
|
97
|
+
} = usePaginatedSection(
|
|
98
|
+
section_id,
|
|
99
|
+
moreFetchData,
|
|
100
|
+
initialData?.data || [],
|
|
101
|
+
isLoading
|
|
102
|
+
);
|
|
93
103
|
|
|
94
104
|
const listData = useMemo(() => (Array.isArray(data) ? data : []), [data]);
|
|
95
105
|
|
|
96
106
|
const handleEndReached = useCallback(() => {
|
|
97
|
-
if (
|
|
107
|
+
if (
|
|
108
|
+
!onEndReachedDuringMomentum.current &&
|
|
109
|
+
paginated?.hasNextPage &&
|
|
110
|
+
paginated?.nextPage
|
|
111
|
+
) {
|
|
98
112
|
onEndReachedDuringMomentum.current = true;
|
|
99
113
|
loadMoreData(paginated.nextPage);
|
|
100
114
|
}
|
|
@@ -113,7 +127,10 @@ const TopTenCard: React.FC<TopTenCardProps> = ({
|
|
|
113
127
|
onPress={() => handleItemPress(item)}
|
|
114
128
|
activeOpacity={0.8}
|
|
115
129
|
>
|
|
116
|
-
<LinearGradient
|
|
130
|
+
<LinearGradient
|
|
131
|
+
colors={['rgba(0,0,0,0)', 'rgba(0,0,0,0.8)']}
|
|
132
|
+
style={styles.imageOverlay}
|
|
133
|
+
>
|
|
117
134
|
<CardPoster
|
|
118
135
|
posterUri={item.poster}
|
|
119
136
|
isLoading={isLoading}
|
|
@@ -148,7 +165,7 @@ const TopTenCard: React.FC<TopTenCardProps> = ({
|
|
|
148
165
|
isLoading,
|
|
149
166
|
borderRadius,
|
|
150
167
|
appliedTheme,
|
|
151
|
-
handleItemPress
|
|
168
|
+
handleItemPress,
|
|
152
169
|
]
|
|
153
170
|
);
|
|
154
171
|
|
|
@@ -178,7 +195,10 @@ const TopTenCard: React.FC<TopTenCardProps> = ({
|
|
|
178
195
|
|
|
179
196
|
if (isLoading) {
|
|
180
197
|
return (
|
|
181
|
-
<View
|
|
198
|
+
<View
|
|
199
|
+
style={[styles.root, containerStyle]}
|
|
200
|
+
testID={`movie-card-skeleton-${section_id}`}
|
|
201
|
+
>
|
|
182
202
|
<SkeletonPlaceholder
|
|
183
203
|
highlightColor={appliedTheme.colors.skeletonHighlightColor}
|
|
184
204
|
backgroundColor={appliedTheme.colors.skeletonBaseColor}
|
|
@@ -214,7 +234,7 @@ const TopTenCard: React.FC<TopTenCardProps> = ({
|
|
|
214
234
|
onPressMore?.({
|
|
215
235
|
section_id,
|
|
216
236
|
name: title,
|
|
217
|
-
type
|
|
237
|
+
type,
|
|
218
238
|
})
|
|
219
239
|
}
|
|
220
240
|
titleStyle={[styles.title, titleStyle]}
|
|
@@ -246,9 +266,17 @@ const TopTenCard: React.FC<TopTenCardProps> = ({
|
|
|
246
266
|
speed={800}
|
|
247
267
|
>
|
|
248
268
|
<View style={[styles.item, styles.skeletonItem]}>
|
|
249
|
-
<SkeletonPlaceholder.Item
|
|
269
|
+
<SkeletonPlaceholder.Item
|
|
270
|
+
width={itemWidth}
|
|
271
|
+
height={itemHeight}
|
|
272
|
+
borderRadius={borderRadius}
|
|
273
|
+
/>
|
|
250
274
|
<View style={styles.numberContainer}>
|
|
251
|
-
<SkeletonPlaceholder.Item
|
|
275
|
+
<SkeletonPlaceholder.Item
|
|
276
|
+
width={scale(40)}
|
|
277
|
+
height={scale(40)}
|
|
278
|
+
borderRadius={borderRadius}
|
|
279
|
+
/>
|
|
252
280
|
</View>
|
|
253
281
|
</View>
|
|
254
282
|
</SkeletonPlaceholder>
|
|
@@ -259,10 +287,15 @@ const TopTenCard: React.FC<TopTenCardProps> = ({
|
|
|
259
287
|
);
|
|
260
288
|
};
|
|
261
289
|
|
|
262
|
-
const getStyles = (
|
|
290
|
+
const getStyles = (
|
|
291
|
+
theme: ITheme,
|
|
292
|
+
width: number,
|
|
293
|
+
height: number,
|
|
294
|
+
radius: number
|
|
295
|
+
) =>
|
|
263
296
|
StyleSheet.create({
|
|
264
297
|
root: {
|
|
265
|
-
marginVertical: verticalScale(6)
|
|
298
|
+
marginVertical: verticalScale(6),
|
|
266
299
|
},
|
|
267
300
|
item: {
|
|
268
301
|
width,
|
|
@@ -273,21 +306,21 @@ const getStyles = (theme: ITheme, width: number, height: number, radius: number)
|
|
|
273
306
|
borderWidth: scale(0.5),
|
|
274
307
|
aspectRatio: 2 / 3,
|
|
275
308
|
borderRadius: radius,
|
|
276
|
-
position: 'relative'
|
|
309
|
+
position: 'relative',
|
|
277
310
|
},
|
|
278
311
|
firstItem: {
|
|
279
|
-
marginLeft: moderateScale(10)
|
|
312
|
+
marginLeft: moderateScale(10),
|
|
280
313
|
},
|
|
281
314
|
imageOverlay: {
|
|
282
315
|
width: '100%',
|
|
283
316
|
height: '100%',
|
|
284
317
|
justifyContent: 'flex-end',
|
|
285
|
-
alignItems: 'flex-start'
|
|
318
|
+
alignItems: 'flex-start',
|
|
286
319
|
},
|
|
287
320
|
image: {
|
|
288
321
|
width: '100%',
|
|
289
322
|
height: '100%',
|
|
290
|
-
borderRadius: radius
|
|
323
|
+
borderRadius: radius,
|
|
291
324
|
},
|
|
292
325
|
|
|
293
326
|
rankNumberBox: {
|
|
@@ -295,7 +328,7 @@ const getStyles = (theme: ITheme, width: number, height: number, radius: number)
|
|
|
295
328
|
height: scale(40),
|
|
296
329
|
borderTopRightRadius: scale(30),
|
|
297
330
|
justifyContent: 'center',
|
|
298
|
-
alignItems: 'center'
|
|
331
|
+
alignItems: 'center',
|
|
299
332
|
},
|
|
300
333
|
rankNumberText: {
|
|
301
334
|
fontSize: RFValue(27),
|
|
@@ -306,33 +339,33 @@ const getStyles = (theme: ITheme, width: number, height: number, radius: number)
|
|
|
306
339
|
textShadowRadius: 3,
|
|
307
340
|
marginTop: scale(5),
|
|
308
341
|
marginRight: scale(5),
|
|
309
|
-
letterSpacing: 0.5
|
|
342
|
+
letterSpacing: 0.5,
|
|
310
343
|
},
|
|
311
344
|
numberContainer: {
|
|
312
345
|
position: 'absolute',
|
|
313
346
|
bottom: 0,
|
|
314
347
|
left: 0,
|
|
315
|
-
zIndex: 10
|
|
348
|
+
zIndex: 10,
|
|
316
349
|
},
|
|
317
350
|
navigateToMoreContainer: {
|
|
318
351
|
paddingHorizontal: moderateScale(16),
|
|
319
|
-
marginBottom: verticalScale(8)
|
|
352
|
+
marginBottom: verticalScale(8),
|
|
320
353
|
},
|
|
321
354
|
listContent: {
|
|
322
|
-
paddingRight: moderateScale(20)
|
|
355
|
+
paddingRight: moderateScale(20),
|
|
323
356
|
},
|
|
324
357
|
title: {
|
|
325
358
|
fontSize: RFValue(13),
|
|
326
359
|
fontWeight: '600',
|
|
327
|
-
color: theme.colors.textPrimary
|
|
360
|
+
color: theme.colors.textPrimary,
|
|
328
361
|
},
|
|
329
362
|
skeletonItem: {
|
|
330
363
|
shadowColor: '#000',
|
|
331
364
|
shadowOffset: { width: 0, height: 1 },
|
|
332
365
|
shadowOpacity: 0.1,
|
|
333
366
|
shadowRadius: 2,
|
|
334
|
-
elevation: 1
|
|
335
|
-
}
|
|
367
|
+
elevation: 1,
|
|
368
|
+
},
|
|
336
369
|
});
|
|
337
370
|
|
|
338
371
|
export default memo(TopTenCard);
|
|
@@ -14,14 +14,19 @@ import {
|
|
|
14
14
|
type ViewStyle,
|
|
15
15
|
type AccessibilityProps,
|
|
16
16
|
type ListRenderItem,
|
|
17
|
-
type ListRenderItemInfo
|
|
17
|
+
type ListRenderItemInfo,
|
|
18
18
|
} from 'react-native';
|
|
19
19
|
import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
20
20
|
import FastImage from 'react-native-fast-image';
|
|
21
21
|
import { moderateScale, verticalScale } from 'react-native-size-matters';
|
|
22
22
|
|
|
23
23
|
import { usePaginatedSection } from '../../../../hooks/usePaginatedSection';
|
|
24
|
-
import type {
|
|
24
|
+
import type {
|
|
25
|
+
IContentData,
|
|
26
|
+
IGetSectionData,
|
|
27
|
+
ISectionContent,
|
|
28
|
+
MoreFetchData,
|
|
29
|
+
} from '../../../../types';
|
|
25
30
|
import type { AppTheme, ITheme } from '../../../../theme/themes';
|
|
26
31
|
import { useTheme } from '../../../../theme/hook/useTheme';
|
|
27
32
|
import NavigateToMore from '../components/NavigateToMore';
|
|
@@ -45,7 +50,10 @@ type MovieCardTwoProps = {
|
|
|
45
50
|
name: IGetSectionData['name'];
|
|
46
51
|
type: IGetSectionData['type'];
|
|
47
52
|
}) => void;
|
|
48
|
-
renderItemImage?: (params: {
|
|
53
|
+
renderItemImage?: (params: {
|
|
54
|
+
item: IContentData;
|
|
55
|
+
index: number;
|
|
56
|
+
}) => React.ReactNode;
|
|
49
57
|
itemWidth?: number;
|
|
50
58
|
borderRadius?: number;
|
|
51
59
|
skeletonCount?: number;
|
|
@@ -74,7 +82,7 @@ const MovieCardTwo: React.FC<MovieCardTwoProps> = ({
|
|
|
74
82
|
isLoading = false,
|
|
75
83
|
theme,
|
|
76
84
|
accessibilityLabel,
|
|
77
|
-
accessibilityHint
|
|
85
|
+
accessibilityHint,
|
|
78
86
|
}) => {
|
|
79
87
|
const flatListRef = useRef<FlatList<IContentData>>(null);
|
|
80
88
|
|
|
@@ -90,8 +98,13 @@ const MovieCardTwo: React.FC<MovieCardTwoProps> = ({
|
|
|
90
98
|
data,
|
|
91
99
|
pagination: paginated,
|
|
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
|
const handleItemPress = useCallback(
|
|
96
109
|
(item: IContentData) => {
|
|
97
110
|
onPressItem?.(item);
|
|
@@ -102,11 +115,15 @@ const MovieCardTwo: React.FC<MovieCardTwoProps> = ({
|
|
|
102
115
|
onPressMore?.({
|
|
103
116
|
section_id,
|
|
104
117
|
name: title,
|
|
105
|
-
type
|
|
118
|
+
type,
|
|
106
119
|
});
|
|
107
120
|
}, [onPressMore, section_id, title, type]);
|
|
108
121
|
const handleEndReached = useCallback(() => {
|
|
109
|
-
if (
|
|
122
|
+
if (
|
|
123
|
+
!onEndReachedCalledDuringMomentum.current &&
|
|
124
|
+
paginated?.hasNextPage &&
|
|
125
|
+
paginated?.nextPage
|
|
126
|
+
) {
|
|
110
127
|
onEndReachedCalledDuringMomentum.current = true;
|
|
111
128
|
loadMoreData(paginated.nextPage);
|
|
112
129
|
}
|
|
@@ -147,7 +164,7 @@ const MovieCardTwo: React.FC<MovieCardTwoProps> = ({
|
|
|
147
164
|
appliedTheme,
|
|
148
165
|
borderRadius,
|
|
149
166
|
isLoading,
|
|
150
|
-
handleItemPress
|
|
167
|
+
handleItemPress,
|
|
151
168
|
]
|
|
152
169
|
);
|
|
153
170
|
const renderSkeletonItem: ListRenderItem<null> = useCallback(
|
|
@@ -215,7 +232,11 @@ const MovieCardTwo: React.FC<MovieCardTwoProps> = ({
|
|
|
215
232
|
title={title}
|
|
216
233
|
onPress={handlePressMore}
|
|
217
234
|
containerStyle={styles.navigateToMoreContainer}
|
|
218
|
-
titleStyle={[
|
|
235
|
+
titleStyle={[
|
|
236
|
+
styles.title,
|
|
237
|
+
{ color: appliedTheme.colors.textPrimary },
|
|
238
|
+
titleStyle,
|
|
239
|
+
]}
|
|
219
240
|
showAllProps={{ iconColor: appliedTheme.colors.textPrimary }}
|
|
220
241
|
/>
|
|
221
242
|
<FlatList
|
|
@@ -255,7 +276,7 @@ const MovieCardTwo: React.FC<MovieCardTwoProps> = ({
|
|
|
255
276
|
const getStyles = (theme: ITheme, width: number, radius: number) =>
|
|
256
277
|
StyleSheet.create({
|
|
257
278
|
root: {
|
|
258
|
-
marginVertical: verticalScale(6)
|
|
279
|
+
marginVertical: verticalScale(6),
|
|
259
280
|
},
|
|
260
281
|
item: {
|
|
261
282
|
width: width,
|
|
@@ -263,28 +284,28 @@ const getStyles = (theme: ITheme, width: number, radius: number) =>
|
|
|
263
284
|
marginRight: moderateScale(12),
|
|
264
285
|
borderRadius: radius,
|
|
265
286
|
overflow: 'hidden',
|
|
266
|
-
backgroundColor: theme.colors.background ?? '#2c2c2c'
|
|
287
|
+
backgroundColor: theme.colors.background ?? '#2c2c2c',
|
|
267
288
|
},
|
|
268
289
|
firstItem: {
|
|
269
|
-
marginLeft: moderateScale(10)
|
|
290
|
+
marginLeft: moderateScale(10),
|
|
270
291
|
},
|
|
271
292
|
image: {
|
|
272
293
|
width: '100%',
|
|
273
294
|
height: '100%',
|
|
274
295
|
borderRadius: radius,
|
|
275
|
-
backgroundColor: theme.colors.background ?? '#222'
|
|
296
|
+
backgroundColor: theme.colors.background ?? '#222',
|
|
276
297
|
},
|
|
277
298
|
navigateToMoreContainer: {
|
|
278
299
|
paddingHorizontal: moderateScale(10),
|
|
279
|
-
marginBottom: verticalScale(8)
|
|
300
|
+
marginBottom: verticalScale(8),
|
|
280
301
|
},
|
|
281
302
|
title: {
|
|
282
303
|
fontSize: RFValue(13),
|
|
283
|
-
fontWeight: '600'
|
|
304
|
+
fontWeight: '600',
|
|
284
305
|
},
|
|
285
306
|
listContent: {
|
|
286
|
-
paddingRight: moderateScale(15)
|
|
287
|
-
}
|
|
307
|
+
paddingRight: moderateScale(15),
|
|
308
|
+
},
|
|
288
309
|
});
|
|
289
310
|
|
|
290
311
|
export default memo(MovieCardTwo);
|