@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,10 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @author Naresh Dhamu
|
|
3
|
-
* @lastModified
|
|
3
|
+
* @lastModified Thu 17 Oct 2025
|
|
4
4
|
*/
|
|
5
|
-
import React, {
|
|
6
|
-
import
|
|
5
|
+
import React, { useMemo, useCallback, useState } from 'react';
|
|
6
|
+
import { View, StyleSheet, Animated } from 'react-native';
|
|
7
|
+
import Video from 'react-native-video';
|
|
7
8
|
import Display from '../../../../../utils/Display';
|
|
9
|
+
import { useInternalTheme } from '../../../../../theme/hook';
|
|
8
10
|
|
|
9
11
|
interface IProps {
|
|
10
12
|
width: number;
|
|
@@ -29,9 +31,11 @@ const SplashVideo: React.FC<IProps> = ({
|
|
|
29
31
|
onLoaded,
|
|
30
32
|
onError,
|
|
31
33
|
}) => {
|
|
32
|
-
const
|
|
34
|
+
const { theme: applyTheme } = useInternalTheme();
|
|
35
|
+
const [loaded, setLoaded] = useState(false);
|
|
36
|
+
const fadeAnim = useMemo(() => new Animated.Value(0), []);
|
|
33
37
|
|
|
34
|
-
//
|
|
38
|
+
// Video style
|
|
35
39
|
const videoStyle = useMemo(
|
|
36
40
|
() => ({
|
|
37
41
|
width: fullscreen ? Display.fullWidth : width,
|
|
@@ -40,21 +44,31 @@ const SplashVideo: React.FC<IProps> = ({
|
|
|
40
44
|
[fullscreen, width, height]
|
|
41
45
|
);
|
|
42
46
|
|
|
43
|
-
//
|
|
47
|
+
// Event handlers
|
|
44
48
|
const handleLoadStart = useCallback(() => {
|
|
49
|
+
setLoaded(false);
|
|
50
|
+
fadeAnim.setValue(0); // Reset fade animation
|
|
45
51
|
onLoadStart?.();
|
|
46
|
-
}, [onLoadStart]);
|
|
52
|
+
}, [onLoadStart, fadeAnim]);
|
|
47
53
|
|
|
48
54
|
const handleLoad = useCallback(
|
|
49
55
|
(data: any) => {
|
|
56
|
+
setLoaded(true);
|
|
57
|
+
|
|
58
|
+
// Fade-in animation
|
|
59
|
+
Animated.timing(fadeAnim, {
|
|
60
|
+
toValue: 1,
|
|
61
|
+
duration: 400, // 0.4s smooth fade
|
|
62
|
+
useNativeDriver: true,
|
|
63
|
+
}).start();
|
|
64
|
+
|
|
50
65
|
onLoaded?.(data);
|
|
51
66
|
},
|
|
52
|
-
[onLoaded]
|
|
67
|
+
[onLoaded, fadeAnim]
|
|
53
68
|
);
|
|
54
69
|
|
|
55
70
|
const handleError = useCallback(
|
|
56
71
|
(e: any) => {
|
|
57
|
-
// More robust error handling
|
|
58
72
|
const error =
|
|
59
73
|
e?.error?.message ||
|
|
60
74
|
e?.message ||
|
|
@@ -62,52 +76,88 @@ const SplashVideo: React.FC<IProps> = ({
|
|
|
62
76
|
e ||
|
|
63
77
|
'Unknown video error';
|
|
64
78
|
console.error('Video playback error:', error);
|
|
79
|
+
setLoaded(false);
|
|
65
80
|
onError?.(error);
|
|
66
81
|
},
|
|
67
82
|
[onError]
|
|
68
83
|
);
|
|
84
|
+
|
|
69
85
|
const resolveUri = (src?: string): string => {
|
|
70
86
|
if (!src) return '';
|
|
71
87
|
if (
|
|
72
88
|
src.startsWith('http') ||
|
|
73
89
|
src.startsWith('https') ||
|
|
74
90
|
src.startsWith('file://')
|
|
75
|
-
)
|
|
91
|
+
) {
|
|
76
92
|
return src;
|
|
93
|
+
}
|
|
77
94
|
return `file://${src}`;
|
|
78
95
|
};
|
|
96
|
+
|
|
79
97
|
return (
|
|
80
|
-
<
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
98
|
+
<View
|
|
99
|
+
style={[
|
|
100
|
+
videoStyle,
|
|
101
|
+
styles.wrapper,
|
|
102
|
+
{ backgroundColor: applyTheme.colors.background },
|
|
103
|
+
]}
|
|
104
|
+
>
|
|
105
|
+
{/* Black background layer */}
|
|
106
|
+
{!loaded && (
|
|
107
|
+
<View
|
|
108
|
+
style={[
|
|
109
|
+
videoStyle,
|
|
110
|
+
styles.blackLayer,
|
|
111
|
+
{ backgroundColor: applyTheme.colors.background },
|
|
112
|
+
]}
|
|
113
|
+
/>
|
|
114
|
+
)}
|
|
115
|
+
|
|
116
|
+
{/* Animated video */}
|
|
117
|
+
<Animated.View style={[videoStyle, { opacity: fadeAnim }]}>
|
|
118
|
+
<Video
|
|
119
|
+
source={{ uri: resolveUri(source) }}
|
|
120
|
+
style={videoStyle}
|
|
121
|
+
resizeMode={resizeMode}
|
|
122
|
+
paused={false}
|
|
123
|
+
onLoadStart={handleLoadStart}
|
|
124
|
+
onLoad={handleLoad}
|
|
125
|
+
onError={handleError}
|
|
126
|
+
onEnd={onEnd}
|
|
127
|
+
controlsStyles={{
|
|
128
|
+
hideForward: true,
|
|
129
|
+
hideDuration: true,
|
|
130
|
+
hideFullscreen: true,
|
|
131
|
+
hidePlayPause: true,
|
|
132
|
+
hideNavigationBarOnFullScreenMode: true,
|
|
133
|
+
hideNotificationBarOnFullScreenMode: true,
|
|
134
|
+
hideNext: true,
|
|
135
|
+
hidePosition: true,
|
|
136
|
+
hidePrevious: true,
|
|
137
|
+
hideRewind: true,
|
|
138
|
+
hideSeekBar: true,
|
|
139
|
+
hideSettingButton: true,
|
|
140
|
+
}}
|
|
141
|
+
ignoreSilentSwitch="obey"
|
|
142
|
+
playInBackground={false}
|
|
143
|
+
playWhenInactive={false}
|
|
144
|
+
allowsExternalPlayback={false}
|
|
145
|
+
automaticallyWaitsToMinimizeStalling
|
|
146
|
+
/>
|
|
147
|
+
</Animated.View>
|
|
148
|
+
</View>
|
|
110
149
|
);
|
|
111
150
|
};
|
|
112
151
|
|
|
152
|
+
const styles = StyleSheet.create({
|
|
153
|
+
wrapper: {
|
|
154
|
+
overflow: 'hidden',
|
|
155
|
+
},
|
|
156
|
+
blackLayer: {
|
|
157
|
+
...StyleSheet.absoluteFillObject,
|
|
158
|
+
|
|
159
|
+
zIndex: 1,
|
|
160
|
+
},
|
|
161
|
+
});
|
|
162
|
+
|
|
113
163
|
export default React.memo(SplashVideo);
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* @lastModified Fri 13 Jun 2025 at 11:11 AM
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
import AuthProvider from './AuthProvider/AuthProvider';
|
|
6
7
|
import ForgotPassword from './ForgotPassword/ForgotPassword';
|
|
7
8
|
import LoginWithEmail from './Login/LoginWithEmail';
|
|
8
9
|
import LoginWithPhone from './Login/LoginWithPhone';
|
|
@@ -12,6 +13,7 @@ import SignUp from './SignUp/SignUp';
|
|
|
12
13
|
import { SplashScreen } from './SplashScreen/SplashScreen';
|
|
13
14
|
|
|
14
15
|
const Auth = {
|
|
16
|
+
AuthProvider,
|
|
15
17
|
LoginWithEmail,
|
|
16
18
|
LoginWithPhone,
|
|
17
19
|
SignUp,
|
|
@@ -7,8 +7,9 @@ import {
|
|
|
7
7
|
type ImageStyle,
|
|
8
8
|
} from 'react-native';
|
|
9
9
|
import LinearGradient from 'react-native-linear-gradient';
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
10
|
+
import type { ThemeOverride } from '../../theme/themes';
|
|
11
|
+
import { useSplashCache } from '../../hooks/useSplashCache';
|
|
12
|
+
import { useInternalTheme } from '../../theme/hook';
|
|
12
13
|
|
|
13
14
|
interface BackgroundLayoutProps {
|
|
14
15
|
children: React.ReactNode;
|
|
@@ -17,7 +18,7 @@ interface BackgroundLayoutProps {
|
|
|
17
18
|
gradientSplitBackground?: number;
|
|
18
19
|
resizeMode?: 'cover' | 'contain' | 'stretch' | 'repeat' | 'center';
|
|
19
20
|
innerContainerStyle?: ViewStyle;
|
|
20
|
-
theme
|
|
21
|
+
theme?: ThemeOverride;
|
|
21
22
|
onImageError?: (error: Error) => void;
|
|
22
23
|
}
|
|
23
24
|
|
|
@@ -30,12 +31,13 @@ export const BackgroundLayout: React.FC<BackgroundLayoutProps> = (props) => {
|
|
|
30
31
|
resizeMode = 'cover',
|
|
31
32
|
innerContainerStyle,
|
|
32
33
|
onImageError,
|
|
33
|
-
theme,
|
|
34
|
+
theme: themeOverride,
|
|
34
35
|
} = props;
|
|
35
36
|
|
|
37
|
+
const { theme } = useInternalTheme(themeOverride);
|
|
36
38
|
const {
|
|
37
|
-
data: { localPathBackground },
|
|
38
|
-
} =
|
|
39
|
+
data: { backgroundPath: localPathBackground },
|
|
40
|
+
} = useSplashCache({
|
|
39
41
|
backgroundUrl: backgroundImageUri || undefined,
|
|
40
42
|
});
|
|
41
43
|
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
} from 'react-native';
|
|
10
10
|
import Markdown from 'react-native-markdown-display';
|
|
11
11
|
import { Text } from '../Text';
|
|
12
|
-
import {
|
|
12
|
+
import { useInternalTheme } from '../../theme/hook/useInternalTheme';
|
|
13
13
|
import AppHeader from '../Headers/AppHeader';
|
|
14
14
|
import { scale, moderateScale } from 'react-native-size-matters';
|
|
15
|
-
import type {
|
|
15
|
+
import type { ITheme, ThemeOverride } from '../../theme/themes';
|
|
16
16
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
17
17
|
|
|
18
18
|
type BlogViewProps = {
|
|
@@ -20,7 +20,7 @@ type BlogViewProps = {
|
|
|
20
20
|
containerStyle?: ViewStyle;
|
|
21
21
|
scrollable?: boolean;
|
|
22
22
|
emptyText?: string;
|
|
23
|
-
theme?:
|
|
23
|
+
theme?: ThemeOverride;
|
|
24
24
|
|
|
25
25
|
// Header customization
|
|
26
26
|
headerTitle?: string;
|
|
@@ -51,7 +51,7 @@ export const BlogView: React.FC<BlogViewProps> = ({
|
|
|
51
51
|
renderEmpty,
|
|
52
52
|
isLoading = false,
|
|
53
53
|
}) => {
|
|
54
|
-
const { theme: appliedTheme } =
|
|
54
|
+
const { theme: appliedTheme, isDarkMode } = useInternalTheme(theme);
|
|
55
55
|
|
|
56
56
|
const renderFinalHeader = () => {
|
|
57
57
|
if (renderHeader) return renderHeader();
|
|
@@ -62,7 +62,7 @@ export const BlogView: React.FC<BlogViewProps> = ({
|
|
|
62
62
|
onRightPress={onRightPress}
|
|
63
63
|
title={headerTitle}
|
|
64
64
|
titleAlign="left"
|
|
65
|
-
theme={
|
|
65
|
+
theme={theme}
|
|
66
66
|
titleStyle={{
|
|
67
67
|
...styles.headerTitle,
|
|
68
68
|
color: appliedTheme.colors.onBackground,
|
|
@@ -83,7 +83,9 @@ export const BlogView: React.FC<BlogViewProps> = ({
|
|
|
83
83
|
if (renderContent) return renderContent();
|
|
84
84
|
if (content) {
|
|
85
85
|
return (
|
|
86
|
-
<Markdown style={getMarkdownStyles(appliedTheme)}>
|
|
86
|
+
<Markdown style={getMarkdownStyles(appliedTheme, isDarkMode)}>
|
|
87
|
+
{content}
|
|
88
|
+
</Markdown>
|
|
87
89
|
);
|
|
88
90
|
}
|
|
89
91
|
|
|
@@ -130,7 +132,10 @@ export const BlogView: React.FC<BlogViewProps> = ({
|
|
|
130
132
|
);
|
|
131
133
|
};
|
|
132
134
|
|
|
133
|
-
const getMarkdownStyles = (
|
|
135
|
+
const getMarkdownStyles = (
|
|
136
|
+
theme: ITheme,
|
|
137
|
+
isDarkMode: boolean
|
|
138
|
+
): { [key: string]: TextStyle } => {
|
|
134
139
|
const baseColor = theme.colors.textPrimary;
|
|
135
140
|
|
|
136
141
|
return {
|
|
@@ -161,7 +166,7 @@ const getMarkdownStyles = (theme: ITheme): { [key: string]: TextStyle } => {
|
|
|
161
166
|
ordered_list: { color: baseColor },
|
|
162
167
|
link: { color: theme.colors.primary },
|
|
163
168
|
blockquote: {
|
|
164
|
-
backgroundColor:
|
|
169
|
+
backgroundColor: isDarkMode
|
|
165
170
|
? theme.colors.surfaceVariant
|
|
166
171
|
: theme.colors.surface,
|
|
167
172
|
color: theme.colors.onSurface,
|
|
@@ -13,17 +13,17 @@ import {
|
|
|
13
13
|
} from 'react-native';
|
|
14
14
|
import { ArrowLeft } from 'lucide-react-native';
|
|
15
15
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
16
|
-
import {
|
|
16
|
+
import { useInternalTheme } from '../../theme/hook/useInternalTheme';
|
|
17
17
|
import { scale, verticalScale } from 'react-native-size-matters';
|
|
18
18
|
import { BlurView } from '@react-native-community/blur';
|
|
19
|
-
import type {
|
|
19
|
+
import type { ThemeOverride } from '../../theme/themes';
|
|
20
20
|
|
|
21
21
|
type BackBtnProps = {
|
|
22
22
|
size?: number;
|
|
23
23
|
color?: string;
|
|
24
24
|
onPress?: () => void;
|
|
25
25
|
style?: StyleProp<ViewStyle>;
|
|
26
|
-
theme?:
|
|
26
|
+
theme?: ThemeOverride;
|
|
27
27
|
enableBlur?: boolean;
|
|
28
28
|
};
|
|
29
29
|
|
|
@@ -36,7 +36,7 @@ const BackBtn: React.FC<BackBtnProps> = ({
|
|
|
36
36
|
enableBlur = false,
|
|
37
37
|
}) => {
|
|
38
38
|
const insets = useSafeAreaInsets();
|
|
39
|
-
const { theme: appliedTheme } =
|
|
39
|
+
const { theme: appliedTheme } = useInternalTheme(theme);
|
|
40
40
|
|
|
41
41
|
const handlePress = () => {
|
|
42
42
|
if (onPress) {
|
|
@@ -21,15 +21,15 @@ import {
|
|
|
21
21
|
import { Ellipsis } from 'lucide-react-native';
|
|
22
22
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
23
23
|
import { BlurView } from '@react-native-community/blur';
|
|
24
|
-
import {
|
|
24
|
+
import { useInternalTheme } from '../../theme/hook/useInternalTheme';
|
|
25
25
|
import { scale, verticalScale } from 'react-native-size-matters';
|
|
26
|
-
import type {
|
|
26
|
+
import type { ThemeOverride } from '../../theme/themes';
|
|
27
27
|
import type { MenuAction } from '../../types/content/content-view.types';
|
|
28
28
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
29
29
|
|
|
30
30
|
type MenuBtnProps = {
|
|
31
31
|
actions: MenuAction[];
|
|
32
|
-
theme?:
|
|
32
|
+
theme?: ThemeOverride;
|
|
33
33
|
style?: StyleProp<ViewStyle>;
|
|
34
34
|
enableBlur?: boolean;
|
|
35
35
|
};
|
|
@@ -41,7 +41,7 @@ const MenuBtn: React.FC<MenuBtnProps> = ({
|
|
|
41
41
|
enableBlur = false,
|
|
42
42
|
}) => {
|
|
43
43
|
const insets = useSafeAreaInsets();
|
|
44
|
-
const { theme: appliedTheme } =
|
|
44
|
+
const { theme: appliedTheme } = useInternalTheme(theme);
|
|
45
45
|
const [visible, setVisible] = useState(false);
|
|
46
46
|
const [menuPosition, setMenuPosition] = useState<{
|
|
47
47
|
top: number;
|
|
@@ -14,9 +14,9 @@ import {
|
|
|
14
14
|
type TextStyle,
|
|
15
15
|
} from 'react-native';
|
|
16
16
|
import { scale, verticalScale } from 'react-native-size-matters';
|
|
17
|
-
import {
|
|
17
|
+
import { useInternalTheme } from '../../theme/hook/useInternalTheme';
|
|
18
18
|
import { Text } from '../Text';
|
|
19
|
-
import type {
|
|
19
|
+
import type { ThemeOverride } from '../../theme/themes';
|
|
20
20
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
21
21
|
|
|
22
22
|
type PrimaryBtnProps = {
|
|
@@ -27,7 +27,7 @@ type PrimaryBtnProps = {
|
|
|
27
27
|
disabled?: boolean;
|
|
28
28
|
containerStyle?: ViewStyle;
|
|
29
29
|
titleStyle?: TextStyle;
|
|
30
|
-
theme?:
|
|
30
|
+
theme?: ThemeOverride;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
export const PrimaryBtn: React.FC<PrimaryBtnProps> = ({
|
|
@@ -40,7 +40,7 @@ export const PrimaryBtn: React.FC<PrimaryBtnProps> = ({
|
|
|
40
40
|
titleStyle,
|
|
41
41
|
theme,
|
|
42
42
|
}) => {
|
|
43
|
-
const { theme: appliedTheme } =
|
|
43
|
+
const { theme: appliedTheme } = useInternalTheme(theme);
|
|
44
44
|
const backgroundColor =
|
|
45
45
|
disabled || loading
|
|
46
46
|
? appliedTheme.colors?.buttonDisabled
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author Ashok Desai
|
|
3
|
+
* @lastModified Mon 06 Oct 2025 at 03:45 PM
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import {
|
|
8
|
+
TouchableOpacity,
|
|
9
|
+
ActivityIndicator,
|
|
10
|
+
StyleSheet,
|
|
11
|
+
View,
|
|
12
|
+
type GestureResponderEvent,
|
|
13
|
+
type ViewStyle,
|
|
14
|
+
type TextStyle,
|
|
15
|
+
} from 'react-native';
|
|
16
|
+
import { scale, verticalScale } from 'react-native-size-matters';
|
|
17
|
+
import { useInternalTheme } from '../../theme/hook/useInternalTheme';
|
|
18
|
+
import { Text } from '../Text';
|
|
19
|
+
import type { ThemeOverride } from '../../theme/themes';
|
|
20
|
+
import { RFValue } from 'react-native-responsive-fontsize';
|
|
21
|
+
|
|
22
|
+
type SecondaryBtnProps = {
|
|
23
|
+
title: string;
|
|
24
|
+
onPress?: (event: GestureResponderEvent) => void;
|
|
25
|
+
loading?: boolean;
|
|
26
|
+
loadingText?: string;
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
containerStyle?: ViewStyle;
|
|
29
|
+
titleStyle?: TextStyle;
|
|
30
|
+
theme?: ThemeOverride;
|
|
31
|
+
leftIcon?: React.ReactNode;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export const SecondaryBtn: React.FC<SecondaryBtnProps> = ({
|
|
35
|
+
title,
|
|
36
|
+
onPress,
|
|
37
|
+
loading = false,
|
|
38
|
+
loadingText = 'Loading...',
|
|
39
|
+
disabled = false,
|
|
40
|
+
containerStyle,
|
|
41
|
+
titleStyle,
|
|
42
|
+
leftIcon,
|
|
43
|
+
theme,
|
|
44
|
+
}) => {
|
|
45
|
+
const { theme: appliedTheme } = useInternalTheme(theme);
|
|
46
|
+
|
|
47
|
+
const backgroundColor =
|
|
48
|
+
disabled || loading
|
|
49
|
+
? appliedTheme.colors?.buttonDisabled
|
|
50
|
+
: appliedTheme.colors?.button;
|
|
51
|
+
|
|
52
|
+
return (
|
|
53
|
+
<TouchableOpacity
|
|
54
|
+
onPress={onPress}
|
|
55
|
+
disabled={disabled || loading}
|
|
56
|
+
activeOpacity={0.8}
|
|
57
|
+
style={[styles.button, { backgroundColor }, containerStyle]}
|
|
58
|
+
accessibilityRole="button"
|
|
59
|
+
accessibilityState={{ disabled: disabled || loading }}
|
|
60
|
+
>
|
|
61
|
+
<View style={styles.row}>
|
|
62
|
+
{leftIcon && <View style={{ marginRight: scale(8) }}>{leftIcon}</View>}
|
|
63
|
+
|
|
64
|
+
{loading ? (
|
|
65
|
+
<>
|
|
66
|
+
<ActivityIndicator
|
|
67
|
+
color={appliedTheme.colors.buttonText}
|
|
68
|
+
style={{ marginRight: scale(6) }}
|
|
69
|
+
/>
|
|
70
|
+
<Text
|
|
71
|
+
style={[
|
|
72
|
+
styles.text,
|
|
73
|
+
{ color: appliedTheme.colors.buttonText, opacity: 0.75 },
|
|
74
|
+
titleStyle,
|
|
75
|
+
]}
|
|
76
|
+
>
|
|
77
|
+
{loadingText}
|
|
78
|
+
</Text>
|
|
79
|
+
</>
|
|
80
|
+
) : (
|
|
81
|
+
<Text
|
|
82
|
+
style={[
|
|
83
|
+
styles.text,
|
|
84
|
+
{ color: appliedTheme.colors.buttonText },
|
|
85
|
+
titleStyle,
|
|
86
|
+
]}
|
|
87
|
+
>
|
|
88
|
+
{title}
|
|
89
|
+
</Text>
|
|
90
|
+
)}
|
|
91
|
+
</View>
|
|
92
|
+
</TouchableOpacity>
|
|
93
|
+
);
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
const styles = StyleSheet.create({
|
|
97
|
+
button: {
|
|
98
|
+
width: '100%',
|
|
99
|
+
alignSelf: 'stretch',
|
|
100
|
+
paddingVertical: verticalScale(12),
|
|
101
|
+
paddingHorizontal: scale(16),
|
|
102
|
+
borderRadius: scale(6),
|
|
103
|
+
alignItems: 'center',
|
|
104
|
+
justifyContent: 'center',
|
|
105
|
+
},
|
|
106
|
+
row: {
|
|
107
|
+
flexDirection: 'row',
|
|
108
|
+
alignItems: 'center',
|
|
109
|
+
justifyContent: 'center',
|
|
110
|
+
},
|
|
111
|
+
text: {
|
|
112
|
+
textAlign: 'center',
|
|
113
|
+
fontSize: RFValue(13),
|
|
114
|
+
fontWeight: '600',
|
|
115
|
+
},
|
|
116
|
+
});
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
type TextStyle,
|
|
8
8
|
type ViewStyle,
|
|
9
9
|
} from 'react-native';
|
|
10
|
-
import {
|
|
10
|
+
import { useInternalTheme } from '../../theme/hook/useInternalTheme';
|
|
11
11
|
import { scale, verticalScale } from 'react-native-size-matters';
|
|
12
12
|
import { Text } from '../Text';
|
|
13
13
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
@@ -37,7 +37,7 @@ const TextButton: React.FC<TextButtonProps> = ({
|
|
|
37
37
|
align = 'center',
|
|
38
38
|
leftIcon,
|
|
39
39
|
}) => {
|
|
40
|
-
const { theme } =
|
|
40
|
+
const { theme } = useInternalTheme();
|
|
41
41
|
|
|
42
42
|
const alignSelfMap: Record<
|
|
43
43
|
'left' | 'center' | 'right',
|
|
@@ -5,10 +5,12 @@
|
|
|
5
5
|
|
|
6
6
|
import BackBtn from './BackBtn';
|
|
7
7
|
import { PrimaryBtn } from './PrimaryBtn';
|
|
8
|
+
import { SecondaryBtn } from './SecondaryBtn';
|
|
8
9
|
import TextButton from './TextButton';
|
|
9
10
|
|
|
10
11
|
const Button = {
|
|
11
12
|
Primary: PrimaryBtn,
|
|
13
|
+
Secondary: SecondaryBtn,
|
|
12
14
|
BackBtn,
|
|
13
15
|
TextButton,
|
|
14
16
|
};
|
|
@@ -22,10 +22,10 @@ import {
|
|
|
22
22
|
type ListRenderItemInfo,
|
|
23
23
|
} from 'react-native';
|
|
24
24
|
import { Text } from '../../../Text';
|
|
25
|
-
import {
|
|
25
|
+
import { useInternalTheme } from '../../../../theme/hook/useInternalTheme';
|
|
26
26
|
import { scale, verticalScale } from 'react-native-size-matters';
|
|
27
27
|
import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
28
|
-
import type {
|
|
28
|
+
import type { ThemeOverride } from '../../../../theme/themes';
|
|
29
29
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
30
30
|
|
|
31
31
|
export type ICategory = {
|
|
@@ -42,7 +42,7 @@ type CategoryCardProps = {
|
|
|
42
42
|
category?: ICategory[];
|
|
43
43
|
activeCategory?: ICategory;
|
|
44
44
|
onPressCategory?: (category: ICategory) => void;
|
|
45
|
-
theme?:
|
|
45
|
+
theme?: ThemeOverride;
|
|
46
46
|
mode?: 'text' | 'filled';
|
|
47
47
|
isLoading?: boolean;
|
|
48
48
|
};
|
|
@@ -68,7 +68,7 @@ const CategoryCard = React.memo(
|
|
|
68
68
|
mode = 'text',
|
|
69
69
|
isLoading = false,
|
|
70
70
|
}: CategoryCardProps) => {
|
|
71
|
-
const { theme: appliedTheme } =
|
|
71
|
+
const { theme: appliedTheme } = useInternalTheme(theme);
|
|
72
72
|
const flatListRef = useRef<FlatList<ICategory>>(null);
|
|
73
73
|
const [itemWidths, setItemWidths] = useState<number[]>([]);
|
|
74
74
|
|
|
@@ -162,7 +162,7 @@ const CategoryCard = React.memo(
|
|
|
162
162
|
|
|
163
163
|
const textColor = isFilledMode
|
|
164
164
|
? isSelected
|
|
165
|
-
? appliedTheme.colors.
|
|
165
|
+
? appliedTheme.colors.buttonText
|
|
166
166
|
: appliedTheme.colors.textPrimary
|
|
167
167
|
: isSelected
|
|
168
168
|
? appliedTheme.colors.primary
|
|
@@ -26,16 +26,17 @@ import Animated, {
|
|
|
26
26
|
} from 'react-native-reanimated';
|
|
27
27
|
|
|
28
28
|
import { usePaginatedSection } from '../../../../hooks/usePaginatedSection';
|
|
29
|
-
import {
|
|
29
|
+
import { useInternalTheme } from '../../../../theme/hook/useInternalTheme';
|
|
30
30
|
import NavigateToMore from '../components/NavigateToMore';
|
|
31
31
|
import type {
|
|
32
32
|
IContentData,
|
|
33
33
|
IGetSectionData,
|
|
34
34
|
MoreFetchData,
|
|
35
35
|
} from '../../../../types';
|
|
36
|
-
import type {
|
|
36
|
+
import type { ITheme, ThemeOverride } from '../../../../theme/themes';
|
|
37
37
|
import { Text } from '../../../Text';
|
|
38
38
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
39
|
+
import RentOrBuyIcon from '../components/RentOrBuyIcon';
|
|
39
40
|
|
|
40
41
|
export interface IHistoryItem {
|
|
41
42
|
_id: string;
|
|
@@ -56,7 +57,7 @@ type Props = {
|
|
|
56
57
|
historyData?: IHistoryItem[];
|
|
57
58
|
type: IGetSectionData['type'];
|
|
58
59
|
moreFetchDataHistory?: MoreFetchData<IHistoryItem>;
|
|
59
|
-
theme?:
|
|
60
|
+
theme?: ThemeOverride;
|
|
60
61
|
onPressItem?: (item: IContentData) => void;
|
|
61
62
|
onPressMore?: (params: {
|
|
62
63
|
section_id: IGetSectionData['_id'];
|
|
@@ -148,6 +149,10 @@ const NowWatchingItem = memo(
|
|
|
148
149
|
}}
|
|
149
150
|
style={styles.poster}
|
|
150
151
|
>
|
|
152
|
+
<RentOrBuyIcon
|
|
153
|
+
theme={appliedTheme}
|
|
154
|
+
content_offering_type={item.content.content_offering_type}
|
|
155
|
+
/>
|
|
151
156
|
<LinearGradient
|
|
152
157
|
colors={['rgba(0,0,0,0.95)', 'transparent']}
|
|
153
158
|
start={{ x: 0, y: 1 }}
|
|
@@ -208,7 +213,7 @@ const NowWatching: React.FC<Props> = ({
|
|
|
208
213
|
}) => {
|
|
209
214
|
const flatListRef = useRef<FlatList<IHistoryItem>>(null);
|
|
210
215
|
const onEndReachedCalledDuringMomentum = useRef(false);
|
|
211
|
-
const { theme: appliedTheme } =
|
|
216
|
+
const { theme: appliedTheme } = useInternalTheme(theme);
|
|
212
217
|
const styles = useMemo(
|
|
213
218
|
() => getStyles(appliedTheme, itemWidth, borderRadius),
|
|
214
219
|
[appliedTheme, itemWidth, borderRadius]
|
|
@@ -315,7 +320,7 @@ const NowWatching: React.FC<Props> = ({
|
|
|
315
320
|
titleStyle,
|
|
316
321
|
]}
|
|
317
322
|
containerStyle={styles.navigateToMoreContainer}
|
|
318
|
-
showAllProps={{ iconColor: appliedTheme.colors.textPrimary }}
|
|
323
|
+
showAllProps={{ iconColor: appliedTheme.colors.textPrimary, theme }}
|
|
319
324
|
/>
|
|
320
325
|
)}
|
|
321
326
|
{(isLoading || isLoadingHistory) && (
|