@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
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
import React, { useState, useEffect, useMemo } from 'react';
|
|
2
2
|
import { View, StyleSheet, type StyleProp, type ViewStyle } from 'react-native';
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
ImageStyle,
|
|
6
|
-
ResizeMode,
|
|
3
|
+
import FastImage, {
|
|
4
|
+
type ResizeMode,
|
|
5
|
+
type ImageStyle,
|
|
7
6
|
} from 'react-native-fast-image';
|
|
8
|
-
import FastImage from 'react-native-fast-image';
|
|
9
7
|
import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
10
8
|
import { scale } from 'react-native-size-matters';
|
|
11
9
|
import { Text } from '../../../Text';
|
|
12
10
|
import { ImageOff } from 'lucide-react-native';
|
|
13
11
|
import type { ITheme } from '../../../../theme/themes';
|
|
14
|
-
import {
|
|
12
|
+
import type { IContentData } from '../../../../types';
|
|
13
|
+
import RentOrBuyIcon from './RentOrBuyIcon';
|
|
15
14
|
|
|
16
15
|
export type CardPosterProps = {
|
|
16
|
+
content_offering_type?: IContentData['content_offering_type'];
|
|
17
17
|
posterUri: string;
|
|
18
18
|
theme: ITheme;
|
|
19
19
|
isLoading?: boolean;
|
|
20
20
|
borderRadius?: number;
|
|
21
21
|
posterWrapperStyle?: StyleProp<ViewStyle>;
|
|
22
|
-
imageStyle?:
|
|
22
|
+
imageStyle?: ImageStyle;
|
|
23
23
|
resizeMode?: ResizeMode;
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
const CardPoster: React.FC<CardPosterProps> = ({
|
|
27
|
+
content_offering_type,
|
|
27
28
|
posterUri,
|
|
28
29
|
theme,
|
|
29
30
|
isLoading = false,
|
|
@@ -37,7 +38,6 @@ const CardPoster: React.FC<CardPosterProps> = ({
|
|
|
37
38
|
|
|
38
39
|
const hasValidPoster = useMemo(() => {
|
|
39
40
|
if (!posterUri || typeof posterUri !== 'string') return false;
|
|
40
|
-
|
|
41
41
|
const cleaned = posterUri.trim();
|
|
42
42
|
return (
|
|
43
43
|
(cleaned.startsWith('http://') || cleaned.startsWith('https://')) &&
|
|
@@ -75,21 +75,22 @@ const CardPoster: React.FC<CardPosterProps> = ({
|
|
|
75
75
|
<View
|
|
76
76
|
style={[
|
|
77
77
|
styles.posterWrapper,
|
|
78
|
-
|
|
79
|
-
{
|
|
80
|
-
borderRadius,
|
|
81
|
-
backgroundColor: theme.colors.background,
|
|
82
|
-
shadowColor: theme.colors.shadow,
|
|
83
|
-
},
|
|
78
|
+
{ borderRadius, backgroundColor: theme.colors.background },
|
|
84
79
|
posterWrapperStyle,
|
|
85
80
|
]}
|
|
86
81
|
>
|
|
82
|
+
{!showSkeleton && content_offering_type && (
|
|
83
|
+
<RentOrBuyIcon
|
|
84
|
+
theme={theme}
|
|
85
|
+
key={posterUri}
|
|
86
|
+
content_offering_type={content_offering_type}
|
|
87
|
+
/>
|
|
88
|
+
)}
|
|
87
89
|
{showSkeleton && (
|
|
88
90
|
<View style={[styles.skeletonWrapper, { borderRadius }]}>
|
|
89
91
|
<SkeletonPlaceholder
|
|
90
92
|
backgroundColor={theme.colors.skeletonBaseColor}
|
|
91
93
|
highlightColor={theme.colors.skeletonHighlightColor}
|
|
92
|
-
speed={1000}
|
|
93
94
|
>
|
|
94
95
|
<SkeletonPlaceholder.Item
|
|
95
96
|
style={[styles.skeleton, { borderRadius }]}
|
|
@@ -97,7 +98,6 @@ const CardPoster: React.FC<CardPosterProps> = ({
|
|
|
97
98
|
</SkeletonPlaceholder>
|
|
98
99
|
</View>
|
|
99
100
|
)}
|
|
100
|
-
|
|
101
101
|
{hasValidPoster && (
|
|
102
102
|
<FastImage
|
|
103
103
|
source={{
|
|
@@ -112,24 +112,16 @@ const CardPoster: React.FC<CardPosterProps> = ({
|
|
|
112
112
|
]}
|
|
113
113
|
resizeMode={resizeMode}
|
|
114
114
|
onLoadStart={() => {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
setImageError(false);
|
|
118
|
-
} else {
|
|
119
|
-
setImageLoading(false);
|
|
120
|
-
setImageError(true);
|
|
121
|
-
}
|
|
122
|
-
}}
|
|
123
|
-
onLoad={() => {
|
|
124
|
-
setImageLoading(false);
|
|
115
|
+
setImageLoading(true);
|
|
116
|
+
setImageError(false);
|
|
125
117
|
}}
|
|
118
|
+
onLoad={() => setImageLoading(false)}
|
|
126
119
|
onError={() => {
|
|
127
120
|
setImageLoading(false);
|
|
128
121
|
setImageError(true);
|
|
129
122
|
}}
|
|
130
123
|
/>
|
|
131
124
|
)}
|
|
132
|
-
|
|
133
125
|
{!showSkeleton && (!hasValidPoster || imageError) && (
|
|
134
126
|
<View
|
|
135
127
|
style={[
|
|
@@ -144,9 +136,7 @@ const CardPoster: React.FC<CardPosterProps> = ({
|
|
|
144
136
|
<View
|
|
145
137
|
style={[
|
|
146
138
|
styles.fallback,
|
|
147
|
-
{
|
|
148
|
-
backgroundColor: theme.colors.errorContainer,
|
|
149
|
-
},
|
|
139
|
+
{ backgroundColor: theme.colors.errorContainer },
|
|
150
140
|
]}
|
|
151
141
|
>
|
|
152
142
|
<ImageOff size={scale(18)} color={theme.colors.error} />
|
|
@@ -169,30 +159,16 @@ const styles = StyleSheet.create({
|
|
|
169
159
|
overflow: 'hidden',
|
|
170
160
|
position: 'relative',
|
|
171
161
|
},
|
|
172
|
-
defaultPosterWrapper: {
|
|
173
|
-
shadowOffset: { width: 0, height: 2 },
|
|
174
|
-
shadowOpacity: 0.1,
|
|
175
|
-
shadowRadius: 3,
|
|
176
|
-
elevation: 2,
|
|
177
|
-
},
|
|
178
162
|
skeletonWrapper: {
|
|
179
163
|
position: 'absolute',
|
|
180
164
|
top: 0,
|
|
181
165
|
left: 0,
|
|
182
166
|
width: '100%',
|
|
183
167
|
aspectRatio: 2 / 3,
|
|
184
|
-
overflow: 'hidden',
|
|
185
|
-
},
|
|
186
|
-
skeleton: {
|
|
187
|
-
width: '100%',
|
|
188
|
-
aspectRatio: 2 / 3,
|
|
189
|
-
},
|
|
190
|
-
visible: {
|
|
191
|
-
opacity: 1,
|
|
192
|
-
},
|
|
193
|
-
hidden: {
|
|
194
|
-
opacity: 0,
|
|
195
168
|
},
|
|
169
|
+
skeleton: { width: '100%', aspectRatio: 2 / 3 },
|
|
170
|
+
visible: { opacity: 1 },
|
|
171
|
+
hidden: { opacity: 0 },
|
|
196
172
|
fallbackWrapper: {
|
|
197
173
|
position: 'absolute',
|
|
198
174
|
top: 0,
|
|
@@ -212,8 +188,5 @@ const styles = StyleSheet.create({
|
|
|
212
188
|
alignItems: 'center',
|
|
213
189
|
justifyContent: 'center',
|
|
214
190
|
},
|
|
215
|
-
fallbackText: {
|
|
216
|
-
marginTop: scale(4),
|
|
217
|
-
fontSize: RFValue(9),
|
|
218
|
-
},
|
|
191
|
+
fallbackText: { marginTop: scale(4), fontSize: 10 },
|
|
219
192
|
});
|
|
@@ -17,15 +17,15 @@ import Animated, {
|
|
|
17
17
|
} from 'react-native-reanimated';
|
|
18
18
|
import { scale, verticalScale } from 'react-native-size-matters';
|
|
19
19
|
import { Text } from '../../../Text';
|
|
20
|
-
import {
|
|
21
|
-
import type {
|
|
20
|
+
import { useInternalTheme } from '../../../../theme/hook/useInternalTheme';
|
|
21
|
+
import type { ThemeOverride } from '../../../../theme/themes';
|
|
22
22
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
23
23
|
|
|
24
24
|
type NoContentFallbackProps = {
|
|
25
25
|
message?: string;
|
|
26
26
|
retryText?: string;
|
|
27
27
|
onRetry?: () => void;
|
|
28
|
-
theme?:
|
|
28
|
+
theme?: ThemeOverride;
|
|
29
29
|
emoji?: string;
|
|
30
30
|
style?: StyleProp<ViewStyle>;
|
|
31
31
|
};
|
|
@@ -38,7 +38,7 @@ const NoContentFallback = ({
|
|
|
38
38
|
emoji = '😔',
|
|
39
39
|
style,
|
|
40
40
|
}: NoContentFallbackProps) => {
|
|
41
|
-
const { theme: appliedTheme } =
|
|
41
|
+
const { theme: appliedTheme } = useInternalTheme(theme);
|
|
42
42
|
const scaleValue = useSharedValue(1);
|
|
43
43
|
|
|
44
44
|
const handlePressIn = useCallback(() => {
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View, StyleSheet, type StyleProp, type ViewStyle } from 'react-native';
|
|
3
|
+
import Svg, { Path } from 'react-native-svg';
|
|
4
|
+
import { scale } from 'react-native-size-matters';
|
|
5
|
+
import type { IContentData } from '../../../../types';
|
|
6
|
+
import type { ITheme } from '../../../../theme/themes';
|
|
7
|
+
|
|
8
|
+
interface RentOrBuyIconProps {
|
|
9
|
+
theme?: ITheme;
|
|
10
|
+
content_offering_type: IContentData['content_offering_type'];
|
|
11
|
+
position?: 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
|
|
12
|
+
style?: StyleProp<ViewStyle>;
|
|
13
|
+
size?: number;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const PremiumIcon: React.FC<{ fillColor: string }> = ({ fillColor }) => (
|
|
17
|
+
<Svg viewBox="0 0 1024 1024" width="100%" height="100%">
|
|
18
|
+
<Path
|
|
19
|
+
transform="translate(507,81)"
|
|
20
|
+
d="M0 0l19 1 15 3 15 6 11 6 13 10 11 11 9 13 8 15 5 17 2 14v15l-3 17-5 15-7 14-9 12-9 10-15 11-16 8-10 4h-3l13 49 12 36 9 24 14 30 9 17 13 21 10 13 11 13 7 8 11 9 10 8 12 7 16 7 21 5h28l16-4 15-5 22-12 12-9 10-8 10-9 9-9 2-3h2l2-4 8-9 13-18 7-10 9-15 11-19 13-27 5-13-5-2-13-12-7-8-7-11-6-15-2-11v-22l5-19 8-15 11-13 10-9 14-8 15-5 14-2h10l14 2 15 5 12 7 11 9 9 10 8 13 5 12 3 7v37l-2 2-4 11-7 13-9 11-7 7-16 10-16 6-10 2-4 16-10 53-11 57-22 115-14 73-11 56-7 37-3 4h-719l-3-9-14-72-23-120-17-88-23-120-1-2-14-3-12-5-10-6-11-9-11-13-9-17-4-12v-35h2l2-9 8-16 4-6 9-10 10-9 15-8 17-5 19-1 15 2 15 5 15 9 13 12 10 14 5 11 4 13 1 6v18l-3 16-7 16-6 9-11 13-13 9 4 10 17 35 10 17 12 19 13 17 8 10 14 15 11 11 14 11 13 9 21 11 19 6 10 2h27l25-6 17-9 9-5 13-11 8-7 5-5 9-10 13-17 13-22 9-16 13-28 8-21 12-35 11-41 3-13-19-8-12-7-10-8-13-13-10-15-7-16-4-15-1-8v-18l3-18 6-16 8-15 9-11 7-8 13-10 12-7 16-6 15-3z"
|
|
21
|
+
fill={fillColor}
|
|
22
|
+
/>
|
|
23
|
+
<Path
|
|
24
|
+
transform="translate(785,818)"
|
|
25
|
+
d="M0 0l64 1 15 4 13 8 9 8 9 13 5 13 2 15-2 16-5 12-6 10-9 10-11 7-12 5-10 2h-672l-15-4-12-7-10-9-9-13-5-13-2-11v-9l3-15 8-16 11-12 10-7 11-5 10-2z"
|
|
26
|
+
fill={fillColor}
|
|
27
|
+
/>
|
|
28
|
+
</Svg>
|
|
29
|
+
);
|
|
30
|
+
|
|
31
|
+
const BuyOrRentIcon: React.FC<{ fillColor: string }> = ({ fillColor }) => (
|
|
32
|
+
<Svg fill="none" viewBox="5 5 18 18" width="100%" height="100%">
|
|
33
|
+
<Path
|
|
34
|
+
fill={fillColor}
|
|
35
|
+
fillRule="evenodd"
|
|
36
|
+
clipRule="evenodd"
|
|
37
|
+
d="M9.834 9.835H11.2c0-.108-.002-.215-.003-.319-.014-1.424-.024-2.412 2.734-2.412 2.504 0 2.732.453 2.732 2.73l1.365.001c0-3.871-.91-4.099-4.097-4.099h-.21c-3.225-.002-3.709-.002-3.887 4.1zm-.153-.001H7.712a1.976 1.976 0 00-1.976 1.976v6.064a4.252 4.252 0 004.252 4.252h7.886a4.252 4.252 0 004.252-4.252V11.81a1.976 1.976 0 00-1.976-1.976H18.18a.153.153 0 00-.153.153v3.716a.683.683 0 01-1.365 0V9.987a.153.153 0 00-.153-.153h-5.158a.153.153 0 00-.152.153v3.716a.683.683 0 01-1.366 0V9.987a.153.153 0 00-.153-.153z"
|
|
38
|
+
/>
|
|
39
|
+
</Svg>
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
const RentOrBuyIcon: React.FC<RentOrBuyIconProps> = ({
|
|
43
|
+
theme,
|
|
44
|
+
content_offering_type,
|
|
45
|
+
style,
|
|
46
|
+
position = 'topLeft',
|
|
47
|
+
size = 22,
|
|
48
|
+
}) => {
|
|
49
|
+
if (!content_offering_type) return null;
|
|
50
|
+
|
|
51
|
+
const typeUpper = content_offering_type.toUpperCase();
|
|
52
|
+
if (!['PREMIUM', 'BUY_OR_RENT'].includes(typeUpper)) return null;
|
|
53
|
+
|
|
54
|
+
const fillColor = theme?.colors.premiumIcon || '#CA091E';
|
|
55
|
+
|
|
56
|
+
const positionStyle: ViewStyle = (() => {
|
|
57
|
+
switch (position) {
|
|
58
|
+
case 'topLeft':
|
|
59
|
+
return { top: 6, left: 6 };
|
|
60
|
+
case 'topRight':
|
|
61
|
+
return { top: 6, right: 6 };
|
|
62
|
+
case 'bottomLeft':
|
|
63
|
+
return { bottom: 6, left: 6 };
|
|
64
|
+
case 'bottomRight':
|
|
65
|
+
return { bottom: 6, right: 6 };
|
|
66
|
+
default:
|
|
67
|
+
return { top: 6, left: 6 };
|
|
68
|
+
}
|
|
69
|
+
})();
|
|
70
|
+
|
|
71
|
+
const IconComponent = typeUpper === 'PREMIUM' ? PremiumIcon : BuyOrRentIcon;
|
|
72
|
+
|
|
73
|
+
return (
|
|
74
|
+
<View
|
|
75
|
+
style={[
|
|
76
|
+
styles.container,
|
|
77
|
+
{ width: size, height: size },
|
|
78
|
+
style || positionStyle,
|
|
79
|
+
]}
|
|
80
|
+
>
|
|
81
|
+
<View style={styles.iconWrapper}>
|
|
82
|
+
<IconComponent fillColor={fillColor} />
|
|
83
|
+
</View>
|
|
84
|
+
</View>
|
|
85
|
+
);
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export default RentOrBuyIcon;
|
|
89
|
+
|
|
90
|
+
const styles = StyleSheet.create({
|
|
91
|
+
container: {
|
|
92
|
+
position: 'absolute',
|
|
93
|
+
zIndex: 10,
|
|
94
|
+
},
|
|
95
|
+
iconWrapper: {
|
|
96
|
+
flex: 1,
|
|
97
|
+
justifyContent: 'center',
|
|
98
|
+
alignItems: 'center',
|
|
99
|
+
backgroundColor: 'white',
|
|
100
|
+
padding: scale(3),
|
|
101
|
+
borderRadius: 40,
|
|
102
|
+
shadowColor: '#000',
|
|
103
|
+
shadowOffset: { width: 0, height: 1 },
|
|
104
|
+
shadowOpacity: 0.2,
|
|
105
|
+
shadowRadius: 2,
|
|
106
|
+
overflow: 'hidden',
|
|
107
|
+
elevation: 3,
|
|
108
|
+
},
|
|
109
|
+
});
|
|
@@ -17,6 +17,7 @@ import { moderateScale, scale } from 'react-native-size-matters';
|
|
|
17
17
|
import { Text } from '../../../Text';
|
|
18
18
|
import { ChevronRight } from 'lucide-react-native';
|
|
19
19
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
20
|
+
import type { ThemeOverride } from '../../../../theme/themes';
|
|
20
21
|
export type ShowAllButtonProps = {
|
|
21
22
|
text?: string;
|
|
22
23
|
onPress?: (event: GestureResponderEvent) => void;
|
|
@@ -27,6 +28,7 @@ export type ShowAllButtonProps = {
|
|
|
27
28
|
containerStyle?: StyleProp<ViewStyle>;
|
|
28
29
|
iconPosition?: 'left' | 'right';
|
|
29
30
|
IconComponent?: React.ReactNode;
|
|
31
|
+
theme?: ThemeOverride;
|
|
30
32
|
};
|
|
31
33
|
|
|
32
34
|
const ShowAllButton: React.FC<ShowAllButtonProps> = ({
|
|
@@ -39,6 +41,7 @@ const ShowAllButton: React.FC<ShowAllButtonProps> = ({
|
|
|
39
41
|
IconComponent,
|
|
40
42
|
textStyle,
|
|
41
43
|
containerStyle,
|
|
44
|
+
theme: overrideTheme,
|
|
42
45
|
}): React.ReactElement => {
|
|
43
46
|
const icon = IconComponent ?? (
|
|
44
47
|
<View style={styles.iconWrapper}>
|
|
@@ -54,7 +57,9 @@ const ShowAllButton: React.FC<ShowAllButtonProps> = ({
|
|
|
54
57
|
>
|
|
55
58
|
<View style={[styles.innerRow, { columnGap: moderateScale(gap) }]}>
|
|
56
59
|
{iconPosition === 'left' && icon}
|
|
57
|
-
<Text style={[styles.text, textStyle]}
|
|
60
|
+
<Text style={[styles.text, textStyle]} theme={overrideTheme}>
|
|
61
|
+
{text}
|
|
62
|
+
</Text>
|
|
58
63
|
{iconPosition === 'right' && icon}
|
|
59
64
|
</View>
|
|
60
65
|
</TouchableOpacity>
|
|
@@ -31,7 +31,7 @@ export const ThumbnailCard: React.FC<ThumbnailCardProps> = ({
|
|
|
31
31
|
thumbnailUri = '',
|
|
32
32
|
theme,
|
|
33
33
|
isLoading = false,
|
|
34
|
-
borderRadius =
|
|
34
|
+
borderRadius = 0,
|
|
35
35
|
wrapperStyle,
|
|
36
36
|
imageStyle,
|
|
37
37
|
resizeMode = FastImage.resizeMode.cover,
|
|
@@ -149,7 +149,6 @@ const styles = StyleSheet.create({
|
|
|
149
149
|
left: 0,
|
|
150
150
|
width: '100%',
|
|
151
151
|
aspectRatio: 16 / 9,
|
|
152
|
-
borderWidth: scale(1),
|
|
153
152
|
alignItems: 'center',
|
|
154
153
|
justifyContent: 'center',
|
|
155
154
|
},
|
|
@@ -24,7 +24,7 @@ import { dummySections } from '../../constants/dummySections';
|
|
|
24
24
|
import CategoryCard, { type ICategory } from './Card/Category/Category';
|
|
25
25
|
import NoContentFallback from './Card/components/NoContentFallback';
|
|
26
26
|
import type { IHistoryItem } from './Card/NowWatching/NowWatching';
|
|
27
|
-
import type {
|
|
27
|
+
import type { ThemeOverride } from '../../theme/themes';
|
|
28
28
|
|
|
29
29
|
export interface ICustomComponentsForContent {
|
|
30
30
|
type: string;
|
|
@@ -56,7 +56,7 @@ export interface IContentProps {
|
|
|
56
56
|
| StyleProp<ViewStyle>
|
|
57
57
|
| AnimatedStyle<StyleProp<ViewStyle>>;
|
|
58
58
|
onEndReached?: () => void;
|
|
59
|
-
theme?:
|
|
59
|
+
theme?: ThemeOverride;
|
|
60
60
|
autoSwitchTheme?: boolean;
|
|
61
61
|
events?: {
|
|
62
62
|
onPressItem?: (item: IContentData) => void;
|
|
@@ -8,7 +8,7 @@ import Cards from './Card';
|
|
|
8
8
|
import type { IContentData, IGetSectionData, MoreFetchData } from '../../types';
|
|
9
9
|
import type { IHistoryItem } from './Card/NowWatching/NowWatching';
|
|
10
10
|
import type { ICategory } from './Card/Category/Category';
|
|
11
|
-
import type {
|
|
11
|
+
import type { ThemeOverride } from '../../theme/themes';
|
|
12
12
|
import type { IContentLoading } from './Content';
|
|
13
13
|
|
|
14
14
|
export interface ICustomComponentsForSections {
|
|
@@ -25,7 +25,7 @@ export interface IProps {
|
|
|
25
25
|
};
|
|
26
26
|
name: string;
|
|
27
27
|
customComponents?: ICustomComponentsForSections[];
|
|
28
|
-
theme?:
|
|
28
|
+
theme?: ThemeOverride;
|
|
29
29
|
index: number;
|
|
30
30
|
section_id: string;
|
|
31
31
|
events?: {
|
|
@@ -8,7 +8,7 @@ import { HeroBanner } from './components/HeroBanner';
|
|
|
8
8
|
import { GenreTags } from './components/GenreTags';
|
|
9
9
|
import { AboutSection } from './components/AboutSection';
|
|
10
10
|
import { Title } from './components/Title';
|
|
11
|
-
import {
|
|
11
|
+
import { useInternalTheme } from '../../theme/hook/useInternalTheme';
|
|
12
12
|
import { CastCard } from './components/CastCard';
|
|
13
13
|
import Cards from '../Content/Card';
|
|
14
14
|
import { scale } from 'react-native-size-matters';
|
|
@@ -31,7 +31,7 @@ export const ContentView = ({
|
|
|
31
31
|
history,
|
|
32
32
|
episodeCardMode,
|
|
33
33
|
}: ComponentProps) => {
|
|
34
|
-
const { theme: appliedTheme } =
|
|
34
|
+
const { theme: appliedTheme } = useInternalTheme(theme);
|
|
35
35
|
const seekTime = history?.currentTime || 0;
|
|
36
36
|
const isComplete = history?.completed || false;
|
|
37
37
|
const currentEpisode = history?.current_episode;
|
|
@@ -44,8 +44,9 @@ export const ContentView = ({
|
|
|
44
44
|
<HeroBanner
|
|
45
45
|
backgroundImage={content?.thumbnail}
|
|
46
46
|
title={content?.name}
|
|
47
|
-
theme={
|
|
47
|
+
theme={theme}
|
|
48
48
|
isLoading={isLoading}
|
|
49
|
+
content_offering_type={content?.content_offering_type}
|
|
49
50
|
onPressPlay={({ is_trailer }) =>
|
|
50
51
|
events?.onPlay?.({
|
|
51
52
|
id: content._id,
|
|
@@ -104,7 +105,7 @@ export const ContentView = ({
|
|
|
104
105
|
});
|
|
105
106
|
}
|
|
106
107
|
}}
|
|
107
|
-
theme={
|
|
108
|
+
theme={theme}
|
|
108
109
|
mode={episodeCardMode ?? 'horizontal'}
|
|
109
110
|
/>
|
|
110
111
|
)}
|
|
@@ -116,7 +117,7 @@ export const ContentView = ({
|
|
|
116
117
|
type={recommendedContent.type}
|
|
117
118
|
data={recommendedContent.content}
|
|
118
119
|
isLoading={isLoading}
|
|
119
|
-
theme={
|
|
120
|
+
theme={theme}
|
|
120
121
|
onPressItem={(item) => events?.onPressRecommendedItem?.({ item })}
|
|
121
122
|
onPressMore={events?.onPressRecommendedMore}
|
|
122
123
|
moreFetchData={events?.moreFetchDataRecommended}
|
|
@@ -19,8 +19,8 @@ import { View } from '../View';
|
|
|
19
19
|
import AppHeader, { type AppHeaderProps } from '../Headers/AppHeader';
|
|
20
20
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
21
21
|
import CardPoster from '../Content/Card/components/CardPoster';
|
|
22
|
-
import type {
|
|
23
|
-
import {
|
|
22
|
+
import type { ThemeOverride } from '../../theme/themes';
|
|
23
|
+
import { useInternalTheme } from '../../theme/hook';
|
|
24
24
|
import Animated from 'react-native-reanimated';
|
|
25
25
|
import { Search } from 'lucide-react-native';
|
|
26
26
|
|
|
@@ -31,7 +31,7 @@ interface Props {
|
|
|
31
31
|
isLoading?: boolean;
|
|
32
32
|
error?: boolean | string | Error;
|
|
33
33
|
errorText?: string;
|
|
34
|
-
theme?:
|
|
34
|
+
theme?: ThemeOverride;
|
|
35
35
|
moreDataIsLoading?: boolean;
|
|
36
36
|
onEndReached?: () => void;
|
|
37
37
|
skeletonCount?: number;
|
|
@@ -61,7 +61,7 @@ const MoreContentList: React.FC<Props> = ({
|
|
|
61
61
|
refreshing = false,
|
|
62
62
|
onRefresh,
|
|
63
63
|
}) => {
|
|
64
|
-
const { theme: appliedTheme } =
|
|
64
|
+
const { theme: appliedTheme } = useInternalTheme(theme);
|
|
65
65
|
const onEndReachedCalledDuringMomentum = useRef(false);
|
|
66
66
|
const isEmpty = !isLoading && (!contentList || contentList.length === 0);
|
|
67
67
|
|
|
@@ -83,6 +83,7 @@ const MoreContentList: React.FC<Props> = ({
|
|
|
83
83
|
activeOpacity={0.7}
|
|
84
84
|
>
|
|
85
85
|
<CardPoster
|
|
86
|
+
content_offering_type={item.content_offering_type}
|
|
86
87
|
posterUri={item.poster}
|
|
87
88
|
borderRadius={5}
|
|
88
89
|
isLoading={false}
|
|
@@ -207,6 +208,7 @@ const MoreContentList: React.FC<Props> = ({
|
|
|
207
208
|
<Search size={scale(23)} color={appliedTheme.colors.onBackground} />
|
|
208
209
|
)
|
|
209
210
|
}
|
|
211
|
+
theme={theme}
|
|
210
212
|
{...headerProps}
|
|
211
213
|
/>
|
|
212
214
|
{renderContent()}
|
|
@@ -11,9 +11,11 @@ import { scale, verticalScale, moderateScale } from 'react-native-size-matters';
|
|
|
11
11
|
import { Text } from '../../Text';
|
|
12
12
|
import Display from '../../../utils/Display';
|
|
13
13
|
import type { IContentEpisodes, IContentSeasons } from '../../../types';
|
|
14
|
-
import type { ITheme } from '../../../theme/themes';
|
|
14
|
+
import type { ITheme, ThemeOverride } from '../../../theme/themes';
|
|
15
15
|
import { ThumbnailCard } from '../../Content/Card/components/ThumbnailCard';
|
|
16
16
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
17
|
+
import RentOrBuyIcon from '../../Content/Card/components/RentOrBuyIcon';
|
|
18
|
+
import { useInternalTheme } from '../../../theme/hook';
|
|
17
19
|
|
|
18
20
|
// Constants
|
|
19
21
|
const SKELETON_COUNT = 3;
|
|
@@ -42,6 +44,7 @@ interface EpisodeCardItemProps {
|
|
|
42
44
|
season_id: string;
|
|
43
45
|
season_number: number;
|
|
44
46
|
episode: IContentEpisodes;
|
|
47
|
+
isDarkMode: boolean;
|
|
45
48
|
onPress: (e: IOnPressParams) => void;
|
|
46
49
|
theme: ITheme;
|
|
47
50
|
style?: React.ComponentProps<typeof TouchableOpacity>['style'];
|
|
@@ -52,7 +55,7 @@ interface EpisodeCardItemProps {
|
|
|
52
55
|
interface EpisodeCardProps {
|
|
53
56
|
seasons: IContentSeasons[];
|
|
54
57
|
onPress: (e: IOnPressParams) => void;
|
|
55
|
-
theme
|
|
58
|
+
theme?: ThemeOverride;
|
|
56
59
|
isLoading?: boolean;
|
|
57
60
|
mode?: 'horizontal' | 'vertical';
|
|
58
61
|
}
|
|
@@ -73,6 +76,7 @@ const EpisodeCardItem = memo(
|
|
|
73
76
|
season_number,
|
|
74
77
|
episode,
|
|
75
78
|
onPress,
|
|
79
|
+
isDarkMode,
|
|
76
80
|
theme,
|
|
77
81
|
style,
|
|
78
82
|
thumbnailHeight,
|
|
@@ -108,15 +112,21 @@ const EpisodeCardItem = memo(
|
|
|
108
112
|
flexDirection: isVerticalMode
|
|
109
113
|
? ('row' as const)
|
|
110
114
|
: ('column' as const),
|
|
111
|
-
borderWidth: isVerticalMode ? 0 :
|
|
115
|
+
borderWidth: isVerticalMode ? 0 : isDarkMode ? 0 : BORDER_WIDTH,
|
|
112
116
|
borderColor: isVerticalMode
|
|
113
117
|
? 'transparent'
|
|
114
|
-
:
|
|
118
|
+
: isDarkMode
|
|
115
119
|
? 'transparent'
|
|
116
120
|
: theme.colors.border,
|
|
117
121
|
},
|
|
118
122
|
],
|
|
119
|
-
[
|
|
123
|
+
[
|
|
124
|
+
style,
|
|
125
|
+
isVerticalMode,
|
|
126
|
+
theme.colors.surfaceVariant,
|
|
127
|
+
theme.colors.border,
|
|
128
|
+
isDarkMode,
|
|
129
|
+
]
|
|
120
130
|
);
|
|
121
131
|
|
|
122
132
|
const windowWidth = Display.fullWidth;
|
|
@@ -200,19 +210,14 @@ const EpisodeCardItem = memo(
|
|
|
200
210
|
>
|
|
201
211
|
<View style={[styles.cardContent, isVerticalMode && styles.cardGrid]}>
|
|
202
212
|
<View style={thumbnailStyle}>
|
|
203
|
-
<
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
priority: FastImage.priority.high,
|
|
207
|
-
}}
|
|
208
|
-
style={styles.thumbnail}
|
|
209
|
-
resizeMode={FastImage.resizeMode.cover}
|
|
210
|
-
fallback
|
|
213
|
+
<RentOrBuyIcon
|
|
214
|
+
theme={theme}
|
|
215
|
+
content_offering_type={episode.content_offering_type}
|
|
211
216
|
/>
|
|
212
217
|
<ThumbnailCard
|
|
213
218
|
thumbnailUri={episode.thumbnail}
|
|
214
219
|
theme={theme}
|
|
215
|
-
wrapperStyle={styles.thumbnail}
|
|
220
|
+
// wrapperStyle={styles.thumbnail}
|
|
216
221
|
resizeMode={FastImage.resizeMode.cover}
|
|
217
222
|
/>
|
|
218
223
|
</View>
|
|
@@ -259,10 +264,11 @@ const EpisodeCardItem = memo(
|
|
|
259
264
|
export const EpisodeCard = ({
|
|
260
265
|
seasons,
|
|
261
266
|
onPress,
|
|
262
|
-
theme,
|
|
267
|
+
theme: themeOverride,
|
|
263
268
|
isLoading = false,
|
|
264
269
|
mode = 'horizontal',
|
|
265
270
|
}: EpisodeCardProps) => {
|
|
271
|
+
const { isDarkMode, theme } = useInternalTheme(themeOverride);
|
|
266
272
|
const [selectedSeasonIndex, setSelectedSeasonIndex] = useState(0);
|
|
267
273
|
const windowWidth = Display.fullWidth;
|
|
268
274
|
|
|
@@ -329,13 +335,14 @@ export const EpisodeCard = ({
|
|
|
329
335
|
theme={theme}
|
|
330
336
|
season_id={selectedSeason._id}
|
|
331
337
|
episode={item}
|
|
338
|
+
isDarkMode={isDarkMode}
|
|
332
339
|
season_number={selectedSeason.season_number}
|
|
333
340
|
onPress={onPress}
|
|
334
341
|
style={{ width: cardWidth }}
|
|
335
342
|
thumbnailHeight={thumbnailHeight}
|
|
336
343
|
/>
|
|
337
344
|
) : null,
|
|
338
|
-
[theme,
|
|
345
|
+
[selectedSeason, theme, isDarkMode, onPress, cardWidth, thumbnailHeight]
|
|
339
346
|
);
|
|
340
347
|
|
|
341
348
|
const renderLoadingItem = useCallback(
|
|
@@ -343,6 +350,7 @@ export const EpisodeCard = ({
|
|
|
343
350
|
<EpisodeCardItem
|
|
344
351
|
theme={theme}
|
|
345
352
|
season_id=""
|
|
353
|
+
isDarkMode={isDarkMode}
|
|
346
354
|
season_number={0}
|
|
347
355
|
episode={{
|
|
348
356
|
_id: '',
|
|
@@ -366,7 +374,7 @@ export const EpisodeCard = ({
|
|
|
366
374
|
isLoading
|
|
367
375
|
/>
|
|
368
376
|
),
|
|
369
|
-
[theme, onPress, cardWidth, thumbnailHeight]
|
|
377
|
+
[theme, isDarkMode, onPress, cardWidth, thumbnailHeight]
|
|
370
378
|
);
|
|
371
379
|
|
|
372
380
|
if (isLoading) {
|