@zezosoft/zezo-ott-react-native-ui-kit 1.0.4 → 1.0.6
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/lib/module/assets/animations/Failed.json +2103 -0
- package/lib/module/assets/animations/Pending.json +522 -0
- package/lib/module/assets/animations/Successful.json +2289 -0
- package/lib/module/components/Account/Account.js +4 -4
- package/lib/module/components/Account/Account.js.map +1 -1
- package/lib/module/components/Alert/AlertDialog.js +208 -0
- package/lib/module/components/Alert/AlertDialog.js.map +1 -0
- package/lib/module/components/Alert/UAAlert.js +5 -1
- package/lib/module/components/Alert/UAAlert.js.map +1 -1
- package/lib/module/components/Alert/index.js +1 -0
- package/lib/module/components/Alert/index.js.map +1 -1
- package/lib/module/components/Auth/AuthProvider/AuthProvider.js +240 -0
- package/lib/module/components/Auth/AuthProvider/AuthProvider.js.map +1 -0
- package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js +4 -8
- package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js.map +1 -1
- package/lib/module/components/Auth/Login/LoginWithEmail.js +7 -7
- package/lib/module/components/Auth/Login/LoginWithEmail.js.map +1 -1
- package/lib/module/components/Auth/Login/LoginWithPhone.js +6 -6
- package/lib/module/components/Auth/Login/LoginWithPhone.js.map +1 -1
- package/lib/module/components/Auth/OTP/OTP.js +5 -5
- package/lib/module/components/Auth/OTP/OTP.js.map +1 -1
- package/lib/module/components/Auth/QrLogin/QrLogin.js +8 -9
- package/lib/module/components/Auth/QrLogin/QrLogin.js.map +1 -1
- package/lib/module/components/Auth/QrLogin/components/QrViewArea.js +2 -2
- package/lib/module/components/Auth/QrLogin/components/QrViewArea.js.map +1 -1
- package/lib/module/components/Auth/SignUp/SignUp.js +9 -9
- package/lib/module/components/Auth/SignUp/SignUp.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/SplashScreen.js +62 -73
- package/lib/module/components/Auth/SplashScreen/SplashScreen.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js +82 -41
- package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js.map +1 -1
- package/lib/module/components/Auth/index.js +2 -0
- package/lib/module/components/Auth/index.js.map +1 -1
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js +8 -4
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js.map +1 -1
- package/lib/module/components/BlogView/BlogView.js +8 -7
- package/lib/module/components/BlogView/BlogView.js.map +1 -1
- package/lib/module/components/Button/BackBtn.js +2 -2
- package/lib/module/components/Button/BackBtn.js.map +1 -1
- package/lib/module/components/Button/MenuBtn.js +2 -2
- 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/SecondaryBtn.js +91 -0
- package/lib/module/components/Button/SecondaryBtn.js.map +1 -0
- 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 +2 -0
- package/lib/module/components/Button/index.js.map +1 -1
- package/lib/module/components/Content/Card/Category/Category.js +3 -3
- package/lib/module/components/Content/Card/Category/Category.js.map +1 -1
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js +11 -6
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/Styles/One.js +9 -6
- package/lib/module/components/Content/Card/Sliders/Styles/One.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js +7 -3
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Five.js +5 -3
- package/lib/module/components/Content/Card/Styles/Five.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Four.js +5 -3
- package/lib/module/components/Content/Card/Styles/Four.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/One.js +11 -6
- package/lib/module/components/Content/Card/Styles/One.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/RotateInOut.js +5 -3
- package/lib/module/components/Content/Card/Styles/RotateInOut.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Six.js +9 -4
- package/lib/module/components/Content/Card/Styles/Six.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Three.js +5 -3
- package/lib/module/components/Content/Card/Styles/Three.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/TopTen.js +5 -3
- package/lib/module/components/Content/Card/Styles/TopTen.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Two.js +5 -3
- package/lib/module/components/Content/Card/Styles/Two.js.map +1 -1
- package/lib/module/components/Content/Card/components/CardPoster.js +13 -28
- package/lib/module/components/Content/Card/components/CardPoster.js.map +1 -1
- package/lib/module/components/Content/Card/components/NoContentFallback.js +2 -2
- package/lib/module/components/Content/Card/components/NoContentFallback.js.map +1 -1
- package/lib/module/components/Content/Card/components/RentOrBuyIcon.js +116 -0
- package/lib/module/components/Content/Card/components/RentOrBuyIcon.js.map +1 -0
- package/lib/module/components/Content/Card/components/ShowAllButton.js +3 -1
- package/lib/module/components/Content/Card/components/ShowAllButton.js.map +1 -1
- package/lib/module/components/Content/Card/components/ThumbnailCard.js +1 -2
- package/lib/module/components/Content/Card/components/ThumbnailCard.js.map +1 -1
- package/lib/module/components/ContentView/ContentView.js +6 -5
- package/lib/module/components/ContentView/ContentView.js.map +1 -1
- package/lib/module/components/ContentView/MoreContentList.js +4 -2
- package/lib/module/components/ContentView/MoreContentList.js.map +1 -1
- package/lib/module/components/ContentView/components/EpisodeCard.js +21 -16
- package/lib/module/components/ContentView/components/EpisodeCard.js.map +1 -1
- package/lib/module/components/ContentView/components/HeroBanner.js +29 -8
- package/lib/module/components/ContentView/components/HeroBanner.js.map +1 -1
- package/lib/module/components/ContentView/components/TrailerButton.js +5 -5
- package/lib/module/components/ContentView/components/TrailerButton.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 +2 -2
- package/lib/module/components/Headers/Two.js.map +1 -1
- package/lib/module/components/Input/InputOne.js +2 -2
- package/lib/module/components/Input/InputOne.js.map +1 -1
- package/lib/module/components/Input/InputTwo.js +2 -2
- package/lib/module/components/Input/InputTwo.js.map +1 -1
- package/lib/module/components/Input/PhoneNumberInput.js +5 -4
- package/lib/module/components/Input/PhoneNumberInput.js.map +1 -1
- package/lib/module/components/Logo/Logo.js +7 -7
- package/lib/module/components/Logo/Logo.js.map +1 -1
- package/lib/module/components/Reels/ReelsSeries/Model/Synopsis.js +0 -4
- package/lib/module/components/Reels/ReelsSeries/Model/Synopsis.js.map +1 -1
- package/lib/module/components/Search/One.js +4 -4
- package/lib/module/components/Search/One.js.map +1 -1
- package/lib/module/components/Search/components/SearchCard.js +2 -2
- package/lib/module/components/Search/components/SearchCard.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/Subscription/SubOne.js +11 -10
- package/lib/module/components/Subscription/SubOne.js.map +1 -1
- package/lib/module/components/TabBar/One.js +8 -5
- package/lib/module/components/TabBar/One.js.map +1 -1
- package/lib/module/components/TabBar/Three.js +2 -2
- package/lib/module/components/TabBar/Three.js.map +1 -1
- package/lib/module/components/TabBar/Two.js +8 -5
- package/lib/module/components/TabBar/Two.js.map +1 -1
- package/lib/module/components/Text/Text.js +3 -2
- package/lib/module/components/Text/Text.js.map +1 -1
- package/lib/module/components/User/DeviceSessions/DeviceSessions.js +4 -3
- package/lib/module/components/User/DeviceSessions/DeviceSessions.js.map +1 -1
- package/lib/module/components/User/ProfileUpdate/ProfileUpdate.js +17 -20
- package/lib/module/components/User/ProfileUpdate/ProfileUpdate.js.map +1 -1
- package/lib/module/components/User/WatchHistory/WatchHistory.js +4 -3
- package/lib/module/components/User/WatchHistory/WatchHistory.js.map +1 -1
- package/lib/module/components/User/WatchLater/WatchLater.js +6 -3
- package/lib/module/components/User/WatchLater/WatchLater.js.map +1 -1
- package/lib/module/components/User/components/UserAvatar.js +41 -11
- 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/common/AppStatusBar.js +41 -0
- package/lib/module/components/common/AppStatusBar.js.map +1 -0
- package/lib/module/components/layout/SafeAreaWrapper.js +2 -2
- package/lib/module/components/layout/SafeAreaWrapper.js.map +1 -1
- package/lib/module/hooks/useSplashCache.js +117 -0
- package/lib/module/hooks/useSplashCache.js.map +1 -0
- package/lib/module/store/RecentSearchesStore.js +0 -1
- package/lib/module/store/RecentSearchesStore.js.map +1 -1
- package/lib/module/store/splashStore.js +3 -7
- package/lib/module/store/splashStore.js.map +1 -1
- package/lib/module/store/themeStore.js +39 -0
- package/lib/module/store/themeStore.js.map +1 -0
- package/lib/module/theme/ThemeProvider.js +40 -69
- package/lib/module/theme/ThemeProvider.js.map +1 -1
- package/lib/module/theme/hook/index.js +5 -0
- package/lib/module/theme/hook/index.js.map +1 -0
- package/lib/module/theme/hook/useInternalTheme.js +46 -0
- package/lib/module/theme/hook/useInternalTheme.js.map +1 -0
- package/lib/module/theme/hook/useThemeStatusBar.js +27 -0
- package/lib/module/theme/hook/useThemeStatusBar.js.map +1 -0
- package/lib/module/theme/index.js +1 -2
- package/lib/module/theme/index.js.map +1 -1
- package/lib/module/theme/themes.js +6 -4
- package/lib/module/theme/themes.js.map +1 -1
- package/lib/typescript/src/components/Account/Account.d.ts +2 -2
- package/lib/typescript/src/components/Account/Account.d.ts.map +1 -1
- package/lib/typescript/src/components/Alert/AlertDialog.d.ts +18 -0
- package/lib/typescript/src/components/Alert/AlertDialog.d.ts.map +1 -0
- package/lib/typescript/src/components/Alert/UAAlert.d.ts +2 -2
- package/lib/typescript/src/components/Alert/UAAlert.d.ts.map +1 -1
- package/lib/typescript/src/components/Alert/index.d.ts +1 -0
- package/lib/typescript/src/components/Alert/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/AuthProvider/AuthProvider.d.ts +35 -0
- package/lib/typescript/src/components/Auth/AuthProvider/AuthProvider.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/ForgotPassword/ForgotPassword.d.ts +2 -2
- package/lib/typescript/src/components/Auth/ForgotPassword/ForgotPassword.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/Login/LoginWithEmail.d.ts +2 -2
- package/lib/typescript/src/components/Auth/Login/LoginWithEmail.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/Login/LoginWithPhone.d.ts +2 -2
- package/lib/typescript/src/components/Auth/Login/LoginWithPhone.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/OTP/OTP.d.ts +2 -2
- package/lib/typescript/src/components/Auth/OTP/OTP.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/QrLogin/QrLogin.d.ts +2 -2
- package/lib/typescript/src/components/Auth/QrLogin/QrLogin.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/QrLogin/components/QrViewArea.d.ts +2 -2
- package/lib/typescript/src/components/Auth/QrLogin/components/QrViewArea.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/SignUp/SignUp.d.ts +2 -2
- package/lib/typescript/src/components/Auth/SignUp/SignUp.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/SplashScreen/SplashScreen.d.ts +6 -5
- package/lib/typescript/src/components/Auth/SplashScreen/SplashScreen.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.d.ts +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 +7 -5
- package/lib/typescript/src/components/Auth/index.d.ts.map +1 -1
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayout.d.ts +2 -2
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayout.d.ts.map +1 -1
- package/lib/typescript/src/components/BlogView/BlogView.d.ts +2 -2
- package/lib/typescript/src/components/BlogView/BlogView.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/BackBtn.d.ts +2 -2
- package/lib/typescript/src/components/Button/BackBtn.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/MenuBtn.d.ts +2 -2
- package/lib/typescript/src/components/Button/MenuBtn.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/PrimaryBtn.d.ts +2 -2
- package/lib/typescript/src/components/Button/PrimaryBtn.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/SecondaryBtn.d.ts +21 -0
- package/lib/typescript/src/components/Button/SecondaryBtn.d.ts.map +1 -0
- package/lib/typescript/src/components/Button/index.d.ts +13 -2
- package/lib/typescript/src/components/Button/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Category/Category.d.ts +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Sliders/index.d.ts +2 -2
- package/lib/typescript/src/components/Content/Card/Styles/Five.d.ts +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/lib/typescript/src/components/Content/Card/Styles/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts +4 -2
- package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/NoContentFallback.d.ts +2 -2
- package/lib/typescript/src/components/Content/Card/components/NoContentFallback.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/RentOrBuyIcon.d.ts +14 -0
- package/lib/typescript/src/components/Content/Card/components/RentOrBuyIcon.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/components/ShowAllButton.d.ts +2 -0
- package/lib/typescript/src/components/Content/Card/components/ShowAllButton.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/index.d.ts +10 -10
- package/lib/typescript/src/components/Content/Content.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 +2 -2
- package/lib/typescript/src/components/Content/Sections.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/ContentView.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/MoreContentList.d.ts +2 -2
- package/lib/typescript/src/components/ContentView/MoreContentList.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts +3 -3
- package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/HeroBanner.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/components/HeroBanner.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/TrailerButton.d.ts +2 -2
- package/lib/typescript/src/components/ContentView/components/TrailerButton.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/AppHeader.d.ts +2 -2
- package/lib/typescript/src/components/Headers/AppHeader.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/One.d.ts +2 -2
- package/lib/typescript/src/components/Headers/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/Three.d.ts +2 -2
- package/lib/typescript/src/components/Headers/Three.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/Two.d.ts +2 -2
- package/lib/typescript/src/components/Headers/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/Input/InputOne.d.ts +2 -2
- package/lib/typescript/src/components/Input/InputOne.d.ts.map +1 -1
- package/lib/typescript/src/components/Input/InputTwo.d.ts +2 -2
- package/lib/typescript/src/components/Input/InputTwo.d.ts.map +1 -1
- package/lib/typescript/src/components/Input/PhoneNumberInput.d.ts +2 -2
- package/lib/typescript/src/components/Input/PhoneNumberInput.d.ts.map +1 -1
- package/lib/typescript/src/components/Logo/Logo.d.ts +2 -2
- package/lib/typescript/src/components/Logo/Logo.d.ts.map +1 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/Model/Synopsis.d.ts.map +1 -1
- package/lib/typescript/src/components/Search/One.d.ts +2 -2
- package/lib/typescript/src/components/Search/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Search/components/SearchCard.d.ts +2 -2
- package/lib/typescript/src/components/Search/components/SearchCard.d.ts.map +1 -1
- package/lib/typescript/src/components/Settings/AppSettings.d.ts +2 -2
- package/lib/typescript/src/components/Settings/AppSettings.d.ts.map +1 -1
- package/lib/typescript/src/components/Subscription/SubOne.d.ts +2 -2
- package/lib/typescript/src/components/Subscription/SubOne.d.ts.map +1 -1
- package/lib/typescript/src/components/Subscription/index.d.ts +1 -1
- 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 +2 -2
- package/lib/typescript/src/components/TabBar/Three.d.ts.map +1 -1
- package/lib/typescript/src/components/TabBar/Two.d.ts +2 -2
- package/lib/typescript/src/components/TabBar/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/Text/Text.d.ts +2 -0
- package/lib/typescript/src/components/Text/Text.d.ts.map +1 -1
- package/lib/typescript/src/components/User/DeviceSessions/DeviceSessions.d.ts +2 -2
- package/lib/typescript/src/components/User/DeviceSessions/DeviceSessions.d.ts.map +1 -1
- package/lib/typescript/src/components/User/ProfileUpdate/ProfileUpdate.d.ts +4 -4
- package/lib/typescript/src/components/User/ProfileUpdate/ProfileUpdate.d.ts.map +1 -1
- package/lib/typescript/src/components/User/WatchHistory/WatchHistory.d.ts +2 -2
- package/lib/typescript/src/components/User/WatchHistory/WatchHistory.d.ts.map +1 -1
- package/lib/typescript/src/components/User/WatchLater/WatchLater.d.ts +2 -2
- package/lib/typescript/src/components/User/WatchLater/WatchLater.d.ts.map +1 -1
- package/lib/typescript/src/components/User/components/UserAvatar.d.ts +6 -2
- package/lib/typescript/src/components/User/components/UserAvatar.d.ts.map +1 -1
- package/lib/typescript/src/components/User/components/UserSection.d.ts +2 -2
- package/lib/typescript/src/components/User/components/UserSection.d.ts.map +1 -1
- package/lib/typescript/src/components/common/AppStatusBar.d.ts +17 -0
- package/lib/typescript/src/components/common/AppStatusBar.d.ts.map +1 -0
- package/lib/typescript/src/components/layout/SafeAreaWrapper.d.ts +2 -2
- package/lib/typescript/src/components/layout/SafeAreaWrapper.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useSplashCache.d.ts +22 -0
- package/lib/typescript/src/hooks/useSplashCache.d.ts.map +1 -0
- package/lib/typescript/src/store/RecentSearchesStore.d.ts.map +1 -1
- package/lib/typescript/src/store/themeStore.d.ts +7 -0
- package/lib/typescript/src/store/themeStore.d.ts.map +1 -0
- package/lib/typescript/src/theme/ThemeProvider.d.ts +17 -10
- package/lib/typescript/src/theme/ThemeProvider.d.ts.map +1 -1
- package/lib/typescript/src/theme/hook/index.d.ts +3 -0
- package/lib/typescript/src/theme/hook/index.d.ts.map +1 -0
- package/lib/typescript/src/theme/hook/useInternalTheme.d.ts +3 -0
- package/lib/typescript/src/theme/hook/useInternalTheme.d.ts.map +1 -0
- package/lib/typescript/src/theme/hook/useThemeStatusBar.d.ts +10 -0
- package/lib/typescript/src/theme/hook/useThemeStatusBar.d.ts.map +1 -0
- package/lib/typescript/src/theme/index.d.ts +1 -6
- package/lib/typescript/src/theme/index.d.ts.map +1 -1
- package/lib/typescript/src/theme/themes.d.ts +14 -2
- package/lib/typescript/src/theme/themes.d.ts.map +1 -1
- package/lib/typescript/src/types/content/content-view.types.d.ts +4 -3
- package/lib/typescript/src/types/content/content-view.types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/assets/animations/Failed.json +2103 -0
- package/src/assets/animations/Pending.json +522 -0
- package/src/assets/animations/Successful.json +2289 -0
- package/src/components/Account/Account.tsx +6 -6
- package/src/components/Alert/AlertDialog.tsx +247 -0
- package/src/components/Alert/UAAlert.tsx +5 -3
- package/src/components/Alert/index.ts +1 -0
- package/src/components/Auth/AuthProvider/AuthProvider.tsx +294 -0
- package/src/components/Auth/ForgotPassword/ForgotPassword.tsx +6 -8
- package/src/components/Auth/Login/LoginWithEmail.tsx +9 -9
- package/src/components/Auth/Login/LoginWithPhone.tsx +8 -8
- package/src/components/Auth/OTP/OTP.tsx +7 -7
- package/src/components/Auth/QrLogin/QrLogin.tsx +8 -12
- package/src/components/Auth/QrLogin/components/QrViewArea.tsx +4 -4
- package/src/components/Auth/SignUp/SignUp.tsx +11 -11
- package/src/components/Auth/SplashScreen/SplashScreen.tsx +87 -91
- package/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.tsx +90 -40
- package/src/components/Auth/index.ts +2 -0
- package/src/components/BackgroundLayout/BackgroundLayout.tsx +8 -6
- package/src/components/BlogView/BlogView.tsx +13 -8
- package/src/components/Button/BackBtn.tsx +4 -4
- package/src/components/Button/MenuBtn.tsx +4 -4
- package/src/components/Button/PrimaryBtn.tsx +4 -4
- package/src/components/Button/SecondaryBtn.tsx +116 -0
- package/src/components/Button/TextButton.tsx +2 -2
- package/src/components/Button/index.ts +2 -0
- package/src/components/Content/Card/Category/Category.tsx +5 -5
- package/src/components/Content/Card/NowWatching/NowWatching.tsx +10 -5
- package/src/components/Content/Card/Sliders/Styles/One.tsx +10 -5
- package/src/components/Content/Card/Sliders/Styles/Two.tsx +9 -4
- package/src/components/Content/Card/Styles/Five.tsx +6 -5
- package/src/components/Content/Card/Styles/Four.tsx +6 -5
- package/src/components/Content/Card/Styles/One.tsx +12 -6
- package/src/components/Content/Card/Styles/RotateInOut.tsx +6 -5
- package/src/components/Content/Card/Styles/Six.tsx +10 -5
- package/src/components/Content/Card/Styles/Three.tsx +6 -5
- package/src/components/Content/Card/Styles/TopTen.tsx +6 -5
- package/src/components/Content/Card/Styles/Two.tsx +6 -5
- package/src/components/Content/Card/components/CardPoster.tsx +24 -51
- package/src/components/Content/Card/components/NoContentFallback.tsx +4 -4
- package/src/components/Content/Card/components/RentOrBuyIcon.tsx +109 -0
- package/src/components/Content/Card/components/ShowAllButton.tsx +6 -1
- package/src/components/Content/Card/components/ThumbnailCard.tsx +1 -2
- package/src/components/Content/Content.tsx +2 -2
- package/src/components/Content/Sections.tsx +2 -2
- package/src/components/ContentView/ContentView.tsx +6 -5
- package/src/components/ContentView/MoreContentList.tsx +6 -4
- package/src/components/ContentView/components/EpisodeCard.tsx +25 -17
- package/src/components/ContentView/components/HeroBanner.tsx +26 -3
- package/src/components/ContentView/components/TrailerButton.tsx +6 -5
- package/src/components/Headers/AppHeader.tsx +4 -4
- package/src/components/Headers/One.tsx +4 -4
- package/src/components/Headers/Three.tsx +4 -4
- package/src/components/Headers/Two.tsx +4 -4
- package/src/components/Input/InputOne.tsx +4 -4
- package/src/components/Input/InputTwo.tsx +4 -4
- package/src/components/Input/PhoneNumberInput.tsx +5 -5
- package/src/components/Logo/Logo.tsx +9 -11
- package/src/components/Reels/ReelsSeries/Model/Synopsis.tsx +1 -8
- package/src/components/Search/One.tsx +10 -9
- package/src/components/Search/components/SearchCard.tsx +4 -4
- package/src/components/Settings/AppSettings.tsx +6 -6
- package/src/components/Subscription/SubOne.tsx +19 -18
- package/src/components/TabBar/One.tsx +10 -6
- package/src/components/TabBar/Three.tsx +4 -4
- package/src/components/TabBar/Two.tsx +9 -6
- package/src/components/Text/Text.tsx +5 -2
- package/src/components/User/DeviceSessions/DeviceSessions.tsx +6 -5
- package/src/components/User/ProfileUpdate/ProfileUpdate.tsx +20 -26
- package/src/components/User/WatchHistory/WatchHistory.tsx +6 -5
- package/src/components/User/WatchLater/WatchLater.tsx +8 -6
- package/src/components/User/components/UserAvatar.tsx +46 -7
- package/src/components/User/components/UserSection.tsx +5 -5
- package/src/components/common/AppStatusBar.tsx +51 -0
- package/src/components/layout/SafeAreaWrapper.tsx +4 -4
- package/src/hooks/useSplashCache.ts +166 -0
- package/src/store/RecentSearchesStore.ts +0 -1
- package/src/store/splashStore.ts +5 -5
- package/src/store/themeStore.ts +53 -0
- package/src/theme/ThemeProvider.tsx +40 -102
- package/src/theme/hook/index.ts +2 -0
- package/src/theme/hook/useInternalTheme.ts +61 -0
- package/src/theme/hook/useThemeStatusBar.ts +33 -0
- package/src/theme/index.ts +1 -7
- package/src/theme/themes.ts +20 -6
- package/src/types/content/content-view.types.ts +4 -3
- package/lib/module/hooks/useInitSplashCacheSync.js +0 -116
- package/lib/module/hooks/useInitSplashCacheSync.js.map +0 -1
- package/lib/module/theme/hook/useTheme.js +0 -45
- package/lib/module/theme/hook/useTheme.js.map +0 -1
- package/lib/typescript/src/hooks/useInitSplashCacheSync.d.ts +0 -22
- package/lib/typescript/src/hooks/useInitSplashCacheSync.d.ts.map +0 -1
- package/lib/typescript/src/theme/hook/useTheme.d.ts +0 -9
- package/lib/typescript/src/theme/hook/useTheme.d.ts.map +0 -1
- package/src/hooks/useInitSplashCacheSync.ts +0 -174
- package/src/theme/hook/useTheme.ts +0 -45
|
@@ -19,9 +19,10 @@ import { Play } from 'lucide-react-native';
|
|
|
19
19
|
import { Text } from '../../../../Text';
|
|
20
20
|
import Display from '../../../../../utils/Display';
|
|
21
21
|
import type { IContentData, ISectionContent } from '../../../../../types';
|
|
22
|
-
import
|
|
23
|
-
import { useTheme } from '../../../../../theme/hook/useTheme';
|
|
22
|
+
import { useInternalTheme } from '../../../../../theme/hook/useInternalTheme';
|
|
24
23
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
24
|
+
import RentOrBuyIcon from '../../components/RentOrBuyIcon';
|
|
25
|
+
import type { ThemeOverride } from '../../../../../theme/themes';
|
|
25
26
|
|
|
26
27
|
// Constants
|
|
27
28
|
const DEFAULT_SKELETON_COUNT = 3;
|
|
@@ -37,7 +38,7 @@ type SliderOneProps = {
|
|
|
37
38
|
showPlayIcon?: boolean;
|
|
38
39
|
isLoading?: boolean;
|
|
39
40
|
skeletonCount?: number;
|
|
40
|
-
theme?:
|
|
41
|
+
theme?: ThemeOverride;
|
|
41
42
|
} & AccessibilityProps;
|
|
42
43
|
|
|
43
44
|
// ImageTouchable component
|
|
@@ -73,7 +74,7 @@ const SliderOne: React.FC<SliderOneProps> = ({
|
|
|
73
74
|
accessibilityLabel = 'Content carousel',
|
|
74
75
|
accessibilityHint = 'Swipe to view content',
|
|
75
76
|
}) => {
|
|
76
|
-
const { theme: appliedTheme } =
|
|
77
|
+
const { theme: appliedTheme } = useInternalTheme(theme);
|
|
77
78
|
const contentData = useMemo(() => data?.data ?? [], [data]);
|
|
78
79
|
const [activeIndex, setActiveIndex] = useState<number>(0);
|
|
79
80
|
|
|
@@ -89,6 +90,10 @@ const SliderOne: React.FC<SliderOneProps> = ({
|
|
|
89
90
|
({ item }: { item: IContentData }) => (
|
|
90
91
|
<View style={styles.sliderContainer}>
|
|
91
92
|
<ImageTouchable onImagePress={() => onPressItem?.(item)}>
|
|
93
|
+
<RentOrBuyIcon
|
|
94
|
+
theme={appliedTheme}
|
|
95
|
+
content_offering_type={item.content_offering_type}
|
|
96
|
+
/>
|
|
92
97
|
<FastImage
|
|
93
98
|
source={{
|
|
94
99
|
uri: item.thumbnail,
|
|
@@ -137,7 +142,7 @@ const SliderOne: React.FC<SliderOneProps> = ({
|
|
|
137
142
|
</ImageTouchable>
|
|
138
143
|
</View>
|
|
139
144
|
),
|
|
140
|
-
[
|
|
145
|
+
[appliedTheme, showPlayIcon, onPressItem]
|
|
141
146
|
);
|
|
142
147
|
|
|
143
148
|
// Render skeleton item
|
|
@@ -15,12 +15,13 @@ import FastImage from 'react-native-fast-image';
|
|
|
15
15
|
import LinearGradient from 'react-native-linear-gradient';
|
|
16
16
|
import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
17
17
|
import { Text } from '../../../../Text';
|
|
18
|
-
import {
|
|
18
|
+
import { useInternalTheme } from '../../../../../theme/hook/useInternalTheme';
|
|
19
19
|
import Display from '../../../../../utils/Display';
|
|
20
20
|
import { ThumbnailCard } from '../../components/ThumbnailCard';
|
|
21
21
|
import type { IContentData, ISectionContent } from '../../../../../types';
|
|
22
|
-
import type { AppTheme } from '../../../../../theme/themes';
|
|
23
22
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
23
|
+
import RentOrBuyIcon from '../../components/RentOrBuyIcon';
|
|
24
|
+
import type { ThemeOverride } from '../../../../../theme/themes';
|
|
24
25
|
|
|
25
26
|
const FULL_WIDTH = Display.fullWidth;
|
|
26
27
|
const FULL_HEIGHT = FULL_WIDTH * (9 / 16);
|
|
@@ -30,7 +31,7 @@ type SliderTwoProps = {
|
|
|
30
31
|
onPressItem?: (item: IContentData) => void;
|
|
31
32
|
isLoading?: boolean;
|
|
32
33
|
skeletonCount?: number;
|
|
33
|
-
theme?:
|
|
34
|
+
theme?: ThemeOverride;
|
|
34
35
|
} & AccessibilityProps;
|
|
35
36
|
|
|
36
37
|
const SliderTwo: React.FC<SliderTwoProps> = ({
|
|
@@ -42,7 +43,7 @@ const SliderTwo: React.FC<SliderTwoProps> = ({
|
|
|
42
43
|
accessibilityHint = 'Swipe to view content',
|
|
43
44
|
theme,
|
|
44
45
|
}) => {
|
|
45
|
-
const { theme: appliedTheme } =
|
|
46
|
+
const { theme: appliedTheme } = useInternalTheme(theme);
|
|
46
47
|
const contentData = useMemo(() => data?.data ?? [], [data]);
|
|
47
48
|
const [activeIndex, setActiveIndex] = useState(0);
|
|
48
49
|
const gradientColors = useMemo(
|
|
@@ -74,6 +75,10 @@ const SliderTwo: React.FC<SliderTwoProps> = ({
|
|
|
74
75
|
accessibilityRole="button"
|
|
75
76
|
accessibilityLabel={`View ${item.name}`}
|
|
76
77
|
>
|
|
78
|
+
<RentOrBuyIcon
|
|
79
|
+
theme={appliedTheme}
|
|
80
|
+
content_offering_type={item.content_offering_type}
|
|
81
|
+
/>
|
|
77
82
|
<ThumbnailCard
|
|
78
83
|
thumbnailUri={item.thumbnail}
|
|
79
84
|
theme={appliedTheme}
|
|
@@ -23,8 +23,8 @@ import FastImage from 'react-native-fast-image';
|
|
|
23
23
|
import CardPoster from '../components/CardPoster';
|
|
24
24
|
import NavigateToMore from '../components/NavigateToMore';
|
|
25
25
|
import { usePaginatedSection } from '../../../../hooks/usePaginatedSection';
|
|
26
|
-
import {
|
|
27
|
-
import type {
|
|
26
|
+
import { useInternalTheme } from '../../../../theme/hook/useInternalTheme';
|
|
27
|
+
import type { ITheme, ThemeOverride } from '../../../../theme/themes';
|
|
28
28
|
import type {
|
|
29
29
|
IContentData,
|
|
30
30
|
IGetSectionData,
|
|
@@ -38,7 +38,7 @@ const DEFAULT_BORDER_RADIUS = moderateScale(5);
|
|
|
38
38
|
const DEFAULT_SKELETON_COUNT = 3;
|
|
39
39
|
|
|
40
40
|
type MovieCardFiveProps = {
|
|
41
|
-
theme?:
|
|
41
|
+
theme?: ThemeOverride;
|
|
42
42
|
title: string;
|
|
43
43
|
section_id: string;
|
|
44
44
|
type: IGetSectionData['type'];
|
|
@@ -83,7 +83,7 @@ const MovieCardFive: React.FC<MovieCardFiveProps> = ({
|
|
|
83
83
|
accessibilityLabel,
|
|
84
84
|
accessibilityHint,
|
|
85
85
|
}) => {
|
|
86
|
-
const { theme: appliedTheme } =
|
|
86
|
+
const { theme: appliedTheme } = useInternalTheme(theme);
|
|
87
87
|
const flatListRef = useRef<FlatList<IContentData>>(null);
|
|
88
88
|
const onEndReachedCalledDuringMomentum = useRef(false);
|
|
89
89
|
const styles = useMemo(
|
|
@@ -134,6 +134,7 @@ const MovieCardFive: React.FC<MovieCardFiveProps> = ({
|
|
|
134
134
|
renderItemImage({ item, index })
|
|
135
135
|
) : (
|
|
136
136
|
<CardPoster
|
|
137
|
+
content_offering_type={item.content_offering_type}
|
|
137
138
|
posterUri={item.poster}
|
|
138
139
|
theme={appliedTheme}
|
|
139
140
|
borderRadius={borderRadius}
|
|
@@ -219,7 +220,7 @@ const MovieCardFive: React.FC<MovieCardFiveProps> = ({
|
|
|
219
220
|
titleStyle,
|
|
220
221
|
]}
|
|
221
222
|
containerStyle={styles.navigateToMoreContainer}
|
|
222
|
-
showAllProps={{ iconColor: appliedTheme.colors.textPrimary }}
|
|
223
|
+
showAllProps={{ iconColor: appliedTheme.colors.textPrimary, theme }}
|
|
223
224
|
/>
|
|
224
225
|
<FlatList
|
|
225
226
|
ref={flatListRef}
|
|
@@ -20,7 +20,7 @@ import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
|
20
20
|
import { moderateScale, verticalScale } from 'react-native-size-matters';
|
|
21
21
|
import { usePaginatedSection } from '../../../../hooks/usePaginatedSection';
|
|
22
22
|
import NavigateToMore from '../components/NavigateToMore';
|
|
23
|
-
import {
|
|
23
|
+
import { useInternalTheme } from '../../../../theme/hook/useInternalTheme';
|
|
24
24
|
import CardPoster from '../components/CardPoster';
|
|
25
25
|
import FastImage from 'react-native-fast-image';
|
|
26
26
|
import type {
|
|
@@ -29,7 +29,7 @@ import type {
|
|
|
29
29
|
ISectionContent,
|
|
30
30
|
MoreFetchData,
|
|
31
31
|
} from '../../../../types';
|
|
32
|
-
import type {
|
|
32
|
+
import type { ITheme, ThemeOverride } from '../../../../theme/themes';
|
|
33
33
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
34
34
|
|
|
35
35
|
// default values
|
|
@@ -62,7 +62,7 @@ type MovieCardFourProps = {
|
|
|
62
62
|
titleStyle?: StyleProp<TextStyle>;
|
|
63
63
|
itemStyle?: StyleProp<ViewStyle>;
|
|
64
64
|
isLoading?: boolean;
|
|
65
|
-
theme?:
|
|
65
|
+
theme?: ThemeOverride;
|
|
66
66
|
} & AccessibilityProps;
|
|
67
67
|
|
|
68
68
|
const MovieCardFour: React.FC<MovieCardFourProps> = ({
|
|
@@ -88,7 +88,7 @@ const MovieCardFour: React.FC<MovieCardFourProps> = ({
|
|
|
88
88
|
}) => {
|
|
89
89
|
const flatListRef = useRef<FlatList<IContentData>>(null);
|
|
90
90
|
const onEndReachedCalledDuringMomentum = useRef(false);
|
|
91
|
-
const { theme: appliedTheme } =
|
|
91
|
+
const { theme: appliedTheme } = useInternalTheme(theme);
|
|
92
92
|
|
|
93
93
|
const styles = useMemo(
|
|
94
94
|
() => getStyles(appliedTheme, itemWidth, itemHeight, borderRadius),
|
|
@@ -139,6 +139,7 @@ const MovieCardFour: React.FC<MovieCardFourProps> = ({
|
|
|
139
139
|
renderItemImage({ item, index })
|
|
140
140
|
) : (
|
|
141
141
|
<CardPoster
|
|
142
|
+
content_offering_type={item.content_offering_type}
|
|
142
143
|
posterUri={item.poster}
|
|
143
144
|
theme={appliedTheme}
|
|
144
145
|
borderRadius={borderRadius}
|
|
@@ -227,7 +228,7 @@ const MovieCardFour: React.FC<MovieCardFourProps> = ({
|
|
|
227
228
|
titleStyle,
|
|
228
229
|
]}
|
|
229
230
|
containerStyle={styles.navigateToMoreContainer}
|
|
230
|
-
showAllProps={{ iconColor: appliedTheme.colors.textPrimary }}
|
|
231
|
+
showAllProps={{ iconColor: appliedTheme.colors.textPrimary, theme }}
|
|
231
232
|
/>
|
|
232
233
|
<FlatList
|
|
233
234
|
ref={flatListRef}
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
19
19
|
import FastImage from 'react-native-fast-image';
|
|
20
20
|
import { moderateScale, verticalScale } from 'react-native-size-matters';
|
|
21
|
-
import {
|
|
21
|
+
import { useInternalTheme } from '../../../../theme/hook/useInternalTheme';
|
|
22
22
|
import CardPoster from '../components/CardPoster';
|
|
23
23
|
import NavigateToMore from '../components/NavigateToMore';
|
|
24
24
|
import { usePaginatedSection } from '../../../../hooks/usePaginatedSection';
|
|
@@ -28,7 +28,7 @@ import type {
|
|
|
28
28
|
ISectionContent,
|
|
29
29
|
MoreFetchData,
|
|
30
30
|
} from '../../../../types';
|
|
31
|
-
import type {
|
|
31
|
+
import type { ITheme, ThemeOverride } from '../../../../theme/themes';
|
|
32
32
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
33
33
|
|
|
34
34
|
// Constants
|
|
@@ -61,7 +61,7 @@ type MovieCardProps = {
|
|
|
61
61
|
titleStyle?: StyleProp<TextStyle>;
|
|
62
62
|
itemStyle?: StyleProp<ViewStyle>;
|
|
63
63
|
isLoading?: boolean;
|
|
64
|
-
theme?:
|
|
64
|
+
theme?: ThemeOverride;
|
|
65
65
|
} & AccessibilityProps;
|
|
66
66
|
|
|
67
67
|
const MovieCard: React.FC<MovieCardProps> = ({
|
|
@@ -87,7 +87,7 @@ const MovieCard: React.FC<MovieCardProps> = ({
|
|
|
87
87
|
}) => {
|
|
88
88
|
const flatListRef = useRef<FlatList<IContentData>>(null);
|
|
89
89
|
const onEndReachedCalledDuringMomentum = useRef(false);
|
|
90
|
-
const { theme: appliedTheme } =
|
|
90
|
+
const { theme: appliedTheme } = useInternalTheme(theme);
|
|
91
91
|
|
|
92
92
|
const styles = useMemo(
|
|
93
93
|
() => getStyles(appliedTheme, itemWidth, itemHeight, borderRadius),
|
|
@@ -130,6 +130,7 @@ const MovieCard: React.FC<MovieCardProps> = ({
|
|
|
130
130
|
({ item, index }: ListRenderItemInfo<IContentData>) => {
|
|
131
131
|
return (
|
|
132
132
|
<TouchableOpacity
|
|
133
|
+
key={item._id}
|
|
133
134
|
style={[styles.item, itemStyle]}
|
|
134
135
|
onPress={() => handleItemPress(item)}
|
|
135
136
|
activeOpacity={0.8}
|
|
@@ -138,6 +139,8 @@ const MovieCard: React.FC<MovieCardProps> = ({
|
|
|
138
139
|
renderItemImage({ item, index })
|
|
139
140
|
) : (
|
|
140
141
|
<CardPoster
|
|
142
|
+
key={item._id}
|
|
143
|
+
content_offering_type={item.content_offering_type}
|
|
141
144
|
posterUri={item.poster}
|
|
142
145
|
theme={appliedTheme}
|
|
143
146
|
borderRadius={borderRadius}
|
|
@@ -227,13 +230,13 @@ const MovieCard: React.FC<MovieCardProps> = ({
|
|
|
227
230
|
titleStyle,
|
|
228
231
|
]}
|
|
229
232
|
containerStyle={styles.navigateToMoreContainer}
|
|
230
|
-
showAllProps={{ iconColor: appliedTheme.colors.textPrimary }}
|
|
233
|
+
showAllProps={{ iconColor: appliedTheme.colors.textPrimary, theme }}
|
|
231
234
|
/>
|
|
232
235
|
<FlatList
|
|
233
236
|
ref={flatListRef}
|
|
234
237
|
data={data}
|
|
235
238
|
horizontal
|
|
236
|
-
keyExtractor={(item, index) =>
|
|
239
|
+
keyExtractor={(item, index) => (item._id ? item._id : `item-${index}`)}
|
|
237
240
|
renderItem={renderItem}
|
|
238
241
|
showsHorizontalScrollIndicator={false}
|
|
239
242
|
contentContainerStyle={styles.listContent}
|
|
@@ -273,6 +276,9 @@ const getStyles = (
|
|
|
273
276
|
borderRadius: radius,
|
|
274
277
|
backgroundColor: theme.colors.surfaceVariant,
|
|
275
278
|
},
|
|
279
|
+
imageWrapper: {
|
|
280
|
+
position: 'relative',
|
|
281
|
+
},
|
|
276
282
|
navigateToMoreContainer: {
|
|
277
283
|
paddingHorizontal: moderateScale(10),
|
|
278
284
|
marginBottom: verticalScale(8),
|
|
@@ -19,7 +19,7 @@ import Carousel from 'react-native-snap-carousel';
|
|
|
19
19
|
import { moderateScale, verticalScale } from 'react-native-size-matters';
|
|
20
20
|
import { debounce } from 'lodash';
|
|
21
21
|
|
|
22
|
-
import {
|
|
22
|
+
import { useInternalTheme } from '../../../../theme/hook/useInternalTheme';
|
|
23
23
|
import CardPoster from '../components/CardPoster';
|
|
24
24
|
import NavigateToMore from '../components/NavigateToMore';
|
|
25
25
|
|
|
@@ -30,7 +30,7 @@ import type {
|
|
|
30
30
|
ISectionContent,
|
|
31
31
|
MoreFetchData,
|
|
32
32
|
} from '../../../../types';
|
|
33
|
-
import type {
|
|
33
|
+
import type { ThemeOverride } from '../../../../theme/themes';
|
|
34
34
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
35
35
|
|
|
36
36
|
const { width, height } = Dimensions.get('window');
|
|
@@ -80,7 +80,7 @@ type Props = {
|
|
|
80
80
|
titleStyle?: StyleProp<TextStyle>;
|
|
81
81
|
itemStyle?: StyleProp<ViewStyle>;
|
|
82
82
|
isLoading?: boolean;
|
|
83
|
-
theme?:
|
|
83
|
+
theme?: ThemeOverride;
|
|
84
84
|
};
|
|
85
85
|
|
|
86
86
|
const RotateCarousel: React.FC<Props> = ({
|
|
@@ -102,7 +102,7 @@ const RotateCarousel: React.FC<Props> = ({
|
|
|
102
102
|
isLoading = false,
|
|
103
103
|
theme,
|
|
104
104
|
}) => {
|
|
105
|
-
const { theme: appliedTheme } =
|
|
105
|
+
const { theme: appliedTheme } = useInternalTheme(theme);
|
|
106
106
|
const carouselRef = useRef<any>(null);
|
|
107
107
|
|
|
108
108
|
// Memoized dynamic styles
|
|
@@ -229,6 +229,7 @@ const RotateCarousel: React.FC<Props> = ({
|
|
|
229
229
|
renderItemImage({ item, index })
|
|
230
230
|
) : (
|
|
231
231
|
<CardPoster
|
|
232
|
+
content_offering_type={item.content_offering_type}
|
|
232
233
|
posterUri={item.poster}
|
|
233
234
|
theme={appliedTheme}
|
|
234
235
|
borderRadius={borderRadius}
|
|
@@ -288,7 +289,7 @@ const RotateCarousel: React.FC<Props> = ({
|
|
|
288
289
|
titleStyle,
|
|
289
290
|
]}
|
|
290
291
|
containerStyle={staticStyles.navigateToMoreContainer}
|
|
291
|
-
showAllProps={{ iconColor: appliedTheme.colors.textPrimary }}
|
|
292
|
+
showAllProps={{ iconColor: appliedTheme.colors.textPrimary, theme }}
|
|
292
293
|
/>
|
|
293
294
|
)}
|
|
294
295
|
<Carousel
|
|
@@ -20,12 +20,12 @@ import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
|
20
20
|
import { moderateScale, verticalScale } from 'react-native-size-matters';
|
|
21
21
|
import FastImage from 'react-native-fast-image';
|
|
22
22
|
|
|
23
|
-
import {
|
|
23
|
+
import { useInternalTheme } from '../../../../theme/hook/useInternalTheme';
|
|
24
24
|
import NavigateToMore from '../components/NavigateToMore';
|
|
25
25
|
import { ThumbnailCard } from '../components/ThumbnailCard';
|
|
26
26
|
import { Text } from '../../../Text';
|
|
27
27
|
import { usePaginatedSection } from '../../../../hooks/usePaginatedSection';
|
|
28
|
-
import type {
|
|
28
|
+
import type { ThemeOverride } from '../../../../theme/themes';
|
|
29
29
|
import type {
|
|
30
30
|
IContentData,
|
|
31
31
|
IGetSectionData,
|
|
@@ -33,12 +33,13 @@ import type {
|
|
|
33
33
|
MoreFetchData,
|
|
34
34
|
} from '../../../../types';
|
|
35
35
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
36
|
+
import RentOrBuyIcon from '../components/RentOrBuyIcon';
|
|
36
37
|
const DEFAULT_ITEM_WIDTH = moderateScale(160);
|
|
37
38
|
const DEFAULT_BORDER_RADIUS = moderateScale(5);
|
|
38
39
|
const DEFAULT_SKELETON_COUNT = 3;
|
|
39
40
|
|
|
40
41
|
type MovieCardSixProps = {
|
|
41
|
-
theme?:
|
|
42
|
+
theme?: ThemeOverride;
|
|
42
43
|
title: string;
|
|
43
44
|
section_id: string;
|
|
44
45
|
type: IGetSectionData['type'];
|
|
@@ -80,7 +81,7 @@ const MovieCardSix: React.FC<MovieCardSixProps> = ({
|
|
|
80
81
|
}) => {
|
|
81
82
|
const flatListRef = useRef<FlatList<IContentData>>(null);
|
|
82
83
|
const onEndReachedCalledDuringMomentum = useRef(false);
|
|
83
|
-
const { theme: appliedTheme } =
|
|
84
|
+
const { theme: appliedTheme } = useInternalTheme(theme);
|
|
84
85
|
|
|
85
86
|
const paginated = usePaginatedSection(
|
|
86
87
|
section_id,
|
|
@@ -123,6 +124,10 @@ const MovieCardSix: React.FC<MovieCardSixProps> = ({
|
|
|
123
124
|
onPress={() => handleItemPress(item)}
|
|
124
125
|
activeOpacity={0.8}
|
|
125
126
|
>
|
|
127
|
+
<RentOrBuyIcon
|
|
128
|
+
theme={appliedTheme}
|
|
129
|
+
content_offering_type={item.content_offering_type}
|
|
130
|
+
/>
|
|
126
131
|
<ThumbnailCard
|
|
127
132
|
thumbnailUri={item.thumbnail}
|
|
128
133
|
theme={appliedTheme}
|
|
@@ -226,7 +231,7 @@ const MovieCardSix: React.FC<MovieCardSixProps> = ({
|
|
|
226
231
|
titleStyle,
|
|
227
232
|
]}
|
|
228
233
|
containerStyle={styles.navigateToMoreContainer}
|
|
229
|
-
showAllProps={{ iconColor: appliedTheme.colors.textPrimary }}
|
|
234
|
+
showAllProps={{ iconColor: appliedTheme.colors.textPrimary, theme }}
|
|
230
235
|
/>
|
|
231
236
|
<FlatList
|
|
232
237
|
ref={flatListRef}
|
|
@@ -21,7 +21,7 @@ import { debounce } from 'lodash';
|
|
|
21
21
|
|
|
22
22
|
import { usePaginatedSection } from '../../../../hooks/usePaginatedSection';
|
|
23
23
|
|
|
24
|
-
import {
|
|
24
|
+
import { useInternalTheme } from '../../../../theme/hook/useInternalTheme';
|
|
25
25
|
import CardPoster from '../components/CardPoster';
|
|
26
26
|
import NavigateToMore from '../components/NavigateToMore';
|
|
27
27
|
import type {
|
|
@@ -30,7 +30,7 @@ import type {
|
|
|
30
30
|
ISectionContent,
|
|
31
31
|
MoreFetchData,
|
|
32
32
|
} from '../../../../types';
|
|
33
|
-
import type {
|
|
33
|
+
import type { ThemeOverride } from '../../../../theme/themes';
|
|
34
34
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
35
35
|
|
|
36
36
|
const { width, height } = Dimensions.get('window');
|
|
@@ -80,7 +80,7 @@ type Props = {
|
|
|
80
80
|
titleStyle?: StyleProp<TextStyle>;
|
|
81
81
|
itemStyle?: StyleProp<ViewStyle>;
|
|
82
82
|
isLoading?: boolean;
|
|
83
|
-
theme?:
|
|
83
|
+
theme?: ThemeOverride;
|
|
84
84
|
};
|
|
85
85
|
|
|
86
86
|
const MovieCardThree: React.FC<Props> = ({
|
|
@@ -102,7 +102,7 @@ const MovieCardThree: React.FC<Props> = ({
|
|
|
102
102
|
isLoading = false,
|
|
103
103
|
theme,
|
|
104
104
|
}) => {
|
|
105
|
-
const { theme: appliedTheme } =
|
|
105
|
+
const { theme: appliedTheme } = useInternalTheme(theme);
|
|
106
106
|
|
|
107
107
|
const carouselRef = useRef<any>(null);
|
|
108
108
|
|
|
@@ -230,6 +230,7 @@ const MovieCardThree: React.FC<Props> = ({
|
|
|
230
230
|
renderItemImage({ item, index })
|
|
231
231
|
) : (
|
|
232
232
|
<CardPoster
|
|
233
|
+
content_offering_type={item.content_offering_type}
|
|
233
234
|
posterUri={item.poster}
|
|
234
235
|
theme={appliedTheme}
|
|
235
236
|
borderRadius={borderRadius}
|
|
@@ -287,7 +288,7 @@ const MovieCardThree: React.FC<Props> = ({
|
|
|
287
288
|
titleStyle,
|
|
288
289
|
]}
|
|
289
290
|
containerStyle={staticStyles.navigateToMoreContainer}
|
|
290
|
-
showAllProps={{ iconColor: appliedTheme.colors.textPrimary }}
|
|
291
|
+
showAllProps={{ iconColor: appliedTheme.colors.textPrimary, theme }}
|
|
291
292
|
/>
|
|
292
293
|
)}
|
|
293
294
|
<Carousel
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from 'react-native';
|
|
18
18
|
import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
19
19
|
import { moderateScale, scale, verticalScale } from 'react-native-size-matters';
|
|
20
|
-
import {
|
|
20
|
+
import { useInternalTheme } from '../../../../theme/hook/useInternalTheme';
|
|
21
21
|
import NavigateToMore from '../components/NavigateToMore';
|
|
22
22
|
import { usePaginatedSection } from '../../../../hooks/usePaginatedSection';
|
|
23
23
|
import type {
|
|
@@ -26,7 +26,7 @@ import type {
|
|
|
26
26
|
ISectionContent,
|
|
27
27
|
MoreFetchData,
|
|
28
28
|
} from '../../../../types';
|
|
29
|
-
import type {
|
|
29
|
+
import type { ITheme, ThemeOverride } from '../../../../theme/themes';
|
|
30
30
|
import FastImage from 'react-native-fast-image';
|
|
31
31
|
import LinearGradient from 'react-native-linear-gradient';
|
|
32
32
|
import { Text } from '../../../Text';
|
|
@@ -58,7 +58,7 @@ type TopTenCardProps = {
|
|
|
58
58
|
titleStyle?: StyleProp<TextStyle>;
|
|
59
59
|
itemStyle?: StyleProp<ViewStyle>;
|
|
60
60
|
isLoading?: boolean;
|
|
61
|
-
theme?:
|
|
61
|
+
theme?: ThemeOverride;
|
|
62
62
|
} & AccessibilityProps;
|
|
63
63
|
|
|
64
64
|
const TopTenCard: React.FC<TopTenCardProps> = ({
|
|
@@ -83,7 +83,7 @@ const TopTenCard: React.FC<TopTenCardProps> = ({
|
|
|
83
83
|
}) => {
|
|
84
84
|
const flatListRef = useRef<FlatList<IContentData>>(null);
|
|
85
85
|
const onEndReachedDuringMomentum = useRef(false);
|
|
86
|
-
const { theme: appliedTheme } =
|
|
86
|
+
const { theme: appliedTheme } = useInternalTheme(theme);
|
|
87
87
|
const styles = useMemo(
|
|
88
88
|
() => getStyles(appliedTheme, itemWidth, itemHeight, borderRadius),
|
|
89
89
|
[appliedTheme, itemWidth, itemHeight, borderRadius]
|
|
@@ -132,6 +132,7 @@ const TopTenCard: React.FC<TopTenCardProps> = ({
|
|
|
132
132
|
style={styles.imageOverlay}
|
|
133
133
|
>
|
|
134
134
|
<CardPoster
|
|
135
|
+
content_offering_type={item.content_offering_type}
|
|
135
136
|
posterUri={item.poster}
|
|
136
137
|
isLoading={isLoading}
|
|
137
138
|
borderRadius={borderRadius}
|
|
@@ -239,7 +240,7 @@ const TopTenCard: React.FC<TopTenCardProps> = ({
|
|
|
239
240
|
}
|
|
240
241
|
titleStyle={[styles.title, titleStyle]}
|
|
241
242
|
containerStyle={styles.navigateToMoreContainer}
|
|
242
|
-
showAllProps={{ iconColor: appliedTheme.colors.textPrimary }}
|
|
243
|
+
showAllProps={{ iconColor: appliedTheme.colors.textPrimary, theme }}
|
|
243
244
|
/>
|
|
244
245
|
<FlatList
|
|
245
246
|
ref={flatListRef}
|
|
@@ -27,8 +27,8 @@ import type {
|
|
|
27
27
|
ISectionContent,
|
|
28
28
|
MoreFetchData,
|
|
29
29
|
} from '../../../../types';
|
|
30
|
-
import type {
|
|
31
|
-
import {
|
|
30
|
+
import type { ITheme, ThemeOverride } from '../../../../theme/themes';
|
|
31
|
+
import { useInternalTheme } from '../../../../theme/hook/useInternalTheme';
|
|
32
32
|
import NavigateToMore from '../components/NavigateToMore';
|
|
33
33
|
import CardPoster from '../components/CardPoster';
|
|
34
34
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
@@ -61,7 +61,7 @@ type MovieCardTwoProps = {
|
|
|
61
61
|
titleStyle?: StyleProp<TextStyle>;
|
|
62
62
|
itemStyle?: StyleProp<ViewStyle>;
|
|
63
63
|
isLoading?: boolean;
|
|
64
|
-
theme?:
|
|
64
|
+
theme?: ThemeOverride;
|
|
65
65
|
} & AccessibilityProps;
|
|
66
66
|
|
|
67
67
|
const MovieCardTwo: React.FC<MovieCardTwoProps> = ({
|
|
@@ -87,7 +87,7 @@ const MovieCardTwo: React.FC<MovieCardTwoProps> = ({
|
|
|
87
87
|
const flatListRef = useRef<FlatList<IContentData>>(null);
|
|
88
88
|
|
|
89
89
|
const onEndReachedCalledDuringMomentum = useRef(false);
|
|
90
|
-
const { theme: appliedTheme } =
|
|
90
|
+
const { theme: appliedTheme } = useInternalTheme(theme);
|
|
91
91
|
|
|
92
92
|
const styles = useMemo(
|
|
93
93
|
() => getStyles(appliedTheme, itemWidth, borderRadius),
|
|
@@ -144,6 +144,7 @@ const MovieCardTwo: React.FC<MovieCardTwoProps> = ({
|
|
|
144
144
|
renderItemImage({ item, index })
|
|
145
145
|
) : (
|
|
146
146
|
<CardPoster
|
|
147
|
+
content_offering_type={item.content_offering_type}
|
|
147
148
|
posterUri={item.poster}
|
|
148
149
|
theme={appliedTheme}
|
|
149
150
|
borderRadius={borderRadius}
|
|
@@ -237,7 +238,7 @@ const MovieCardTwo: React.FC<MovieCardTwoProps> = ({
|
|
|
237
238
|
{ color: appliedTheme.colors.textPrimary },
|
|
238
239
|
titleStyle,
|
|
239
240
|
]}
|
|
240
|
-
showAllProps={{ iconColor: appliedTheme.colors.textPrimary }}
|
|
241
|
+
showAllProps={{ iconColor: appliedTheme.colors.textPrimary, theme }}
|
|
241
242
|
/>
|
|
242
243
|
<FlatList
|
|
243
244
|
ref={flatListRef}
|