@zezosoft/zezo-ott-react-native-ui-kit 1.1.1 → 1.1.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/lib/module/Styles/globalStyles.js +0 -5
- package/lib/module/Styles/globalStyles.js.map +1 -1
- package/lib/module/components/Auth/AuthProvider/AuthProvider.js +64 -40
- package/lib/module/components/Auth/AuthProvider/AuthProvider.js.map +1 -1
- package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js +5 -2
- package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js.map +1 -1
- package/lib/module/components/Auth/Login/LoginWithEmail.js +17 -11
- package/lib/module/components/Auth/Login/LoginWithEmail.js.map +1 -1
- package/lib/module/components/Auth/Login/LoginWithPhone.js +12 -6
- package/lib/module/components/Auth/Login/LoginWithPhone.js.map +1 -1
- package/lib/module/components/Auth/OTP/OTP.js +7 -4
- package/lib/module/components/Auth/OTP/OTP.js.map +1 -1
- package/lib/module/components/Auth/QrLogin/QrLogin.js +357 -144
- package/lib/module/components/Auth/QrLogin/QrLogin.js.map +1 -1
- package/lib/module/components/Auth/QrLogin/components/QrViewArea.js +227 -110
- package/lib/module/components/Auth/QrLogin/components/QrViewArea.js.map +1 -1
- package/lib/module/components/Auth/SignUp/SignUp.js +19 -13
- package/lib/module/components/Auth/SignUp/SignUp.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/SplashScreen.js +54 -36
- package/lib/module/components/Auth/SplashScreen/SplashScreen.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashImage/SplashImage.js +29 -11
- package/lib/module/components/Auth/SplashScreen/components/SplashImage/SplashImage.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.js +13 -7
- package/lib/module/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js +33 -21
- package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js.map +1 -1
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js +26 -20
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js.map +1 -1
- package/lib/module/components/BlogView/BlogView.js +36 -20
- package/lib/module/components/BlogView/BlogView.js.map +1 -1
- package/lib/module/components/Button/BackBtn.js +24 -20
- package/lib/module/components/Button/BackBtn.js.map +1 -1
- package/lib/module/components/Button/PrimaryBtn.js +19 -13
- package/lib/module/components/Button/PrimaryBtn.js.map +1 -1
- package/lib/module/components/Button/SecondaryBtn.js +19 -13
- package/lib/module/components/Button/SecondaryBtn.js.map +1 -1
- package/lib/module/components/Button/TextButton.js +19 -13
- package/lib/module/components/Button/TextButton.js.map +1 -1
- package/lib/module/components/Content/Card/Category/Category.js +151 -46
- package/lib/module/components/Content/Card/Category/Category.js.map +1 -1
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js +237 -108
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/Styles/One.js +200 -133
- package/lib/module/components/Content/Card/Sliders/Styles/One.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js +192 -84
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Five.js +131 -48
- package/lib/module/components/Content/Card/Styles/Five.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Four.js +126 -59
- package/lib/module/components/Content/Card/Styles/Four.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/One.js +125 -50
- package/lib/module/components/Content/Card/Styles/One.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/RotateInOut.js +143 -65
- package/lib/module/components/Content/Card/Styles/RotateInOut.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Six.js +207 -115
- package/lib/module/components/Content/Card/Styles/Six.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Three.js +134 -79
- package/lib/module/components/Content/Card/Styles/Three.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/TopTen.js +186 -171
- package/lib/module/components/Content/Card/Styles/TopTen.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Two.js +144 -64
- package/lib/module/components/Content/Card/Styles/Two.js.map +1 -1
- package/lib/module/components/Content/Card/components/AdsPoster.js +162 -0
- package/lib/module/components/Content/Card/components/AdsPoster.js.map +1 -0
- package/lib/module/components/Content/Card/components/CardPoster.js +139 -93
- package/lib/module/components/Content/Card/components/CardPoster.js.map +1 -1
- package/lib/module/components/Content/Card/components/RentOrBuyIcon.js +18 -17
- package/lib/module/components/Content/Card/components/RentOrBuyIcon.js.map +1 -1
- package/lib/module/components/Content/Card/components/ThumbnailCard.js +78 -28
- package/lib/module/components/Content/Card/components/ThumbnailCard.js.map +1 -1
- package/lib/module/components/Content/Card/components/index.js +4 -0
- package/lib/module/components/Content/Card/components/index.js.map +1 -0
- package/lib/module/components/Content/Content.js +99 -40
- package/lib/module/components/Content/Content.js.map +1 -1
- package/lib/module/components/Content/Sections.js +63 -34
- package/lib/module/components/Content/Sections.js.map +1 -1
- package/lib/module/components/ContentView/ContentView.js +70 -41
- package/lib/module/components/ContentView/ContentView.js.map +1 -1
- package/lib/module/components/ContentView/MoreContentList.js +74 -40
- package/lib/module/components/ContentView/MoreContentList.js.map +1 -1
- package/lib/module/components/ContentView/components/AboutSection.js +40 -19
- package/lib/module/components/ContentView/components/AboutSection.js.map +1 -1
- package/lib/module/components/ContentView/components/CastCard.js +6 -7
- package/lib/module/components/ContentView/components/CastCard.js.map +1 -1
- package/lib/module/components/ContentView/components/EpisodeCard.js +2 -2
- package/lib/module/components/ContentView/components/EpisodeCard.js.map +1 -1
- package/lib/module/components/ContentView/components/GenreTags.js +25 -13
- package/lib/module/components/ContentView/components/GenreTags.js.map +1 -1
- package/lib/module/components/ContentView/components/HeroBanner.js +39 -11
- package/lib/module/components/ContentView/components/HeroBanner.js.map +1 -1
- package/lib/module/components/ContentView/components/MiniInfo.js +84 -77
- package/lib/module/components/ContentView/components/MiniInfo.js.map +1 -1
- package/lib/module/components/ContentView/components/PlayButton.js +11 -7
- package/lib/module/components/ContentView/components/PlayButton.js.map +1 -1
- package/lib/module/components/ContentView/components/Title.js +12 -12
- package/lib/module/components/ContentView/components/Title.js.map +1 -1
- package/lib/module/components/ContentView/components/TrailerButton.js +12 -7
- package/lib/module/components/ContentView/components/TrailerButton.js.map +1 -1
- package/lib/module/components/Fallbacks/NoContentFallback.js +27 -22
- package/lib/module/components/Fallbacks/NoContentFallback.js.map +1 -1
- package/lib/module/components/Fallbacks/NotFoundFallback.js +6 -4
- package/lib/module/components/Fallbacks/NotFoundFallback.js.map +1 -1
- package/lib/module/components/Headers/AppHeader.js +22 -13
- package/lib/module/components/Headers/AppHeader.js.map +1 -1
- package/lib/module/components/Headers/Three.js +6 -5
- package/lib/module/components/Headers/Three.js.map +1 -1
- package/lib/module/components/Headers/Two.js +19 -14
- package/lib/module/components/Headers/Two.js.map +1 -1
- package/lib/module/components/Input/InputOne.js +46 -31
- package/lib/module/components/Input/InputOne.js.map +1 -1
- package/lib/module/components/Loader/Loader.js +2 -2
- package/lib/module/components/Loader/Loader.js.map +1 -1
- package/lib/module/components/Logo/Logo.js +17 -14
- package/lib/module/components/Logo/Logo.js.map +1 -1
- package/lib/module/components/Search/One.js +2 -1
- package/lib/module/components/Search/One.js.map +1 -1
- package/lib/module/components/Search/components/SearchCard.js +15 -19
- package/lib/module/components/Search/components/SearchCard.js.map +1 -1
- package/lib/module/components/Settings/AppSettings.js +97 -62
- package/lib/module/components/Settings/AppSettings.js.map +1 -1
- package/lib/module/components/Subscription/SubOne.js +313 -254
- package/lib/module/components/Subscription/SubOne.js.map +1 -1
- package/lib/module/components/Text/Text.js +15 -12
- package/lib/module/components/Text/Text.js.map +1 -1
- package/lib/module/components/User/DeviceSessions/DeviceSessions.js +25 -23
- package/lib/module/components/User/DeviceSessions/DeviceSessions.js.map +1 -1
- package/lib/module/components/User/ProfileUpdate/ProfileUpdate.js +23 -18
- package/lib/module/components/User/ProfileUpdate/ProfileUpdate.js.map +1 -1
- package/lib/module/components/User/PurchaseHistory/PurchaseHistory.js +38 -24
- package/lib/module/components/User/PurchaseHistory/PurchaseHistory.js.map +1 -1
- package/lib/module/components/User/WatchHistory/WatchHistory.js +21 -14
- package/lib/module/components/User/WatchHistory/WatchHistory.js.map +1 -1
- package/lib/module/components/User/WatchLater/WatchLater.js +30 -21
- package/lib/module/components/User/WatchLater/WatchLater.js.map +1 -1
- package/lib/module/components/User/components/UserAvatar.js +38 -19
- package/lib/module/components/User/components/UserAvatar.js.map +1 -1
- package/lib/module/components/User/components/UserSection.js +37 -17
- package/lib/module/components/User/components/UserSection.js.map +1 -1
- package/lib/module/components/View/View.js +7 -4
- package/lib/module/components/View/View.js.map +1 -1
- package/lib/module/components/index.js +0 -1
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/constants/dummySections.js +44 -4
- package/lib/module/constants/dummySections.js.map +1 -1
- package/lib/module/hooks/Images/index.js +5 -0
- package/lib/module/hooks/Images/index.js.map +1 -0
- package/lib/module/hooks/Images/useImageLoader.js +168 -0
- package/lib/module/hooks/Images/useImageLoader.js.map +1 -0
- package/lib/module/hooks/Images/useImageValidation.js +36 -0
- package/lib/module/hooks/Images/useImageValidation.js.map +1 -0
- package/lib/module/hooks/index.js +20 -0
- package/lib/module/hooks/index.js.map +1 -0
- package/lib/module/hooks/useAdTracking.js +270 -0
- package/lib/module/hooks/useAdTracking.js.map +1 -0
- package/lib/module/hooks/useCards.js +164 -0
- package/lib/module/hooks/useCards.js.map +1 -0
- package/lib/module/hooks/useDebounce.js +25 -6
- package/lib/module/hooks/useDebounce.js.map +1 -1
- package/lib/module/hooks/useKeyboard.js +7 -4
- package/lib/module/hooks/useKeyboard.js.map +1 -1
- package/lib/module/hooks/useNavigationMode.js +10 -4
- package/lib/module/hooks/useNavigationMode.js.map +1 -1
- package/lib/module/hooks/usePaginatedSection.js +12 -7
- package/lib/module/hooks/usePaginatedSection.js.map +1 -1
- package/lib/module/hooks/usePrevious.js +30 -0
- package/lib/module/hooks/usePrevious.js.map +1 -0
- package/lib/module/hooks/useSafeCallback.js +33 -0
- package/lib/module/hooks/useSafeCallback.js.map +1 -0
- package/lib/module/hooks/useSkeletonItems.js +33 -0
- package/lib/module/hooks/useSkeletonItems.js.map +1 -0
- package/lib/module/hooks/useSplashCache.js +2 -1
- package/lib/module/hooks/useSplashCache.js.map +1 -1
- package/lib/module/hooks/useThemeColors.js +33 -0
- package/lib/module/hooks/useThemeColors.js.map +1 -0
- package/lib/module/theme/ThemeProvider.js +17 -11
- package/lib/module/theme/ThemeProvider.js.map +1 -1
- package/lib/module/theme/hook/useInternalTheme.js +18 -11
- package/lib/module/theme/hook/useInternalTheme.js.map +1 -1
- package/lib/module/theme/hook/useThemeStatusBar.js +10 -4
- package/lib/module/theme/hook/useThemeStatusBar.js.map +1 -1
- package/lib/typescript/src/Styles/globalStyles.d.ts +0 -5
- package/lib/typescript/src/Styles/globalStyles.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/AuthProvider/AuthProvider.d.ts.map +1 -1
- 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/QrLogin/QrLogin.d.ts +2 -15
- package/lib/typescript/src/components/Auth/QrLogin/QrLogin.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/QrLogin/components/QrViewArea.d.ts +0 -1
- package/lib/typescript/src/components/Auth/QrLogin/components/QrViewArea.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.map +1 -1
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.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.map +1 -1
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayout.d.ts +1 -1
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayout.d.ts.map +1 -1
- package/lib/typescript/src/components/BlogView/BlogView.d.ts +2 -1
- 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/PrimaryBtn.d.ts +2 -1
- package/lib/typescript/src/components/Button/PrimaryBtn.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/SecondaryBtn.d.ts +2 -1
- package/lib/typescript/src/components/Button/SecondaryBtn.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/TextButton.d.ts +2 -2
- package/lib/typescript/src/components/Button/TextButton.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/index.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.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 +13 -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 +13 -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 +15 -3
- 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 +13 -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 +1 -0
- 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 +13 -5
- 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 +1 -0
- 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 +13 -1
- package/lib/typescript/src/components/Content/Card/Styles/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/AdsPoster.d.ts +26 -0
- package/lib/typescript/src/components/Content/Card/components/AdsPoster.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts +3 -1
- package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/RentOrBuyIcon.d.ts +2 -2
- package/lib/typescript/src/components/Content/Card/components/RentOrBuyIcon.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/ThumbnailCard.d.ts +2 -0
- package/lib/typescript/src/components/Content/Card/components/ThumbnailCard.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/index.d.ts +2 -0
- package/lib/typescript/src/components/Content/Card/components/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/index.d.ts +76 -6
- package/lib/typescript/src/components/Content/Card/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Content.d.ts +6 -3
- package/lib/typescript/src/components/Content/Content.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Sections.d.ts +22 -8
- package/lib/typescript/src/components/Content/Sections.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/ContentView.d.ts +6 -1
- 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 +2 -1
- package/lib/typescript/src/components/ContentView/components/AboutSection.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/CastCard.d.ts +6 -1
- package/lib/typescript/src/components/ContentView/components/CastCard.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts +2 -1
- 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 +2 -1
- package/lib/typescript/src/components/ContentView/components/HeroBanner.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/MiniInfo.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/components/MiniInfo.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/PlayButton.d.ts +2 -1
- 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 +2 -1
- package/lib/typescript/src/components/ContentView/components/TrailerButton.d.ts.map +1 -1
- package/lib/typescript/src/components/Fallbacks/NoContentFallback.d.ts +2 -1
- package/lib/typescript/src/components/Fallbacks/NoContentFallback.d.ts.map +1 -1
- package/lib/typescript/src/components/Fallbacks/NotFoundFallback.d.ts +1 -1
- package/lib/typescript/src/components/Fallbacks/NotFoundFallback.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/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/Headers/index.d.ts +2 -2
- package/lib/typescript/src/components/Input/Input.d.ts +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/Loader/Loader.d.ts.map +1 -1
- package/lib/typescript/src/components/Logo/Logo.d.ts +2 -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/SearchCard.d.ts +2 -5
- package/lib/typescript/src/components/Search/components/SearchCard.d.ts.map +1 -1
- package/lib/typescript/src/components/Search/index.d.ts +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.map +1 -1
- package/lib/typescript/src/components/Subscription/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Text/Text.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/ProfileUpdate/ProfileUpdate.d.ts +1 -1
- package/lib/typescript/src/components/User/ProfileUpdate/ProfileUpdate.d.ts.map +1 -1
- package/lib/typescript/src/components/User/PurchaseHistory/PurchaseHistory.d.ts +1 -1
- package/lib/typescript/src/components/User/PurchaseHistory/PurchaseHistory.d.ts.map +1 -1
- package/lib/typescript/src/components/User/WatchHistory/WatchHistory.d.ts +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 +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 +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 +1 -1
- package/lib/typescript/src/components/User/components/UserSection.d.ts.map +1 -1
- package/lib/typescript/src/components/View/View.d.ts +2 -0
- package/lib/typescript/src/components/View/View.d.ts.map +1 -1
- package/lib/typescript/src/components/index.d.ts +0 -1
- package/lib/typescript/src/components/index.d.ts.map +1 -1
- package/lib/typescript/src/constants/dummySections.d.ts +5 -0
- package/lib/typescript/src/constants/dummySections.d.ts.map +1 -1
- package/lib/typescript/src/hooks/Images/index.d.ts +3 -0
- package/lib/typescript/src/hooks/Images/index.d.ts.map +1 -0
- package/lib/typescript/src/hooks/Images/useImageLoader.d.ts +36 -0
- package/lib/typescript/src/hooks/Images/useImageLoader.d.ts.map +1 -0
- package/lib/typescript/src/hooks/Images/useImageValidation.d.ts +17 -0
- package/lib/typescript/src/hooks/Images/useImageValidation.d.ts.map +1 -0
- package/lib/typescript/src/hooks/index.d.ts +17 -0
- package/lib/typescript/src/hooks/index.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useAdTracking.d.ts +39 -0
- package/lib/typescript/src/hooks/useAdTracking.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useCards.d.ts +36 -0
- package/lib/typescript/src/hooks/useCards.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useDebounce.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useKeyboard.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useNavigationMode.d.ts.map +1 -1
- package/lib/typescript/src/hooks/usePaginatedSection.d.ts +12 -2
- package/lib/typescript/src/hooks/usePaginatedSection.d.ts.map +1 -1
- package/lib/typescript/src/hooks/usePrevious.d.ts +12 -0
- package/lib/typescript/src/hooks/usePrevious.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useSafeCallback.d.ts +15 -0
- package/lib/typescript/src/hooks/useSafeCallback.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useSkeletonItems.d.ts +11 -0
- package/lib/typescript/src/hooks/useSkeletonItems.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useSplashCache.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useThemeColors.d.ts +27 -0
- package/lib/typescript/src/hooks/useThemeColors.d.ts.map +1 -0
- package/lib/typescript/src/theme/ThemeProvider.d.ts.map +1 -1
- package/lib/typescript/src/theme/hook/useInternalTheme.d.ts.map +1 -1
- package/lib/typescript/src/theme/hook/useThemeStatusBar.d.ts.map +1 -1
- package/lib/typescript/src/types/sections/index.d.ts +7 -4
- package/lib/typescript/src/types/sections/index.d.ts.map +1 -1
- package/package.json +6 -3
- package/src/Styles/globalStyles.ts +0 -5
- package/src/components/Auth/AuthProvider/AuthProvider.tsx +288 -212
- package/src/components/Auth/ForgotPassword/ForgotPassword.tsx +11 -4
- package/src/components/Auth/Login/LoginWithEmail.tsx +266 -238
- package/src/components/Auth/Login/LoginWithPhone.tsx +18 -6
- package/src/components/Auth/OTP/OTP.tsx +21 -5
- package/src/components/Auth/QrLogin/QrLogin.tsx +477 -177
- package/src/components/Auth/QrLogin/components/QrViewArea.tsx +349 -139
- package/src/components/Auth/SignUp/SignUp.tsx +312 -293
- package/src/components/Auth/SplashScreen/SplashScreen.tsx +186 -131
- package/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.tsx +32 -15
- package/src/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.tsx +11 -5
- package/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.tsx +34 -18
- package/src/components/BackgroundLayout/BackgroundLayout.tsx +43 -37
- package/src/components/BlogView/BlogView.tsx +66 -30
- package/src/components/Button/BackBtn.tsx +64 -34
- package/src/components/Button/PrimaryBtn.tsx +42 -25
- package/src/components/Button/SecondaryBtn.tsx +41 -25
- package/src/components/Button/TextButton.tsx +54 -32
- package/src/components/Content/Card/Category/Category.tsx +189 -64
- package/src/components/Content/Card/NowWatching/NowWatching.tsx +281 -136
- package/src/components/Content/Card/Sliders/Styles/One.tsx +270 -158
- package/src/components/Content/Card/Sliders/Styles/Two.tsx +239 -90
- package/src/components/Content/Card/Styles/Five.tsx +161 -62
- package/src/components/Content/Card/Styles/Four.tsx +164 -85
- package/src/components/Content/Card/Styles/One.tsx +161 -71
- package/src/components/Content/Card/Styles/RotateInOut.tsx +162 -67
- package/src/components/Content/Card/Styles/Six.tsx +242 -142
- package/src/components/Content/Card/Styles/Three.tsx +166 -133
- package/src/components/Content/Card/Styles/TopTen.tsx +230 -191
- package/src/components/Content/Card/Styles/Two.tsx +182 -79
- package/src/components/Content/Card/components/AdsPoster.tsx +202 -0
- package/src/components/Content/Card/components/CardPoster.tsx +166 -105
- package/src/components/Content/Card/components/RentOrBuyIcon.tsx +58 -38
- package/src/components/Content/Card/components/ThumbnailCard.tsx +122 -47
- package/src/components/Content/Card/components/index.ts +1 -0
- package/src/components/Content/Content.tsx +211 -106
- package/src/components/Content/Sections.tsx +148 -51
- package/src/components/ContentView/ContentView.tsx +194 -128
- package/src/components/ContentView/MoreContentList.tsx +215 -151
- package/src/components/ContentView/components/AboutSection.tsx +132 -93
- package/src/components/ContentView/components/CastCard.tsx +148 -138
- package/src/components/ContentView/components/EpisodeCard.tsx +160 -155
- package/src/components/ContentView/components/GenreTags.tsx +68 -53
- package/src/components/ContentView/components/HeroBanner.tsx +326 -284
- package/src/components/ContentView/components/MiniInfo.tsx +181 -159
- package/src/components/ContentView/components/PlayButton.tsx +27 -16
- package/src/components/ContentView/components/Title.tsx +89 -72
- package/src/components/ContentView/components/TrailerButton.tsx +35 -22
- package/src/components/Fallbacks/NoContentFallback.tsx +107 -103
- package/src/components/Fallbacks/NotFoundFallback.tsx +12 -4
- package/src/components/Headers/AppHeader.tsx +42 -26
- package/src/components/Headers/Three.tsx +12 -8
- package/src/components/Headers/Two.tsx +31 -10
- package/src/components/Input/InputOne.tsx +136 -108
- package/src/components/Loader/Loader.tsx +2 -2
- package/src/components/Logo/Logo.tsx +43 -27
- package/src/components/Search/One.tsx +2 -4
- package/src/components/Search/components/SearchCard.tsx +19 -13
- package/src/components/Settings/AppSettings.tsx +217 -128
- package/src/components/Subscription/SubOne.tsx +394 -317
- package/src/components/Text/Text.tsx +33 -22
- package/src/components/User/DeviceSessions/DeviceSessions.tsx +129 -102
- package/src/components/User/ProfileUpdate/ProfileUpdate.tsx +36 -17
- package/src/components/User/PurchaseHistory/PurchaseHistory.tsx +194 -140
- package/src/components/User/WatchHistory/WatchHistory.tsx +63 -36
- package/src/components/User/WatchLater/WatchLater.tsx +119 -81
- package/src/components/User/components/UserAvatar.tsx +49 -15
- package/src/components/User/components/UserSection.tsx +71 -37
- package/src/components/View/View.tsx +10 -2
- package/src/components/index.ts +0 -1
- package/src/constants/dummySections.ts +48 -1
- package/src/hooks/Images/index.ts +2 -0
- package/src/hooks/Images/useImageLoader.ts +206 -0
- package/src/hooks/Images/useImageValidation.ts +36 -0
- package/src/hooks/index.ts +17 -0
- package/src/hooks/useAdTracking.ts +349 -0
- package/src/hooks/useCards.ts +228 -0
- package/src/hooks/useDebounce.ts +25 -6
- package/src/hooks/useKeyboard.ts +12 -5
- package/src/hooks/useNavigationMode.ts +16 -5
- package/src/hooks/usePaginatedSection.ts +27 -8
- package/src/hooks/usePrevious.ts +28 -0
- package/src/hooks/useSafeCallback.ts +43 -0
- package/src/hooks/useSkeletonItems.ts +30 -0
- package/src/hooks/useSplashCache.ts +2 -1
- package/src/hooks/useThemeColors.ts +51 -0
- package/src/theme/ThemeProvider.tsx +25 -9
- package/src/theme/hook/useInternalTheme.ts +19 -13
- package/src/theme/hook/useThemeStatusBar.ts +14 -5
- package/src/types/sections/index.ts +7 -4
|
@@ -5,26 +5,22 @@
|
|
|
5
5
|
* @lastModified Mon 30 Jun 2025 at 10:46 PM
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React, { useRef, useLayoutEffect, useCallback, useMemo, useState
|
|
9
|
-
import { View, FlatList, TouchableOpacity, StyleSheet, Dimensions, InteractionManager } from 'react-native';
|
|
8
|
+
import React, { useRef, useLayoutEffect, useEffect, useCallback, useMemo, useState } from 'react';
|
|
9
|
+
import { View, FlatList, TouchableOpacity, StyleSheet, Dimensions, InteractionManager, Platform, Vibration } from 'react-native';
|
|
10
10
|
import { Text } from "../../../Text/index.js";
|
|
11
11
|
import { useInternalTheme } from "../../../../theme/hook/useInternalTheme.js";
|
|
12
12
|
import { scale, verticalScale } from 'react-native-size-matters';
|
|
13
13
|
import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
14
14
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
15
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
15
|
const ITEM_WIDTH = scale(80);
|
|
17
16
|
const CONTAINER_PADDING = scale(14);
|
|
18
17
|
const {
|
|
19
18
|
width: SCREEN_WIDTH
|
|
20
19
|
} = Dimensions.get('window');
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}, [value]);
|
|
26
|
-
return ref.current;
|
|
27
|
-
}
|
|
20
|
+
import { usePrevious } from "../../../../hooks/usePrevious.js";
|
|
21
|
+
import { useSkeletonItems } from "../../../../hooks/useSkeletonItems.js";
|
|
22
|
+
import { debounce } from 'lodash';
|
|
23
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
24
|
const CategoryCard = /*#__PURE__*/React.memo(({
|
|
29
25
|
category = [],
|
|
30
26
|
activeCategory,
|
|
@@ -38,10 +34,50 @@ const CategoryCard = /*#__PURE__*/React.memo(({
|
|
|
38
34
|
} = useInternalTheme(theme);
|
|
39
35
|
const flatListRef = useRef(null);
|
|
40
36
|
const [itemWidths, setItemWidths] = useState([]);
|
|
37
|
+
const isScrollingRef = useRef(false);
|
|
38
|
+
const lastPressedIndexRef = useRef(null);
|
|
39
|
+
|
|
40
|
+
// Memoize theme colors
|
|
41
|
+
const themeColors = useMemo(() => ({
|
|
42
|
+
primary: appliedTheme.colors.primary,
|
|
43
|
+
outline: appliedTheme.colors.outline,
|
|
44
|
+
buttonText: appliedTheme.colors.buttonText,
|
|
45
|
+
textPrimary: appliedTheme.colors.textPrimary,
|
|
46
|
+
skeletonBaseColor: appliedTheme.colors.skeletonBaseColor,
|
|
47
|
+
skeletonHighlightColor: appliedTheme.colors.skeletonHighlightColor
|
|
48
|
+
}), [appliedTheme.colors]);
|
|
41
49
|
const selectedCategory = useMemo(() => activeCategory || category?.[0] || null, [activeCategory, category]);
|
|
42
50
|
const prevCategoryId = usePrevious(selectedCategory?._id);
|
|
51
|
+
|
|
52
|
+
// Memoize skeleton items
|
|
53
|
+
const skeletonItems = useSkeletonItems(5);
|
|
54
|
+
|
|
55
|
+
// Memoize skeleton item style
|
|
56
|
+
const skeletonItemStyle = useMemo(() => ({
|
|
57
|
+
width: ITEM_WIDTH - scale(20),
|
|
58
|
+
height: verticalScale(26),
|
|
59
|
+
borderRadius: scale(8),
|
|
60
|
+
marginRight: scale(8)
|
|
61
|
+
}), []);
|
|
62
|
+
|
|
63
|
+
// Memoize list container style with flexDirection
|
|
64
|
+
const listContainerStyle = useMemo(() => [styles.listContainer, {
|
|
65
|
+
flexDirection: 'row'
|
|
66
|
+
}], []);
|
|
67
|
+
|
|
68
|
+
// Haptic feedback utility
|
|
69
|
+
const triggerHapticFeedback = useCallback(() => {
|
|
70
|
+
if (Platform.OS === 'ios') {
|
|
71
|
+
// iOS haptic feedback (light impact)
|
|
72
|
+
Vibration.vibrate(1);
|
|
73
|
+
} else if (Platform.OS === 'android') {
|
|
74
|
+
// Android haptic feedback (short vibration)
|
|
75
|
+
Vibration.vibrate(10);
|
|
76
|
+
}
|
|
77
|
+
}, []);
|
|
43
78
|
const scrollToCategory = useCallback((index, animated) => {
|
|
44
|
-
if (!flatListRef.current || index < 0 || index >= category.length) return;
|
|
79
|
+
if (!flatListRef.current || index < 0 || index >= category.length || isScrollingRef.current) return;
|
|
80
|
+
isScrollingRef.current = true;
|
|
45
81
|
const RIGHT_SCROLL_BIAS = scale(40);
|
|
46
82
|
const offset = itemWidths.length ? itemWidths.slice(0, index).reduce((sum, w) => sum + w, 0) + (itemWidths[index] ?? ITEM_WIDTH) / 2 - SCREEN_WIDTH / 2 + RIGHT_SCROLL_BIAS : index * ITEM_WIDTH + ITEM_WIDTH / 2 - SCREEN_WIDTH / 2 + RIGHT_SCROLL_BIAS;
|
|
47
83
|
InteractionManager.runAfterInteractions(() => {
|
|
@@ -49,8 +85,28 @@ const CategoryCard = /*#__PURE__*/React.memo(({
|
|
|
49
85
|
offset: Math.max(0, offset),
|
|
50
86
|
animated
|
|
51
87
|
});
|
|
88
|
+
// Reset scrolling flag after animation completes
|
|
89
|
+
if (animated) {
|
|
90
|
+
setTimeout(() => {
|
|
91
|
+
isScrollingRef.current = false;
|
|
92
|
+
}, 300);
|
|
93
|
+
} else {
|
|
94
|
+
isScrollingRef.current = false;
|
|
95
|
+
}
|
|
52
96
|
});
|
|
53
97
|
}, [category, itemWidths]);
|
|
98
|
+
|
|
99
|
+
// Debounced scroll function to prevent rapid scrolling
|
|
100
|
+
const debouncedScrollToCategory = useMemo(() => debounce((index, animated) => {
|
|
101
|
+
scrollToCategory(index, animated);
|
|
102
|
+
}, 100), [scrollToCategory]);
|
|
103
|
+
|
|
104
|
+
// Cleanup debounced function on unmount
|
|
105
|
+
useEffect(() => {
|
|
106
|
+
return () => {
|
|
107
|
+
debouncedScrollToCategory.cancel();
|
|
108
|
+
};
|
|
109
|
+
}, [debouncedScrollToCategory]);
|
|
54
110
|
const onItemLayout = useCallback((event, index) => {
|
|
55
111
|
const {
|
|
56
112
|
width
|
|
@@ -64,75 +120,109 @@ const CategoryCard = /*#__PURE__*/React.memo(({
|
|
|
64
120
|
useLayoutEffect(() => {
|
|
65
121
|
if (selectedCategory && category.length > 0 && selectedCategory._id !== prevCategoryId) {
|
|
66
122
|
const index = category.findIndex(cat => cat._id === selectedCategory._id);
|
|
67
|
-
if (index >= 0
|
|
123
|
+
if (index >= 0 && index !== lastPressedIndexRef.current) {
|
|
124
|
+
// Use debounced scroll for external category changes
|
|
125
|
+
debouncedScrollToCategory(index, true);
|
|
126
|
+
}
|
|
68
127
|
}
|
|
69
|
-
}, [selectedCategory, category,
|
|
128
|
+
}, [selectedCategory, category, debouncedScrollToCategory, prevCategoryId]);
|
|
70
129
|
const handlePress = useCallback(item => {
|
|
71
|
-
|
|
130
|
+
// Prevent rapid successive taps on the same item
|
|
72
131
|
const index = category.findIndex(cat => cat._id === item._id);
|
|
73
|
-
if (index
|
|
74
|
-
|
|
132
|
+
if (index < 0) return;
|
|
133
|
+
|
|
134
|
+
// Check if same item is being pressed rapidly
|
|
135
|
+
if (lastPressedIndexRef.current === index && isScrollingRef.current) {
|
|
136
|
+
return;
|
|
75
137
|
}
|
|
76
|
-
|
|
138
|
+
lastPressedIndexRef.current = index;
|
|
139
|
+
|
|
140
|
+
// Trigger haptic feedback for better UX
|
|
141
|
+
triggerHapticFeedback();
|
|
142
|
+
|
|
143
|
+
// Call the callback
|
|
144
|
+
onPressCategory?.(item);
|
|
145
|
+
|
|
146
|
+
// Scroll to category with slight delay for smoother UX
|
|
147
|
+
requestAnimationFrame(() => {
|
|
148
|
+
scrollToCategory(index, true);
|
|
149
|
+
});
|
|
150
|
+
}, [category, onPressCategory, scrollToCategory, triggerHapticFeedback]);
|
|
151
|
+
|
|
152
|
+
// Memoize filled mode selected style
|
|
153
|
+
const filledSelectedStyle = useMemo(() => ({
|
|
154
|
+
borderRadius: scale(8),
|
|
155
|
+
borderWidth: scale(1),
|
|
156
|
+
borderColor: themeColors.primary,
|
|
157
|
+
backgroundColor: themeColors.primary
|
|
158
|
+
}), [themeColors.primary]);
|
|
159
|
+
|
|
160
|
+
// Memoize filled mode unselected style
|
|
161
|
+
const filledUnselectedStyle = useMemo(() => ({
|
|
162
|
+
borderRadius: scale(8),
|
|
163
|
+
borderWidth: scale(1),
|
|
164
|
+
borderColor: themeColors.outline,
|
|
165
|
+
backgroundColor: 'transparent'
|
|
166
|
+
}), [themeColors.outline]);
|
|
167
|
+
|
|
168
|
+
// Memoize underline style
|
|
169
|
+
const underlineStyle = useMemo(() => [styles.underline, {
|
|
170
|
+
backgroundColor: themeColors.primary
|
|
171
|
+
}], [themeColors.primary]);
|
|
77
172
|
const renderItem = useCallback(({
|
|
78
173
|
item,
|
|
79
174
|
index
|
|
80
175
|
}) => {
|
|
81
176
|
const isSelected = item._id === selectedCategory?._id;
|
|
82
177
|
const isFilledMode = mode === 'filled';
|
|
83
|
-
const containerStyle = [styles.tabContainer, isFilledMode &&
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
backgroundColor: isSelected ? appliedTheme.colors.primary : 'transparent'
|
|
178
|
+
const containerStyle = [styles.tabContainer, isFilledMode && (isSelected ? filledSelectedStyle : filledUnselectedStyle)];
|
|
179
|
+
const textColor = isFilledMode ? isSelected ? themeColors.buttonText : themeColors.textPrimary : isSelected ? themeColors.primary : themeColors.textPrimary;
|
|
180
|
+
const textStyle = [styles.tabText, {
|
|
181
|
+
color: textColor
|
|
88
182
|
}];
|
|
89
|
-
const textColor = isFilledMode ? isSelected ? appliedTheme.colors.buttonText : appliedTheme.colors.textPrimary : isSelected ? appliedTheme.colors.primary : appliedTheme.colors.textPrimary;
|
|
90
183
|
return /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
91
|
-
activeOpacity: 0.
|
|
184
|
+
activeOpacity: 0.7,
|
|
92
185
|
onPress: () => handlePress(item),
|
|
93
186
|
style: containerStyle,
|
|
94
187
|
onLayout: event => onItemLayout(event, index),
|
|
95
188
|
accessibilityLabel: `Select category ${item.name}`,
|
|
189
|
+
accessibilityRole: "button",
|
|
190
|
+
accessibilityState: {
|
|
191
|
+
selected: isSelected
|
|
192
|
+
},
|
|
193
|
+
accessibilityHint: isSelected ? `${item.name} is currently selected` : `Double tap to select ${item.name} category`,
|
|
96
194
|
children: [/*#__PURE__*/_jsx(Text, {
|
|
97
|
-
style:
|
|
98
|
-
color: textColor
|
|
99
|
-
}],
|
|
195
|
+
style: textStyle,
|
|
100
196
|
children: item.name
|
|
101
197
|
}), mode === 'text' && isSelected && /*#__PURE__*/_jsx(View, {
|
|
102
|
-
style:
|
|
103
|
-
backgroundColor: appliedTheme.colors.primary
|
|
104
|
-
}]
|
|
198
|
+
style: underlineStyle
|
|
105
199
|
})]
|
|
106
200
|
});
|
|
107
|
-
}, [selectedCategory, mode,
|
|
201
|
+
}, [selectedCategory, mode, themeColors, handlePress, onItemLayout, filledSelectedStyle, filledUnselectedStyle, underlineStyle]);
|
|
108
202
|
const renderSkeleton = useCallback(() => /*#__PURE__*/_jsx(SkeletonPlaceholder, {
|
|
109
|
-
backgroundColor:
|
|
110
|
-
highlightColor:
|
|
203
|
+
backgroundColor: themeColors.skeletonBaseColor,
|
|
204
|
+
highlightColor: themeColors.skeletonHighlightColor,
|
|
111
205
|
children: /*#__PURE__*/_jsx(View, {
|
|
112
|
-
style:
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
children: [...Array(5)].map((_, index) => /*#__PURE__*/_jsx(View, {
|
|
116
|
-
style: {
|
|
117
|
-
width: ITEM_WIDTH - scale(20),
|
|
118
|
-
height: verticalScale(26),
|
|
119
|
-
borderRadius: scale(8),
|
|
120
|
-
marginRight: scale(8)
|
|
121
|
-
}
|
|
206
|
+
style: listContainerStyle,
|
|
207
|
+
children: skeletonItems.map((_, index) => /*#__PURE__*/_jsx(View, {
|
|
208
|
+
style: skeletonItemStyle
|
|
122
209
|
}, index))
|
|
123
210
|
})
|
|
124
|
-
}), [
|
|
211
|
+
}), [themeColors, listContainerStyle, skeletonItems, skeletonItemStyle]);
|
|
125
212
|
const getItemLayout = useCallback((_, index) => ({
|
|
126
213
|
length: itemWidths[index] || ITEM_WIDTH,
|
|
127
214
|
offset: itemWidths.slice(0, index).reduce((sum, width) => sum + (width || ITEM_WIDTH), 0),
|
|
128
215
|
index
|
|
129
216
|
}), [itemWidths]);
|
|
217
|
+
|
|
218
|
+
// Memoize keyExtractor
|
|
219
|
+
const keyExtractor = useCallback(item => item._id, []);
|
|
130
220
|
return /*#__PURE__*/_jsx(View, {
|
|
131
221
|
style: styles.container,
|
|
132
222
|
children: isLoading ? renderSkeleton() : /*#__PURE__*/_jsx(FlatList, {
|
|
133
223
|
ref: flatListRef,
|
|
134
224
|
data: category,
|
|
135
|
-
keyExtractor:
|
|
225
|
+
keyExtractor: keyExtractor,
|
|
136
226
|
horizontal: true,
|
|
137
227
|
showsHorizontalScrollIndicator: false,
|
|
138
228
|
contentContainerStyle: styles.listContainer,
|
|
@@ -144,7 +234,22 @@ const CategoryCard = /*#__PURE__*/React.memo(({
|
|
|
144
234
|
scrollEventThrottle: 16,
|
|
145
235
|
initialNumToRender: 10,
|
|
146
236
|
maxToRenderPerBatch: 12,
|
|
147
|
-
windowSize: 5
|
|
237
|
+
windowSize: 5,
|
|
238
|
+
removeClippedSubviews: true,
|
|
239
|
+
onScrollBeginDrag: () => {
|
|
240
|
+
isScrollingRef.current = true;
|
|
241
|
+
},
|
|
242
|
+
onScrollEndDrag: () => {
|
|
243
|
+
// Reset after a short delay to allow momentum scrolling
|
|
244
|
+
setTimeout(() => {
|
|
245
|
+
isScrollingRef.current = false;
|
|
246
|
+
}, 200);
|
|
247
|
+
},
|
|
248
|
+
onMomentumScrollEnd: () => {
|
|
249
|
+
isScrollingRef.current = false;
|
|
250
|
+
},
|
|
251
|
+
accessibilityLabel: "Category selection list",
|
|
252
|
+
accessibilityRole: "list"
|
|
148
253
|
})
|
|
149
254
|
});
|
|
150
255
|
}, (prev, next) => prev.category === next.category && prev.activeCategory?._id === next.activeCategory?._id && prev.isLoading === next.isLoading && prev.mode === next.mode && prev.theme === next.theme && prev.onPressCategory === next.onPressCategory);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useRef","useLayoutEffect","useCallback","useMemo","useState","useEffect","View","FlatList","TouchableOpacity","StyleSheet","Dimensions","InteractionManager","Text","useInternalTheme","scale","verticalScale","SkeletonPlaceholder","RFValue","jsx","_jsx","jsxs","_jsxs","ITEM_WIDTH","CONTAINER_PADDING","width","SCREEN_WIDTH","get","usePrevious","value","ref","undefined","current","CategoryCard","memo","category","activeCategory","onPressCategory","theme","mode","isLoading","appliedTheme","flatListRef","itemWidths","setItemWidths","selectedCategory","prevCategoryId","_id","scrollToCategory","index","animated","length","RIGHT_SCROLL_BIAS","offset","slice","reduce","sum","w","runAfterInteractions","scrollToOffset","Math","max","onItemLayout","event","nativeEvent","layout","prev","newWidths","findIndex","cat","handlePress","item","setTimeout","renderItem","isSelected","isFilledMode","containerStyle","styles","tabContainer","borderRadius","borderWidth","borderColor","colors","primary","outline","backgroundColor","textColor","buttonText","textPrimary","activeOpacity","onPress","style","onLayout","accessibilityLabel","name","children","tabText","color","underline","renderSkeleton","skeletonBaseColor","highlightColor","skeletonHighlightColor","listContainer","flexDirection","Array","map","_","height","marginRight","getItemLayout","container","data","keyExtractor","horizontal","showsHorizontalScrollIndicator","contentContainerStyle","extraData","decelerationRate","scrollEnabled","scrollEventThrottle","initialNumToRender","maxToRenderPerBatch","windowSize","next","create","marginVertical","paddingVertical","paddingLeft","paddingRight","alignItems","justifyContent","paddingHorizontal","fontSize","textTransform","fontWeight","lineHeight","marginTop"],"sourceRoot":"../../../../../../src","sources":["components/Content/Card/Category/Category.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,IACVC,MAAM,EACNC,eAAe,EACfC,WAAW,EACXC,OAAO,EACPC,QAAQ,EACRC,SAAS,QACJ,OAAO;AACd,SACEC,IAAI,EACJC,QAAQ,EACRC,gBAAgB,EAChBC,UAAU,EACVC,UAAU,EACVC,kBAAkB,QAGb,cAAc;AACrB,SAASC,IAAI,QAAQ,wBAAe;AACpC,SAASC,gBAAgB,QAAQ,4CAAyC;AAC1E,SAASC,KAAK,EA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xBtB,WAAW,EAAE9F,KAAK,CAAC,CAAC,CAAC;IACrBqH,iBAAiB,EAAErH,KAAK,CAAC,EAAE,CAAC;IAC5BgH,eAAe,EAAE/G,aAAa,CAAC,CAAC;EAClC,CAAC;EACDgF,OAAO,EAAE;IACPqC,QAAQ,EAAEnH,OAAO,CAAC,EAAE,CAAC;IACrBoH,aAAa,EAAE,YAAY;IAC3BC,UAAU,EAAE,KAAK;IACjBC,UAAU,EAAEzH,KAAK,CAAC,EAAE;EACtB,CAAC;EACDmF,SAAS,EAAE;IACTuC,SAAS,EAAEzH,aAAa,CAAC,CAAC,CAAC;IAC3B4F,MAAM,EAAE7F,KAAK,CAAC,CAAC,CAAC;IAChBU,KAAK,EAAE,KAAK;IACZsD,YAAY,EAAEhE,KAAK,CAAC,CAAC;EACvB;AACF,CAAC,CAAC;AAEF,eAAekB,YAAY","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["React","useRef","useLayoutEffect","useEffect","useCallback","useMemo","useState","View","FlatList","TouchableOpacity","StyleSheet","Dimensions","InteractionManager","Platform","Vibration","Text","useInternalTheme","scale","verticalScale","SkeletonPlaceholder","RFValue","ITEM_WIDTH","CONTAINER_PADDING","width","SCREEN_WIDTH","get","usePrevious","useSkeletonItems","debounce","jsx","_jsx","jsxs","_jsxs","CategoryCard","memo","category","activeCategory","onPressCategory","theme","mode","isLoading","appliedTheme","flatListRef","itemWidths","setItemWidths","isScrollingRef","lastPressedIndexRef","themeColors","primary","colors","outline","buttonText","textPrimary","skeletonBaseColor","skeletonHighlightColor","selectedCategory","prevCategoryId","_id","skeletonItems","skeletonItemStyle","height","borderRadius","marginRight","listContainerStyle","styles","listContainer","flexDirection","triggerHapticFeedback","OS","vibrate","scrollToCategory","index","animated","current","length","RIGHT_SCROLL_BIAS","offset","slice","reduce","sum","w","runAfterInteractions","scrollToOffset","Math","max","setTimeout","debouncedScrollToCategory","cancel","onItemLayout","event","nativeEvent","layout","prev","newWidths","findIndex","cat","handlePress","item","requestAnimationFrame","filledSelectedStyle","borderWidth","borderColor","backgroundColor","filledUnselectedStyle","underlineStyle","underline","renderItem","isSelected","isFilledMode","containerStyle","tabContainer","textColor","textStyle","tabText","color","activeOpacity","onPress","style","onLayout","accessibilityLabel","name","accessibilityRole","accessibilityState","selected","accessibilityHint","children","renderSkeleton","highlightColor","map","_","getItemLayout","keyExtractor","container","ref","data","horizontal","showsHorizontalScrollIndicator","contentContainerStyle","extraData","decelerationRate","scrollEnabled","scrollEventThrottle","initialNumToRender","maxToRenderPerBatch","windowSize","removeClippedSubviews","onScrollBeginDrag","onScrollEndDrag","onMomentumScrollEnd","next","create","marginVertical","paddingVertical","paddingLeft","paddingRight","alignItems","justifyContent","paddingHorizontal","fontSize","textTransform","fontWeight","lineHeight","marginTop"],"sourceRoot":"../../../../../../src","sources":["components/Content/Card/Category/Category.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,IACVC,MAAM,EACNC,eAAe,EACfC,SAAS,EACTC,WAAW,EACXC,OAAO,EACPC,QAAQ,QACH,OAAO;AACd,SACEC,IAAI,EACJC,QAAQ,EACRC,gBAAgB,EAChBC,UAAU,EACVC,UAAU,EACVC,kBAAkB,EAClBC,QAAQ,EACRC,SAAS,QAGJ,cAAc;AACrB,SAASC,IAAI,QAAQ,wBAAe;AACpC,SAASC,gBAAgB,QAAQ,4CAAyC;AAC1E,SAASC,KAAK,EAAEC,aAAa,QAAQ,2BAA2B;AAChE,OAAOC,mBAAmB,MAAM,mCAAmC;AAEnE,SAASC,OAAO,QAAQ,kCAAkC;AAqB1D,MAAMC,UAAU,GAAGJ,KAAK,CAAC,EAAE,CAAC;AAC5B,MAAMK,iBAAiB,GAAGL,KAAK,CAAC,EAAE,CAAC;AACnC,MAAM;EAAEM,KAAK,EAAEC;AAAa,CAAC,GAAGb,UAAU,CAACc,GAAG,CAAC,QAAQ,CAAC;AAExD,SAASC,WAAW,QAAQ,kCAA+B;AAC3D,SAASC,gBAAgB,QAAQ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