@zezosoft/zezo-ott-react-native-ui-kit 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +0 -0
- package/README.md +6 -0
- package/lib/module/assets/animations/135037-payment-processing-error.json +1347 -1
- package/lib/module/assets/animations/7227-vui-animation.json +3377 -1
- package/lib/module/assets/animations/succesfull-payment.json +2379 -1
- package/lib/module/assets/animations/voice-icon.json +542 -1
- package/lib/module/components/Account/Account.js +6 -6
- package/lib/module/components/Account/Account.js.map +1 -1
- package/lib/module/components/Account/index.js +1 -1
- package/lib/module/components/Account/index.js.map +1 -1
- package/lib/module/components/Alert/UAAlert.js +138 -0
- package/lib/module/components/Alert/UAAlert.js.map +1 -0
- package/lib/module/components/Alert/index.js +4 -0
- package/lib/module/components/Alert/index.js.map +1 -0
- package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js +9 -9
- package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js.map +1 -1
- package/lib/module/components/Auth/Login/LoginWithEmail.js +10 -10
- package/lib/module/components/Auth/Login/LoginWithEmail.js.map +1 -1
- package/lib/module/components/Auth/Login/LoginWithPhone.js +10 -10
- package/lib/module/components/Auth/Login/LoginWithPhone.js.map +1 -1
- package/lib/module/components/Auth/OTP/OTP.js +9 -9
- package/lib/module/components/Auth/OTP/OTP.js.map +1 -1
- package/lib/module/components/Auth/SignUp/SignUp.js +10 -10
- package/lib/module/components/Auth/SignUp/SignUp.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/SplashScreen.js +6 -6
- package/lib/module/components/Auth/SplashScreen/SplashScreen.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashImage/SplashImage.js +1 -6
- package/lib/module/components/Auth/SplashScreen/components/SplashImage/SplashImage.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.js +1 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js +1 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js.map +1 -1
- package/lib/module/components/Auth/index.js +6 -6
- package/lib/module/components/Auth/index.js.map +1 -1
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js +1 -1
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js.map +1 -1
- package/lib/module/components/BlogView/BlogView.js +4 -10
- package/lib/module/components/BlogView/BlogView.js.map +1 -1
- package/lib/module/components/BlogView/index.js +1 -1
- package/lib/module/components/BlogView/index.js.map +1 -1
- package/lib/module/components/Button/BackBtn.js +1 -1
- package/lib/module/components/Button/BackBtn.js.map +1 -1
- package/lib/module/components/Button/MenuBtn.js +1 -1
- package/lib/module/components/Button/MenuBtn.js.map +1 -1
- package/lib/module/components/Button/PrimaryBtn.js +2 -2
- package/lib/module/components/Button/PrimaryBtn.js.map +1 -1
- package/lib/module/components/Button/TextButton.js +2 -2
- package/lib/module/components/Button/TextButton.js.map +1 -1
- package/lib/module/components/Button/index.js +3 -3
- package/lib/module/components/Button/index.js.map +1 -1
- package/lib/module/components/Content/Card/Category/Category.js +2 -2
- package/lib/module/components/Content/Card/Category/Category.js.map +1 -1
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js +6 -6
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/Styles/One.js +3 -3
- package/lib/module/components/Content/Card/Sliders/Styles/One.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js +4 -4
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/index.js +2 -2
- package/lib/module/components/Content/Card/Sliders/index.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Five.js +4 -4
- package/lib/module/components/Content/Card/Styles/Five.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Four.js +4 -4
- package/lib/module/components/Content/Card/Styles/Four.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/One.js +4 -4
- package/lib/module/components/Content/Card/Styles/One.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/RotateInOut.js +4 -4
- package/lib/module/components/Content/Card/Styles/RotateInOut.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Six.js +5 -5
- package/lib/module/components/Content/Card/Styles/Six.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Three.js +4 -4
- package/lib/module/components/Content/Card/Styles/Three.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/TopTen.js +5 -5
- package/lib/module/components/Content/Card/Styles/TopTen.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Two.js +4 -4
- package/lib/module/components/Content/Card/Styles/Two.js.map +1 -1
- package/lib/module/components/Content/Card/components/CardPoster.js +1 -10
- package/lib/module/components/Content/Card/components/CardPoster.js.map +1 -1
- package/lib/module/components/Content/Card/components/NavigateToMore.js +2 -2
- package/lib/module/components/Content/Card/components/NavigateToMore.js.map +1 -1
- package/lib/module/components/Content/Card/components/NoContentFallback.js +3 -3
- package/lib/module/components/Content/Card/components/NoContentFallback.js.map +1 -1
- package/lib/module/components/Content/Card/components/ShowAllButton.js +1 -1
- package/lib/module/components/Content/Card/components/ShowAllButton.js.map +1 -1
- package/lib/module/components/Content/Card/components/ThumbnailCard.js +1 -1
- package/lib/module/components/Content/Card/components/ThumbnailCard.js.map +1 -1
- package/lib/module/components/Content/Card/index.js +10 -10
- package/lib/module/components/Content/Card/index.js.map +1 -1
- package/lib/module/components/Content/Content.js +4 -4
- package/lib/module/components/Content/Content.js.map +1 -1
- package/lib/module/components/Content/Sections.js +2 -2
- package/lib/module/components/Content/Sections.js.map +1 -1
- package/lib/module/components/ContentView/ContentView.js +8 -9
- package/lib/module/components/ContentView/ContentView.js.map +1 -1
- package/lib/module/components/ContentView/MoreContentList.js +6 -6
- package/lib/module/components/ContentView/MoreContentList.js.map +1 -1
- package/lib/module/components/ContentView/components/AboutSection.js +2 -2
- package/lib/module/components/ContentView/components/AboutSection.js.map +1 -1
- package/lib/module/components/ContentView/components/CastCard.js +2 -2
- package/lib/module/components/ContentView/components/CastCard.js.map +1 -1
- package/lib/module/components/ContentView/components/EpisodeCard.js +3 -3
- package/lib/module/components/ContentView/components/EpisodeCard.js.map +1 -1
- package/lib/module/components/ContentView/components/GenreTags.js +1 -1
- package/lib/module/components/ContentView/components/GenreTags.js.map +1 -1
- package/lib/module/components/ContentView/components/HeroBanner.js +5 -5
- package/lib/module/components/ContentView/components/HeroBanner.js.map +1 -1
- package/lib/module/components/ContentView/components/PlayButton.js +0 -1
- package/lib/module/components/ContentView/components/PlayButton.js.map +1 -1
- package/lib/module/components/ContentView/components/Title.js +1 -1
- package/lib/module/components/ContentView/components/Title.js.map +1 -1
- package/lib/module/components/ContentView/components/TrailerButton.js +1 -2
- package/lib/module/components/ContentView/components/TrailerButton.js.map +1 -1
- package/lib/module/components/ContentView/index.js +2 -2
- package/lib/module/components/ContentView/index.js.map +1 -1
- package/lib/module/components/Headers/AppHeader.js +2 -2
- package/lib/module/components/Headers/AppHeader.js.map +1 -1
- package/lib/module/components/Headers/One.js +2 -2
- package/lib/module/components/Headers/One.js.map +1 -1
- package/lib/module/components/Headers/Three.js +2 -2
- package/lib/module/components/Headers/Three.js.map +1 -1
- package/lib/module/components/Headers/Two.js +5 -6
- package/lib/module/components/Headers/Two.js.map +1 -1
- package/lib/module/components/Headers/index.js +3 -3
- package/lib/module/components/Headers/index.js.map +1 -1
- package/lib/module/components/Input/Input.js +3 -3
- package/lib/module/components/Input/Input.js.map +1 -1
- package/lib/module/components/Input/InputOne.js +1 -1
- package/lib/module/components/Input/InputOne.js.map +1 -1
- package/lib/module/components/Input/InputTwo.js +1 -1
- package/lib/module/components/Input/InputTwo.js.map +1 -1
- package/lib/module/components/Input/PhoneNumberInput.js +1 -1
- package/lib/module/components/Input/PhoneNumberInput.js.map +1 -1
- package/lib/module/components/Keyboard/HideKeyboard.js.map +1 -1
- package/lib/module/components/Loader/Loader.js +1 -6
- package/lib/module/components/Loader/Loader.js.map +1 -1
- package/lib/module/components/Logo/Logo.js +2 -2
- package/lib/module/components/Logo/Logo.js.map +1 -1
- package/lib/module/components/Search/One.js +9 -9
- package/lib/module/components/Search/One.js.map +1 -1
- package/lib/module/components/Search/components/RecentSearchesSection.js +1 -1
- package/lib/module/components/Search/components/RecentSearchesSection.js.map +1 -1
- package/lib/module/components/Search/components/SearchCard.js +3 -3
- package/lib/module/components/Search/components/SearchCard.js.map +1 -1
- package/lib/module/components/Search/index.js +2 -2
- package/lib/module/components/Search/index.js.map +1 -1
- package/lib/module/components/Settings/AppSettings.js +4 -4
- package/lib/module/components/Settings/AppSettings.js.map +1 -1
- package/lib/module/components/Settings/index.js +1 -1
- package/lib/module/components/Settings/index.js.map +1 -1
- package/lib/module/components/Subscription/SubOne.js +4 -4
- package/lib/module/components/Subscription/SubOne.js.map +1 -1
- package/lib/module/components/Subscription/index.js +1 -1
- package/lib/module/components/Subscription/index.js.map +1 -1
- package/lib/module/components/TabBar/One.js +2 -2
- package/lib/module/components/TabBar/One.js.map +1 -1
- package/lib/module/components/TabBar/Three.js +1 -1
- package/lib/module/components/TabBar/Three.js.map +1 -1
- package/lib/module/components/TabBar/Two.js +2 -2
- package/lib/module/components/TabBar/Two.js.map +1 -1
- package/lib/module/components/TabBar/index.js +3 -3
- package/lib/module/components/TabBar/index.js.map +1 -1
- package/lib/module/components/Text/Text.js +1 -1
- package/lib/module/components/Text/Text.js.map +1 -1
- package/lib/module/components/Text/index.js +1 -1
- package/lib/module/components/Text/index.js.map +1 -1
- package/lib/module/components/User/DeviceSessions/DeviceSessions.js +3 -3
- package/lib/module/components/User/DeviceSessions/DeviceSessions.js.map +1 -1
- package/lib/module/components/User/WatchHistory/WatchHistory.js +4 -4
- package/lib/module/components/User/WatchHistory/WatchHistory.js.map +1 -1
- package/lib/module/components/User/WatchLater/WatchLater.js +5 -5
- package/lib/module/components/User/WatchLater/WatchLater.js.map +1 -1
- package/lib/module/components/User/components/UserAvatar.js +1 -1
- package/lib/module/components/User/components/UserAvatar.js.map +1 -1
- package/lib/module/components/User/components/UserSection.js +3 -3
- package/lib/module/components/User/components/UserSection.js.map +1 -1
- package/lib/module/components/User/index.js +3 -3
- package/lib/module/components/User/index.js.map +1 -1
- package/lib/module/components/View/View.js.map +1 -1
- package/lib/module/components/View/index.js +1 -1
- package/lib/module/components/View/index.js.map +1 -1
- package/lib/module/components/index.js +19 -18
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/layout/SafeAreaWrapper.js +1 -1
- package/lib/module/components/layout/SafeAreaWrapper.js.map +1 -1
- package/lib/module/components/layout/index.js +1 -1
- package/lib/module/components/layout/index.js.map +1 -1
- package/lib/module/constants/dummySections.js.map +1 -1
- package/lib/module/hooks/useDebounce.js.map +1 -1
- package/lib/module/hooks/useInitSplashCacheSync.js +7 -7
- package/lib/module/hooks/useInitSplashCacheSync.js.map +1 -1
- package/lib/module/hooks/useKeyboard.js.map +1 -1
- package/lib/module/hooks/usePaginatedSection.js.map +1 -1
- package/lib/module/index.js +3 -3
- package/lib/module/index.js.map +1 -1
- package/lib/module/package.json +1 -0
- package/lib/module/store/RecentSearchesStore.js.map +1 -1
- package/lib/module/store/splashStore.js.map +1 -1
- package/lib/module/theme/ThemeProvider.js +11 -8
- package/lib/module/theme/ThemeProvider.js.map +1 -1
- package/lib/module/theme/hook/useTheme.js +2 -2
- package/lib/module/theme/hook/useTheme.js.map +1 -1
- package/lib/module/theme/index.js +3 -2
- package/lib/module/theme/index.js.map +1 -1
- package/lib/module/theme/themes.js +0 -13
- package/lib/module/theme/themes.js.map +1 -1
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/components/Account/Account.d.ts +0 -1
- package/lib/typescript/src/components/Account/Account.d.ts.map +1 -1
- package/lib/typescript/src/components/Alert/UAAlert.d.ts +16 -0
- package/lib/typescript/src/components/Alert/UAAlert.d.ts.map +1 -0
- package/lib/typescript/src/components/Alert/index.d.ts +2 -0
- package/lib/typescript/src/components/Alert/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/ForgotPassword/ForgotPassword.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/Login/LoginWithEmail.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/Login/LoginWithPhone.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/OTP/OTP.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/SignUp/SignUp.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/SplashScreen/SplashScreen.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.d.ts +0 -4
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/index.d.ts +1 -1
- package/lib/typescript/src/components/Auth/index.d.ts.map +1 -1
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayout.d.ts.map +1 -1
- package/lib/typescript/src/components/BlogView/BlogView.d.ts +0 -4
- package/lib/typescript/src/components/BlogView/BlogView.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/BackBtn.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/MenuBtn.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/PrimaryBtn.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/TextButton.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Category/Category.d.ts +1 -1
- package/lib/typescript/src/components/Content/Card/Category/Category.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/NowWatching/NowWatching.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Five.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Four.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/RotateInOut.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Six.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Three.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/TopTen.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts +0 -8
- package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/NavigateToMore.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/NoContentFallback.d.ts +1 -2
- package/lib/typescript/src/components/Content/Card/components/NoContentFallback.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/ShowAllButton.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/ThumbnailCard.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/index.d.ts +2 -2
- package/lib/typescript/src/components/Content/Content.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Sections.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/ContentView.d.ts +1 -2
- package/lib/typescript/src/components/ContentView/ContentView.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/MoreContentList.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/AboutSection.d.ts +1 -2
- package/lib/typescript/src/components/ContentView/components/AboutSection.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/CastCard.d.ts +1 -6
- package/lib/typescript/src/components/ContentView/components/CastCard.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts +1 -2
- package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/GenreTags.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/components/GenreTags.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/HeroBanner.d.ts +1 -2
- package/lib/typescript/src/components/ContentView/components/HeroBanner.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/PlayButton.d.ts +1 -2
- package/lib/typescript/src/components/ContentView/components/PlayButton.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/Title.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/components/Title.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/TrailerButton.d.ts +1 -2
- package/lib/typescript/src/components/ContentView/components/TrailerButton.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/AppHeader.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/Three.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/Input/InputOne.d.ts.map +1 -1
- package/lib/typescript/src/components/Input/InputTwo.d.ts.map +1 -1
- package/lib/typescript/src/components/Input/PhoneNumberInput.d.ts.map +1 -1
- package/lib/typescript/src/components/Keyboard/HideKeyboard.d.ts.map +1 -1
- package/lib/typescript/src/components/Loader/Loader.d.ts +0 -4
- package/lib/typescript/src/components/Loader/Loader.d.ts.map +1 -1
- package/lib/typescript/src/components/Logo/Logo.d.ts.map +1 -1
- package/lib/typescript/src/components/Search/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Search/components/RecentSearchesSection.d.ts.map +1 -1
- package/lib/typescript/src/components/Search/components/SearchCard.d.ts.map +1 -1
- package/lib/typescript/src/components/Settings/AppSettings.d.ts.map +1 -1
- package/lib/typescript/src/components/Subscription/SubOne.d.ts +1 -1
- package/lib/typescript/src/components/Subscription/SubOne.d.ts.map +1 -1
- package/lib/typescript/src/components/Subscription/index.d.ts +2 -2
- package/lib/typescript/src/components/Subscription/index.d.ts.map +1 -1
- package/lib/typescript/src/components/TabBar/One.d.ts +2 -2
- package/lib/typescript/src/components/TabBar/One.d.ts.map +1 -1
- package/lib/typescript/src/components/TabBar/Three.d.ts.map +1 -1
- package/lib/typescript/src/components/TabBar/Two.d.ts +1 -1
- package/lib/typescript/src/components/TabBar/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/TabBar/index.d.ts +2 -2
- package/lib/typescript/src/components/Text/Text.d.ts.map +1 -1
- package/lib/typescript/src/components/User/DeviceSessions/DeviceSessions.d.ts +1 -1
- package/lib/typescript/src/components/User/DeviceSessions/DeviceSessions.d.ts.map +1 -1
- package/lib/typescript/src/components/User/WatchHistory/WatchHistory.d.ts.map +1 -1
- package/lib/typescript/src/components/User/WatchLater/WatchLater.d.ts.map +1 -1
- package/lib/typescript/src/components/User/components/UserAvatar.d.ts.map +1 -1
- package/lib/typescript/src/components/User/components/UserSection.d.ts.map +1 -1
- package/lib/typescript/src/components/View/View.d.ts.map +1 -1
- package/lib/typescript/src/components/index.d.ts +1 -0
- package/lib/typescript/src/components/index.d.ts.map +1 -1
- package/lib/typescript/src/components/layout/SafeAreaWrapper.d.ts.map +1 -1
- package/lib/typescript/src/constants/dummySections.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useDebounce.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useInitSplashCacheSync.d.ts +1 -1
- package/lib/typescript/src/hooks/useInitSplashCacheSync.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useKeyboard.d.ts.map +1 -1
- package/lib/typescript/src/hooks/usePaginatedSection.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/store/RecentSearchesStore.d.ts +5 -3
- package/lib/typescript/src/store/RecentSearchesStore.d.ts.map +1 -1
- package/lib/typescript/src/store/splashStore.d.ts +5 -3
- package/lib/typescript/src/store/splashStore.d.ts.map +1 -1
- package/lib/typescript/src/theme/ThemeProvider.d.ts.map +1 -1
- package/lib/typescript/src/theme/hook/useTheme.d.ts.map +1 -1
- package/lib/typescript/src/theme/index.d.ts +5 -0
- package/lib/typescript/src/theme/index.d.ts.map +1 -1
- package/lib/typescript/src/theme/themes.d.ts +11 -4
- package/lib/typescript/src/theme/themes.d.ts.map +1 -1
- package/lib/typescript/src/types/content/content-view.types.d.ts.map +1 -1
- package/lib/typescript/src/types/hook/usePaginatedSetion.d.ts +1 -1
- package/lib/typescript/src/types/hook/usePaginatedSetion.d.ts.map +1 -1
- package/package.json +167 -70
- package/src/Styles/globalStyles.ts +18 -18
- package/src/assets/animations/135037-payment-processing-error.json +1347 -1
- package/src/assets/animations/7227-vui-animation.json +3377 -1
- package/src/assets/animations/succesfull-payment.json +2379 -1
- package/src/assets/animations/voice-icon.json +542 -1
- package/src/components/Account/Account.tsx +139 -61
- package/src/components/Alert/UAAlert.tsx +168 -0
- package/src/components/Alert/index.ts +1 -0
- package/src/components/Auth/ForgotPassword/ForgotPassword.tsx +53 -23
- package/src/components/Auth/Login/LoginWithEmail.tsx +62 -32
- package/src/components/Auth/Login/LoginWithPhone.tsx +55 -24
- package/src/components/Auth/OTP/OTP.tsx +77 -32
- package/src/components/Auth/SignUp/SignUp.tsx +67 -32
- package/src/components/Auth/SplashScreen/SplashScreen.tsx +44 -16
- package/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.tsx +21 -12
- package/src/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.tsx +5 -5
- package/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.tsx +15 -5
- package/src/components/Auth/index.ts +1 -1
- package/src/components/BackgroundLayout/BackgroundLayout.tsx +45 -17
- package/src/components/BlogView/BlogView.tsx +51 -31
- package/src/components/Button/BackBtn.tsx +31 -9
- package/src/components/Button/MenuBtn.tsx +61 -22
- package/src/components/Button/PrimaryBtn.tsx +30 -10
- package/src/components/Button/TextButton.tsx +30 -15
- package/src/components/Button/index.ts +1 -1
- package/src/components/Content/Card/Category/Category.tsx +73 -32
- package/src/components/Content/Card/NowWatching/NowWatching.tsx +102 -44
- package/src/components/Content/Card/Sliders/Styles/One.tsx +89 -38
- package/src/components/Content/Card/Sliders/Styles/Two.tsx +47 -21
- package/src/components/Content/Card/Sliders/index.ts +2 -2
- package/src/components/Content/Card/Styles/Five.tsx +65 -22
- package/src/components/Content/Card/Styles/Four.tsx +73 -23
- package/src/components/Content/Card/Styles/One.tsx +68 -21
- package/src/components/Content/Card/Styles/RotateInOut.tsx +59 -23
- package/src/components/Content/Card/Styles/Six.tsx +57 -19
- package/src/components/Content/Card/Styles/Three.tsx +59 -23
- package/src/components/Content/Card/Styles/TopTen.tsx +59 -26
- package/src/components/Content/Card/Styles/Two.tsx +39 -18
- package/src/components/Content/Card/components/CardPoster.tsx +34 -32
- package/src/components/Content/Card/components/NavigateToMore.tsx +17 -7
- package/src/components/Content/Card/components/NoContentFallback.tsx +36 -19
- package/src/components/Content/Card/components/ShowAllButton.tsx +12 -8
- package/src/components/Content/Card/components/ThumbnailCard.tsx +26 -17
- package/src/components/Content/Card/index.ts +2 -2
- package/src/components/Content/Content.tsx +41 -17
- package/src/components/Content/Sections.tsx +14 -8
- package/src/components/ContentView/ContentView.tsx +34 -27
- package/src/components/ContentView/MoreContentList.tsx +40 -18
- package/src/components/ContentView/components/AboutSection.tsx +30 -12
- package/src/components/ContentView/components/CastCard.tsx +65 -24
- package/src/components/ContentView/components/EpisodeCard.tsx +109 -44
- package/src/components/ContentView/components/GenreTags.tsx +35 -11
- package/src/components/ContentView/components/HeroBanner.tsx +52 -21
- package/src/components/ContentView/components/PlayButton.tsx +13 -5
- package/src/components/ContentView/components/Title.tsx +30 -10
- package/src/components/ContentView/components/TrailerButton.tsx +16 -7
- package/src/components/Headers/AppHeader.tsx +40 -14
- package/src/components/Headers/One.tsx +18 -9
- package/src/components/Headers/Three.tsx +22 -7
- package/src/components/Headers/Two.tsx +24 -13
- package/src/components/Headers/index.ts +1 -1
- package/src/components/Input/Input.ts +1 -1
- package/src/components/Input/InputOne.tsx +69 -23
- package/src/components/Input/InputTwo.tsx +41 -18
- package/src/components/Input/PhoneNumberInput.tsx +94 -48
- package/src/components/Keyboard/HideKeyboard.tsx +16 -10
- package/src/components/Loader/Loader.tsx +3 -8
- package/src/components/Logo/Logo.tsx +17 -9
- package/src/components/Search/One.tsx +46 -17
- package/src/components/Search/components/RecentSearchesSection.tsx +48 -21
- package/src/components/Search/components/SearchCard.tsx +34 -16
- package/src/components/Search/index.ts +1 -1
- package/src/components/Settings/AppSettings.tsx +80 -29
- package/src/components/Subscription/SubOne.tsx +84 -39
- package/src/components/Subscription/index.ts +1 -1
- package/src/components/TabBar/One.tsx +22 -18
- package/src/components/TabBar/Three.tsx +55 -19
- package/src/components/TabBar/Two.tsx +16 -12
- package/src/components/TabBar/index.ts +1 -1
- package/src/components/Text/Text.tsx +7 -3
- package/src/components/User/DeviceSessions/DeviceSessions.tsx +93 -38
- package/src/components/User/WatchHistory/WatchHistory.tsx +37 -12
- package/src/components/User/WatchLater/WatchLater.tsx +94 -31
- package/src/components/User/components/UserAvatar.tsx +8 -4
- package/src/components/User/components/UserSection.tsx +34 -19
- package/src/components/View/View.tsx +11 -2
- package/src/components/index.ts +1 -0
- package/src/components/layout/SafeAreaWrapper.tsx +10 -4
- package/src/constants/dummySections.ts +9 -7
- package/src/hooks/useDebounce.ts +4 -1
- package/src/hooks/useInitSplashCacheSync.ts +46 -18
- package/src/hooks/useKeyboard.ts +5 -3
- package/src/hooks/usePaginatedSection.ts +11 -7
- package/src/store/RecentSearchesStore.ts +12 -7
- package/src/store/splashStore.ts +16 -16
- package/src/theme/ThemeProvider.tsx +50 -20
- package/src/theme/hook/useTheme.ts +7 -3
- package/src/theme/index.ts +6 -0
- package/src/theme/themes.ts +42 -31
- package/src/types/content/content-view.types.ts +4 -1
- package/src/types/hook/usePaginatedSetion.ts +1 -1
- package/lib/module/components/Icons/AlertIcon.js +0 -33
- package/lib/module/components/Icons/AlertIcon.js.map +0 -1
- package/lib/module/components/Icons/DeviceIcon.js +0 -25
- package/lib/module/components/Icons/DeviceIcon.js.map +0 -1
- package/lib/module/components/Icons/DoneIcon/DoneIcon.js +0 -23
- package/lib/module/components/Icons/DoneIcon/DoneIcon.js.map +0 -1
- package/lib/module/components/Icons/ForgotPasswordMessageIcon.js +0 -65
- package/lib/module/components/Icons/ForgotPasswordMessageIcon.js.map +0 -1
- package/lib/module/components/Icons/ForgotPasswordMessageIconTwo.js +0 -56
- package/lib/module/components/Icons/ForgotPasswordMessageIconTwo.js.map +0 -1
- package/lib/module/components/Icons/NewIndex.js +0 -36
- package/lib/module/components/Icons/NewIndex.js.map +0 -1
- package/lib/module/components/Icons/ResendOTP.js +0 -21
- package/lib/module/components/Icons/ResendOTP.js.map +0 -1
- package/lib/typescript/src/components/Icons/AlertIcon.d.ts +0 -7
- package/lib/typescript/src/components/Icons/AlertIcon.d.ts.map +0 -1
- package/lib/typescript/src/components/Icons/DeviceIcon.d.ts +0 -7
- package/lib/typescript/src/components/Icons/DeviceIcon.d.ts.map +0 -1
- package/lib/typescript/src/components/Icons/DoneIcon/DoneIcon.d.ts +0 -6
- package/lib/typescript/src/components/Icons/DoneIcon/DoneIcon.d.ts.map +0 -1
- package/lib/typescript/src/components/Icons/ForgotPasswordMessageIcon.d.ts +0 -3
- package/lib/typescript/src/components/Icons/ForgotPasswordMessageIcon.d.ts.map +0 -1
- package/lib/typescript/src/components/Icons/ForgotPasswordMessageIconTwo.d.ts +0 -3
- package/lib/typescript/src/components/Icons/ForgotPasswordMessageIconTwo.d.ts.map +0 -1
- package/lib/typescript/src/components/Icons/NewIndex.d.ts +0 -19
- package/lib/typescript/src/components/Icons/NewIndex.d.ts.map +0 -1
- package/lib/typescript/src/components/Icons/ResendOTP.d.ts +0 -7
- package/lib/typescript/src/components/Icons/ResendOTP.d.ts.map +0 -1
- package/src/components/Icons/AlertIcon.tsx +0 -18
- package/src/components/Icons/DeviceIcon.tsx +0 -18
- package/src/components/Icons/DoneIcon/DoneIcon.tsx +0 -17
- package/src/components/Icons/ForgotPasswordMessageIcon.tsx +0 -34
- package/src/components/Icons/ForgotPasswordMessageIconTwo.tsx +0 -32
- package/src/components/Icons/NewIndex.ts +0 -35
- package/src/components/Icons/ResendOTP.tsx +0 -13
- /package/src/{index.ts → index.tsx} +0 -0
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Naresh Dhamu
|
|
3
|
-
* @lastModified Wed 02 Jul 2025 at 10:29 AM
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @author Naresh Dhamu
|
|
7
|
-
* @lastModified Wed 02 Jul 2025 at 10:29 AM
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
1
|
import React, { useState, useEffect, useMemo } from 'react';
|
|
11
2
|
import { View, StyleSheet, type StyleProp, type ViewStyle } from 'react-native';
|
|
12
|
-
import type {
|
|
3
|
+
import type {
|
|
4
|
+
ImageStyle as FastImageStyle,
|
|
5
|
+
ImageStyle,
|
|
6
|
+
ResizeMode,
|
|
7
|
+
} from 'react-native-fast-image';
|
|
13
8
|
import FastImage from 'react-native-fast-image';
|
|
14
9
|
import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
15
10
|
import { scale } from 'react-native-size-matters';
|
|
@@ -35,7 +30,7 @@ const CardPoster: React.FC<CardPosterProps> = ({
|
|
|
35
30
|
borderRadius = scale(6),
|
|
36
31
|
posterWrapperStyle,
|
|
37
32
|
imageStyle,
|
|
38
|
-
resizeMode = FastImage.resizeMode.cover
|
|
33
|
+
resizeMode = FastImage.resizeMode.cover,
|
|
39
34
|
}) => {
|
|
40
35
|
const [imageLoading, setImageLoading] = useState(true);
|
|
41
36
|
const [imageError, setImageError] = useState(false);
|
|
@@ -61,7 +56,8 @@ const CardPoster: React.FC<CardPosterProps> = ({
|
|
|
61
56
|
}
|
|
62
57
|
}, [posterUri, hasValidPoster]);
|
|
63
58
|
|
|
64
|
-
const showSkeleton =
|
|
59
|
+
const showSkeleton =
|
|
60
|
+
isLoading || (imageLoading && !imageError && hasValidPoster);
|
|
65
61
|
|
|
66
62
|
const fallbackImageStyle: ImageStyle = useMemo(
|
|
67
63
|
() => ({
|
|
@@ -70,7 +66,7 @@ const CardPoster: React.FC<CardPosterProps> = ({
|
|
|
70
66
|
borderRadius,
|
|
71
67
|
position: 'absolute',
|
|
72
68
|
top: 0,
|
|
73
|
-
left: 0
|
|
69
|
+
left: 0,
|
|
74
70
|
}),
|
|
75
71
|
[borderRadius]
|
|
76
72
|
);
|
|
@@ -83,9 +79,9 @@ const CardPoster: React.FC<CardPosterProps> = ({
|
|
|
83
79
|
{
|
|
84
80
|
borderRadius,
|
|
85
81
|
backgroundColor: theme.colors.background,
|
|
86
|
-
shadowColor: theme.colors.shadow
|
|
82
|
+
shadowColor: theme.colors.shadow,
|
|
87
83
|
},
|
|
88
|
-
posterWrapperStyle
|
|
84
|
+
posterWrapperStyle,
|
|
89
85
|
]}
|
|
90
86
|
>
|
|
91
87
|
{showSkeleton && (
|
|
@@ -95,7 +91,9 @@ const CardPoster: React.FC<CardPosterProps> = ({
|
|
|
95
91
|
highlightColor={theme.colors.skeletonHighlightColor}
|
|
96
92
|
speed={1000}
|
|
97
93
|
>
|
|
98
|
-
<SkeletonPlaceholder.Item
|
|
94
|
+
<SkeletonPlaceholder.Item
|
|
95
|
+
style={[styles.skeleton, { borderRadius }]}
|
|
96
|
+
/>
|
|
99
97
|
</SkeletonPlaceholder>
|
|
100
98
|
</View>
|
|
101
99
|
)}
|
|
@@ -105,9 +103,13 @@ const CardPoster: React.FC<CardPosterProps> = ({
|
|
|
105
103
|
source={{
|
|
106
104
|
uri: posterUri,
|
|
107
105
|
cache: FastImage.cacheControl.immutable,
|
|
108
|
-
priority: FastImage.priority.normal
|
|
106
|
+
priority: FastImage.priority.normal,
|
|
109
107
|
}}
|
|
110
|
-
style={[
|
|
108
|
+
style={[
|
|
109
|
+
fallbackImageStyle,
|
|
110
|
+
showSkeleton ? styles.hidden : styles.visible,
|
|
111
|
+
imageStyle,
|
|
112
|
+
]}
|
|
111
113
|
resizeMode={resizeMode}
|
|
112
114
|
onLoadStart={() => {
|
|
113
115
|
if (hasValidPoster) {
|
|
@@ -135,16 +137,16 @@ const CardPoster: React.FC<CardPosterProps> = ({
|
|
|
135
137
|
{
|
|
136
138
|
borderRadius,
|
|
137
139
|
backgroundColor: theme.colors.background,
|
|
138
|
-
borderColor: theme.colors.error
|
|
139
|
-
}
|
|
140
|
+
borderColor: theme.colors.error,
|
|
141
|
+
},
|
|
140
142
|
]}
|
|
141
143
|
>
|
|
142
144
|
<View
|
|
143
145
|
style={[
|
|
144
146
|
styles.fallback,
|
|
145
147
|
{
|
|
146
|
-
backgroundColor: theme.colors.errorContainer
|
|
147
|
-
}
|
|
148
|
+
backgroundColor: theme.colors.errorContainer,
|
|
149
|
+
},
|
|
148
150
|
]}
|
|
149
151
|
>
|
|
150
152
|
<ImageOff size={scale(18)} color={theme.colors.error} />
|
|
@@ -165,13 +167,13 @@ const styles = StyleSheet.create({
|
|
|
165
167
|
width: '100%',
|
|
166
168
|
aspectRatio: 2 / 3,
|
|
167
169
|
overflow: 'hidden',
|
|
168
|
-
position: 'relative'
|
|
170
|
+
position: 'relative',
|
|
169
171
|
},
|
|
170
172
|
defaultPosterWrapper: {
|
|
171
173
|
shadowOffset: { width: 0, height: 2 },
|
|
172
174
|
shadowOpacity: 0.1,
|
|
173
175
|
shadowRadius: 3,
|
|
174
|
-
elevation: 2
|
|
176
|
+
elevation: 2,
|
|
175
177
|
},
|
|
176
178
|
skeletonWrapper: {
|
|
177
179
|
position: 'absolute',
|
|
@@ -179,17 +181,17 @@ const styles = StyleSheet.create({
|
|
|
179
181
|
left: 0,
|
|
180
182
|
width: '100%',
|
|
181
183
|
aspectRatio: 2 / 3,
|
|
182
|
-
overflow: 'hidden'
|
|
184
|
+
overflow: 'hidden',
|
|
183
185
|
},
|
|
184
186
|
skeleton: {
|
|
185
187
|
width: '100%',
|
|
186
|
-
aspectRatio: 2 / 3
|
|
188
|
+
aspectRatio: 2 / 3,
|
|
187
189
|
},
|
|
188
190
|
visible: {
|
|
189
|
-
opacity: 1
|
|
191
|
+
opacity: 1,
|
|
190
192
|
},
|
|
191
193
|
hidden: {
|
|
192
|
-
opacity: 0
|
|
194
|
+
opacity: 0,
|
|
193
195
|
},
|
|
194
196
|
fallbackWrapper: {
|
|
195
197
|
position: 'absolute',
|
|
@@ -199,7 +201,7 @@ const styles = StyleSheet.create({
|
|
|
199
201
|
aspectRatio: 2 / 3,
|
|
200
202
|
borderWidth: scale(1),
|
|
201
203
|
alignItems: 'center',
|
|
202
|
-
justifyContent: 'center'
|
|
204
|
+
justifyContent: 'center',
|
|
203
205
|
},
|
|
204
206
|
fallback: {
|
|
205
207
|
position: 'absolute',
|
|
@@ -208,10 +210,10 @@ const styles = StyleSheet.create({
|
|
|
208
210
|
width: '100%',
|
|
209
211
|
aspectRatio: 2 / 3,
|
|
210
212
|
alignItems: 'center',
|
|
211
|
-
justifyContent: 'center'
|
|
213
|
+
justifyContent: 'center',
|
|
212
214
|
},
|
|
213
215
|
fallbackText: {
|
|
214
216
|
marginTop: scale(4),
|
|
215
|
-
fontSize: RFValue(9)
|
|
216
|
-
}
|
|
217
|
+
fontSize: RFValue(9),
|
|
218
|
+
},
|
|
217
219
|
});
|
|
@@ -4,7 +4,13 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
StyleSheet,
|
|
9
|
+
View,
|
|
10
|
+
type StyleProp,
|
|
11
|
+
type TextStyle,
|
|
12
|
+
type ViewStyle,
|
|
13
|
+
} from 'react-native';
|
|
8
14
|
import { verticalScale } from 'react-native-size-matters';
|
|
9
15
|
import ShowAllButton, { type ShowAllButtonProps } from './ShowAllButton';
|
|
10
16
|
import { Text } from '../../../Text';
|
|
@@ -23,12 +29,16 @@ const NavigateToMore: React.FC<IProps> = ({
|
|
|
23
29
|
title,
|
|
24
30
|
titleStyle,
|
|
25
31
|
containerStyle,
|
|
26
|
-
showAllProps
|
|
32
|
+
showAllProps,
|
|
27
33
|
}): React.ReactElement => {
|
|
28
34
|
return (
|
|
29
35
|
<View style={[styles.container, containerStyle]}>
|
|
30
36
|
<View style={styles.titleWrapper}>
|
|
31
|
-
<Text
|
|
37
|
+
<Text
|
|
38
|
+
style={[styles.title, titleStyle]}
|
|
39
|
+
numberOfLines={1}
|
|
40
|
+
ellipsizeMode="tail"
|
|
41
|
+
>
|
|
32
42
|
{title}
|
|
33
43
|
</Text>
|
|
34
44
|
</View>
|
|
@@ -45,15 +55,15 @@ const styles = StyleSheet.create({
|
|
|
45
55
|
alignItems: 'center',
|
|
46
56
|
justifyContent: 'space-between',
|
|
47
57
|
marginBottom: verticalScale(6),
|
|
48
|
-
marginTop: verticalScale(1)
|
|
58
|
+
marginTop: verticalScale(1),
|
|
49
59
|
},
|
|
50
60
|
titleWrapper: {
|
|
51
61
|
flex: 1,
|
|
52
|
-
justifyContent: 'center'
|
|
62
|
+
justifyContent: 'center',
|
|
53
63
|
},
|
|
54
64
|
title: {
|
|
55
65
|
fontSize: RFValue(13),
|
|
56
66
|
fontWeight: '500',
|
|
57
|
-
textTransform: 'capitalize'
|
|
58
|
-
}
|
|
67
|
+
textTransform: 'capitalize',
|
|
68
|
+
},
|
|
59
69
|
});
|
|
@@ -3,9 +3,18 @@
|
|
|
3
3
|
* @lastModified Wed 25 Jun 2025 at 11:59 AM
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
|
|
6
|
+
import { useCallback } from 'react';
|
|
7
|
+
import {
|
|
8
|
+
TouchableOpacity,
|
|
9
|
+
StyleSheet,
|
|
10
|
+
type StyleProp,
|
|
11
|
+
type ViewStyle,
|
|
12
|
+
} from 'react-native';
|
|
13
|
+
import Animated, {
|
|
14
|
+
useSharedValue,
|
|
15
|
+
useAnimatedStyle,
|
|
16
|
+
withSpring,
|
|
17
|
+
} from 'react-native-reanimated';
|
|
9
18
|
import { scale, verticalScale } from 'react-native-size-matters';
|
|
10
19
|
import { Text } from '../../../Text';
|
|
11
20
|
import { useTheme } from '../../../../theme/hook/useTheme';
|
|
@@ -27,7 +36,7 @@ const NoContentFallback = ({
|
|
|
27
36
|
onRetry,
|
|
28
37
|
theme,
|
|
29
38
|
emoji = '😔',
|
|
30
|
-
style
|
|
39
|
+
style,
|
|
31
40
|
}: NoContentFallbackProps) => {
|
|
32
41
|
const { theme: appliedTheme } = useTheme(theme);
|
|
33
42
|
const scaleValue = useSharedValue(1);
|
|
@@ -41,22 +50,30 @@ const NoContentFallback = ({
|
|
|
41
50
|
}, [scaleValue]);
|
|
42
51
|
|
|
43
52
|
const animatedButtonStyle = useAnimatedStyle(() => ({
|
|
44
|
-
transform: [{ scale: scaleValue.value }]
|
|
53
|
+
transform: [{ scale: scaleValue.value }],
|
|
45
54
|
}));
|
|
46
55
|
|
|
47
56
|
return (
|
|
48
57
|
<Animated.View
|
|
49
|
-
style={[
|
|
58
|
+
style={[
|
|
59
|
+
styles.container,
|
|
60
|
+
style,
|
|
61
|
+
{ backgroundColor: appliedTheme.colors.background },
|
|
62
|
+
]}
|
|
50
63
|
accessibilityLabel="No content available"
|
|
51
64
|
accessibilityHint="Check back later or try again"
|
|
52
65
|
>
|
|
53
|
-
<Animated.Text
|
|
66
|
+
<Animated.Text
|
|
67
|
+
style={[styles.emoji, { color: appliedTheme.colors.textPrimary }]}
|
|
68
|
+
>
|
|
69
|
+
{emoji}
|
|
70
|
+
</Animated.Text>
|
|
54
71
|
<Text
|
|
55
72
|
style={[
|
|
56
73
|
styles.message,
|
|
57
74
|
{
|
|
58
|
-
color: appliedTheme.colors.textSecondary
|
|
59
|
-
}
|
|
75
|
+
color: appliedTheme.colors.textSecondary,
|
|
76
|
+
},
|
|
60
77
|
]}
|
|
61
78
|
>
|
|
62
79
|
{message}
|
|
@@ -70,8 +87,8 @@ const NoContentFallback = ({
|
|
|
70
87
|
styles.retryButton,
|
|
71
88
|
{
|
|
72
89
|
backgroundColor: appliedTheme.colors.primary,
|
|
73
|
-
borderColor: appliedTheme.colors.outline
|
|
74
|
-
}
|
|
90
|
+
borderColor: appliedTheme.colors.outline,
|
|
91
|
+
},
|
|
75
92
|
]}
|
|
76
93
|
accessibilityLabel={retryText}
|
|
77
94
|
accessibilityRole="button"
|
|
@@ -81,8 +98,8 @@ const NoContentFallback = ({
|
|
|
81
98
|
style={[
|
|
82
99
|
styles.retryText,
|
|
83
100
|
{
|
|
84
|
-
color: appliedTheme.colors.textPrimary
|
|
85
|
-
}
|
|
101
|
+
color: appliedTheme.colors.textPrimary,
|
|
102
|
+
},
|
|
86
103
|
]}
|
|
87
104
|
>
|
|
88
105
|
{retryText}
|
|
@@ -100,31 +117,31 @@ const styles = StyleSheet.create({
|
|
|
100
117
|
alignItems: 'center',
|
|
101
118
|
justifyContent: 'center',
|
|
102
119
|
paddingHorizontal: scale(20),
|
|
103
|
-
paddingVertical: verticalScale(40)
|
|
120
|
+
paddingVertical: verticalScale(40),
|
|
104
121
|
},
|
|
105
122
|
emoji: {
|
|
106
123
|
fontSize: RFValue(63),
|
|
107
124
|
marginBottom: verticalScale(16),
|
|
108
|
-
textAlign: 'center'
|
|
125
|
+
textAlign: 'center',
|
|
109
126
|
},
|
|
110
127
|
message: {
|
|
111
128
|
fontSize: RFValue(15),
|
|
112
129
|
textAlign: 'center',
|
|
113
130
|
fontWeight: '500',
|
|
114
131
|
lineHeight: verticalScale(22),
|
|
115
|
-
marginBottom: verticalScale(20)
|
|
132
|
+
marginBottom: verticalScale(20),
|
|
116
133
|
},
|
|
117
134
|
retryButton: {
|
|
118
135
|
paddingHorizontal: scale(24),
|
|
119
136
|
paddingVertical: verticalScale(12),
|
|
120
137
|
borderRadius: scale(8),
|
|
121
|
-
borderWidth: scale(1)
|
|
138
|
+
borderWidth: scale(1),
|
|
122
139
|
},
|
|
123
140
|
retryText: {
|
|
124
141
|
fontSize: RFValue(13),
|
|
125
142
|
fontWeight: '600',
|
|
126
|
-
textAlign: 'center'
|
|
127
|
-
}
|
|
143
|
+
textAlign: 'center',
|
|
144
|
+
},
|
|
128
145
|
});
|
|
129
146
|
|
|
130
147
|
export default NoContentFallback;
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
type GestureResponderEvent,
|
|
12
12
|
type StyleProp,
|
|
13
13
|
type TextStyle,
|
|
14
|
-
type ViewStyle
|
|
14
|
+
type ViewStyle,
|
|
15
15
|
} from 'react-native';
|
|
16
16
|
import { moderateScale, scale } from 'react-native-size-matters';
|
|
17
17
|
import { Text } from '../../../Text';
|
|
@@ -38,7 +38,7 @@ const ShowAllButton: React.FC<ShowAllButtonProps> = ({
|
|
|
38
38
|
iconPosition = 'right',
|
|
39
39
|
IconComponent,
|
|
40
40
|
textStyle,
|
|
41
|
-
containerStyle
|
|
41
|
+
containerStyle,
|
|
42
42
|
}): React.ReactElement => {
|
|
43
43
|
const icon = IconComponent ?? (
|
|
44
44
|
<View style={styles.iconWrapper}>
|
|
@@ -47,7 +47,11 @@ const ShowAllButton: React.FC<ShowAllButtonProps> = ({
|
|
|
47
47
|
);
|
|
48
48
|
|
|
49
49
|
return (
|
|
50
|
-
<TouchableOpacity
|
|
50
|
+
<TouchableOpacity
|
|
51
|
+
style={[styles.buttonContainer, containerStyle]}
|
|
52
|
+
onPress={onPress}
|
|
53
|
+
activeOpacity={0.7}
|
|
54
|
+
>
|
|
51
55
|
<View style={[styles.innerRow, { columnGap: moderateScale(gap) }]}>
|
|
52
56
|
{iconPosition === 'left' && icon}
|
|
53
57
|
<Text style={[styles.text, textStyle]}>{text}</Text>
|
|
@@ -62,22 +66,22 @@ export default ShowAllButton;
|
|
|
62
66
|
const styles = StyleSheet.create({
|
|
63
67
|
buttonContainer: {
|
|
64
68
|
justifyContent: 'center',
|
|
65
|
-
alignItems: 'center'
|
|
69
|
+
alignItems: 'center',
|
|
66
70
|
},
|
|
67
71
|
innerRow: {
|
|
68
72
|
flexDirection: 'row',
|
|
69
73
|
alignItems: 'center',
|
|
70
|
-
justifyContent: 'center'
|
|
74
|
+
justifyContent: 'center',
|
|
71
75
|
},
|
|
72
76
|
iconWrapper: {
|
|
73
77
|
justifyContent: 'center',
|
|
74
78
|
alignItems: 'center',
|
|
75
|
-
alignSelf: 'center'
|
|
79
|
+
alignSelf: 'center',
|
|
76
80
|
},
|
|
77
81
|
text: {
|
|
78
82
|
fontSize: RFValue(9),
|
|
79
83
|
fontWeight: '400',
|
|
80
84
|
textTransform: 'capitalize',
|
|
81
|
-
letterSpacing: 0.3
|
|
82
|
-
}
|
|
85
|
+
letterSpacing: 0.3,
|
|
86
|
+
},
|
|
83
87
|
});
|
|
@@ -5,7 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
import React, { useState } from 'react';
|
|
7
7
|
import { View, StyleSheet, type StyleProp, type ViewStyle } from 'react-native';
|
|
8
|
-
import type {
|
|
8
|
+
import type {
|
|
9
|
+
ImageStyle as FastImageStyle,
|
|
10
|
+
ResizeMode,
|
|
11
|
+
} from 'react-native-fast-image';
|
|
9
12
|
import FastImage from 'react-native-fast-image';
|
|
10
13
|
import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
11
14
|
import { scale } from 'react-native-size-matters';
|
|
@@ -31,7 +34,7 @@ export const ThumbnailCard: React.FC<ThumbnailCardProps> = ({
|
|
|
31
34
|
borderRadius = scale(6),
|
|
32
35
|
wrapperStyle,
|
|
33
36
|
imageStyle,
|
|
34
|
-
resizeMode = FastImage.resizeMode.cover
|
|
37
|
+
resizeMode = FastImage.resizeMode.cover,
|
|
35
38
|
}) => {
|
|
36
39
|
const [imageLoading, setImageLoading] = useState(true);
|
|
37
40
|
const [imageError, setImageError] = useState(false);
|
|
@@ -45,7 +48,7 @@ export const ThumbnailCard: React.FC<ThumbnailCardProps> = ({
|
|
|
45
48
|
borderRadius,
|
|
46
49
|
position: 'absolute',
|
|
47
50
|
top: 0,
|
|
48
|
-
left: 0
|
|
51
|
+
left: 0,
|
|
49
52
|
};
|
|
50
53
|
|
|
51
54
|
return (
|
|
@@ -55,9 +58,9 @@ export const ThumbnailCard: React.FC<ThumbnailCardProps> = ({
|
|
|
55
58
|
{
|
|
56
59
|
borderRadius,
|
|
57
60
|
backgroundColor: theme.colors.background,
|
|
58
|
-
shadowColor: theme.colors.shadow
|
|
61
|
+
shadowColor: theme.colors.shadow,
|
|
59
62
|
},
|
|
60
|
-
wrapperStyle
|
|
63
|
+
wrapperStyle,
|
|
61
64
|
]}
|
|
62
65
|
>
|
|
63
66
|
{showSkeleton && (
|
|
@@ -66,7 +69,9 @@ export const ThumbnailCard: React.FC<ThumbnailCardProps> = ({
|
|
|
66
69
|
backgroundColor={theme.colors.skeletonBaseColor}
|
|
67
70
|
highlightColor={theme.colors.skeletonHighlightColor}
|
|
68
71
|
>
|
|
69
|
-
<SkeletonPlaceholder.Item
|
|
72
|
+
<SkeletonPlaceholder.Item
|
|
73
|
+
style={[styles.skeleton, { borderRadius }]}
|
|
74
|
+
/>
|
|
70
75
|
</SkeletonPlaceholder>
|
|
71
76
|
</View>
|
|
72
77
|
)}
|
|
@@ -74,7 +79,11 @@ export const ThumbnailCard: React.FC<ThumbnailCardProps> = ({
|
|
|
74
79
|
{hasValidThumbnail && (
|
|
75
80
|
<FastImage
|
|
76
81
|
source={{ uri: thumbnailUri }}
|
|
77
|
-
style={[
|
|
82
|
+
style={[
|
|
83
|
+
fallbackImageStyle,
|
|
84
|
+
showSkeleton ? styles.hidden : styles.visible,
|
|
85
|
+
imageStyle,
|
|
86
|
+
]}
|
|
78
87
|
resizeMode={resizeMode}
|
|
79
88
|
onLoadStart={() => {
|
|
80
89
|
setImageLoading(true);
|
|
@@ -95,8 +104,8 @@ export const ThumbnailCard: React.FC<ThumbnailCardProps> = ({
|
|
|
95
104
|
{
|
|
96
105
|
borderRadius,
|
|
97
106
|
backgroundColor: theme.colors.errorContainer,
|
|
98
|
-
borderColor: theme.colors.error
|
|
99
|
-
}
|
|
107
|
+
borderColor: theme.colors.error,
|
|
108
|
+
},
|
|
100
109
|
]}
|
|
101
110
|
>
|
|
102
111
|
<ImageOff size={scale(18)} color={theme.colors.error} />
|
|
@@ -114,7 +123,7 @@ const styles = StyleSheet.create({
|
|
|
114
123
|
width: '100%',
|
|
115
124
|
aspectRatio: 16 / 9,
|
|
116
125
|
overflow: 'hidden',
|
|
117
|
-
position: 'relative'
|
|
126
|
+
position: 'relative',
|
|
118
127
|
},
|
|
119
128
|
skeletonWrapper: {
|
|
120
129
|
position: 'absolute',
|
|
@@ -122,17 +131,17 @@ const styles = StyleSheet.create({
|
|
|
122
131
|
left: 0,
|
|
123
132
|
width: '100%',
|
|
124
133
|
aspectRatio: 16 / 9,
|
|
125
|
-
overflow: 'hidden'
|
|
134
|
+
overflow: 'hidden',
|
|
126
135
|
},
|
|
127
136
|
skeleton: {
|
|
128
137
|
width: '100%',
|
|
129
|
-
aspectRatio: 16 / 9
|
|
138
|
+
aspectRatio: 16 / 9,
|
|
130
139
|
},
|
|
131
140
|
visible: {
|
|
132
|
-
opacity: 1
|
|
141
|
+
opacity: 1,
|
|
133
142
|
},
|
|
134
143
|
hidden: {
|
|
135
|
-
opacity: 0
|
|
144
|
+
opacity: 0,
|
|
136
145
|
},
|
|
137
146
|
fallback: {
|
|
138
147
|
position: 'absolute',
|
|
@@ -142,10 +151,10 @@ const styles = StyleSheet.create({
|
|
|
142
151
|
aspectRatio: 16 / 9,
|
|
143
152
|
borderWidth: scale(1),
|
|
144
153
|
alignItems: 'center',
|
|
145
|
-
justifyContent: 'center'
|
|
154
|
+
justifyContent: 'center',
|
|
146
155
|
},
|
|
147
156
|
fallbackText: {
|
|
148
157
|
marginTop: scale(4),
|
|
149
|
-
fontSize: RFValue(9)
|
|
150
|
-
}
|
|
158
|
+
fontSize: RFValue(9),
|
|
159
|
+
},
|
|
151
160
|
});
|
|
@@ -10,10 +10,13 @@ import {
|
|
|
10
10
|
type NativeScrollEvent,
|
|
11
11
|
type NativeSyntheticEvent,
|
|
12
12
|
type StyleProp,
|
|
13
|
-
type ViewStyle
|
|
13
|
+
type ViewStyle,
|
|
14
14
|
} from 'react-native';
|
|
15
15
|
import { scale } from 'react-native-size-matters';
|
|
16
|
-
import Animated, {
|
|
16
|
+
import Animated, {
|
|
17
|
+
type AnimatedStyle,
|
|
18
|
+
type SharedValue,
|
|
19
|
+
} from 'react-native-reanimated';
|
|
17
20
|
|
|
18
21
|
import SectionType from './Sections';
|
|
19
22
|
import type { IContentData, IGetSectionData, MoreFetchData } from '../../types';
|
|
@@ -46,8 +49,12 @@ export interface IContentProps {
|
|
|
46
49
|
InfiniteScrollLoaderComponent?: React.ReactNode;
|
|
47
50
|
onScroll?:
|
|
48
51
|
| ((event: NativeSyntheticEvent<NativeScrollEvent>) => void)
|
|
49
|
-
| SharedValue<
|
|
50
|
-
|
|
52
|
+
| SharedValue<
|
|
53
|
+
((event: NativeSyntheticEvent<NativeScrollEvent>) => void) | undefined
|
|
54
|
+
>;
|
|
55
|
+
contentContainerStyle?:
|
|
56
|
+
| StyleProp<ViewStyle>
|
|
57
|
+
| AnimatedStyle<StyleProp<ViewStyle>>;
|
|
51
58
|
onEndReached?: () => void;
|
|
52
59
|
theme?: AppTheme;
|
|
53
60
|
autoSwitchTheme?: boolean;
|
|
@@ -84,7 +91,7 @@ const ContentFooter = ({
|
|
|
84
91
|
isEmpty,
|
|
85
92
|
ErrorComponent,
|
|
86
93
|
InfiniteScrollIsLoading,
|
|
87
|
-
InfiniteScrollLoaderComponent
|
|
94
|
+
InfiniteScrollLoaderComponent,
|
|
88
95
|
}: FooterProps) => {
|
|
89
96
|
if (InfiniteScrollIsLoading) {
|
|
90
97
|
return (
|
|
@@ -93,7 +100,7 @@ const ContentFooter = ({
|
|
|
93
100
|
style={{
|
|
94
101
|
paddingVertical: scale(30),
|
|
95
102
|
alignItems: 'center',
|
|
96
|
-
justifyContent: 'center'
|
|
103
|
+
justifyContent: 'center',
|
|
97
104
|
}}
|
|
98
105
|
>
|
|
99
106
|
<ActivityIndicator size="small" />
|
|
@@ -123,11 +130,15 @@ export const Content: React.FC<IContentProps> = ({
|
|
|
123
130
|
sectionProps,
|
|
124
131
|
moreFetchData,
|
|
125
132
|
moreFetchDataHistory,
|
|
126
|
-
isLoading
|
|
133
|
+
isLoading,
|
|
127
134
|
}) => {
|
|
128
|
-
const sectionData = useMemo<IGetSectionData[]>(
|
|
135
|
+
const sectionData = useMemo<IGetSectionData[]>(
|
|
136
|
+
() => contentData?.sectionData ?? [],
|
|
137
|
+
[contentData?.sectionData]
|
|
138
|
+
);
|
|
129
139
|
const headerComponent = useMemo(() => {
|
|
130
|
-
if (!contentData?.category || contentData.category.length === 0)
|
|
140
|
+
if (!contentData?.category || contentData.category.length === 0)
|
|
141
|
+
return null;
|
|
131
142
|
|
|
132
143
|
return (
|
|
133
144
|
<CategoryCard
|
|
@@ -140,9 +151,21 @@ export const Content: React.FC<IContentProps> = ({
|
|
|
140
151
|
key={'category'}
|
|
141
152
|
/>
|
|
142
153
|
);
|
|
143
|
-
}, [
|
|
144
|
-
|
|
145
|
-
|
|
154
|
+
}, [
|
|
155
|
+
contentData?.category,
|
|
156
|
+
events?.onPressCategory,
|
|
157
|
+
events?.activeCategory,
|
|
158
|
+
isLoading?.category,
|
|
159
|
+
theme,
|
|
160
|
+
]);
|
|
161
|
+
|
|
162
|
+
const renderItem = ({
|
|
163
|
+
item,
|
|
164
|
+
index,
|
|
165
|
+
}: {
|
|
166
|
+
item: IGetSectionData | null;
|
|
167
|
+
index: number;
|
|
168
|
+
}) => {
|
|
146
169
|
if (!item) return null;
|
|
147
170
|
|
|
148
171
|
const isDummy = item?._id?.startsWith('dummy');
|
|
@@ -160,7 +183,7 @@ export const Content: React.FC<IContentProps> = ({
|
|
|
160
183
|
data={{
|
|
161
184
|
sectionData: item.content || null,
|
|
162
185
|
historyData: contentData.historyData,
|
|
163
|
-
category: contentData.category
|
|
186
|
+
category: contentData.category,
|
|
164
187
|
}}
|
|
165
188
|
name={item?.name || `Section ${index}`}
|
|
166
189
|
theme={theme}
|
|
@@ -170,7 +193,7 @@ export const Content: React.FC<IContentProps> = ({
|
|
|
170
193
|
isLoading={{
|
|
171
194
|
section: isLoadingItem,
|
|
172
195
|
history: isLoading?.history,
|
|
173
|
-
category: isLoading?.category
|
|
196
|
+
category: isLoading?.category,
|
|
174
197
|
}}
|
|
175
198
|
sectionProps={sectionProps}
|
|
176
199
|
moreFetchDataHistory={moreFetchDataHistory}
|
|
@@ -179,7 +202,8 @@ export const Content: React.FC<IContentProps> = ({
|
|
|
179
202
|
);
|
|
180
203
|
};
|
|
181
204
|
|
|
182
|
-
const isEmpty =
|
|
205
|
+
const isEmpty =
|
|
206
|
+
!isLoading?.section && (!sectionData || sectionData.length === 0);
|
|
183
207
|
|
|
184
208
|
return (
|
|
185
209
|
<AnimatedFlatList
|
|
@@ -204,9 +228,9 @@ export const Content: React.FC<IContentProps> = ({
|
|
|
204
228
|
onEndReachedThreshold={0.7}
|
|
205
229
|
contentContainerStyle={[
|
|
206
230
|
{
|
|
207
|
-
paddingBottom: scale(100)
|
|
231
|
+
paddingBottom: scale(100),
|
|
208
232
|
},
|
|
209
|
-
contentContainerStyle
|
|
233
|
+
contentContainerStyle,
|
|
210
234
|
]}
|
|
211
235
|
/>
|
|
212
236
|
);
|