@zezosoft/zezo-ott-react-native-ui-kit 1.1.0 → 1.1.2
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 +133 -86
- package/lib/module/components/Auth/QrLogin/QrLogin.js.map +1 -1
- package/lib/module/components/Auth/QrLogin/components/QrViewArea.js +174 -109
- 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/BottomSheet/BottomSheet.js +152 -0
- package/lib/module/components/BottomSheet/BottomSheet.js.map +1 -0
- package/lib/module/components/BottomSheet/index.js +4 -0
- package/lib/module/components/BottomSheet/index.js.map +1 -0
- package/lib/module/components/Button/BackBtn.js +46 -16
- 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 +70 -37
- package/lib/module/components/Content/Card/Category/Category.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/Styles/One.js +40 -32
- package/lib/module/components/Content/Card/Sliders/Styles/One.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js +109 -48
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/RotateInOut.js +4 -11
- package/lib/module/components/Content/Card/Styles/RotateInOut.js.map +1 -1
- package/lib/module/components/Content/Card/components/CardPoster.js +105 -43
- 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/Content.js +44 -25
- package/lib/module/components/Content/Content.js.map +1 -1
- package/lib/module/components/Content/Sections.js +37 -29
- 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/Reels/ReelsSeries/MediaControls/BottomControls.js +134 -0
- package/lib/module/components/Reels/ReelsSeries/MediaControls/BottomControls.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.js +154 -0
- package/lib/module/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/MediaControls/MiddleControls.js +173 -0
- package/lib/module/components/Reels/ReelsSeries/MediaControls/MiddleControls.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/MediaControls/RightControls.js +77 -0
- package/lib/module/components/Reels/ReelsSeries/MediaControls/RightControls.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/MediaControls/TopControls.js +132 -0
- package/lib/module/components/Reels/ReelsSeries/MediaControls/TopControls.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/Model/DetailsModal.js +165 -0
- package/lib/module/components/Reels/ReelsSeries/Model/DetailsModal.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/Model/SettingModal.js +106 -0
- package/lib/module/components/Reels/ReelsSeries/Model/SettingModal.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/Model/UnlockModal.js +124 -0
- package/lib/module/components/Reels/ReelsSeries/Model/UnlockModal.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/ReelsSeries.js +102 -64
- package/lib/module/components/Reels/ReelsSeries/ReelsSeries.js.map +1 -1
- package/lib/module/components/Reels/ReelsSeries/ReelsSeriesItem.js +241 -232
- package/lib/module/components/Reels/ReelsSeries/ReelsSeriesItem.js.map +1 -1
- package/lib/module/components/Reels/ReelsSeries/components/AnimatedThreeLines.js +153 -0
- package/lib/module/components/Reels/ReelsSeries/components/AnimatedThreeLines.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/{Model → components}/Episodes.js +46 -36
- package/lib/module/components/Reels/ReelsSeries/components/Episodes.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/components/GradientOverlay.js +35 -0
- package/lib/module/components/Reels/ReelsSeries/components/GradientOverlay.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/components/Like.js +37 -0
- package/lib/module/components/Reels/ReelsSeries/components/Like.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/components/RotatingLoader.js +55 -0
- package/lib/module/components/Reels/ReelsSeries/components/RotatingLoader.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/components/Synopsis.js +268 -0
- package/lib/module/components/Reels/ReelsSeries/components/Synopsis.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/components/VideoControls/QualityControl.js +143 -0
- package/lib/module/components/Reels/ReelsSeries/components/VideoControls/QualityControl.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/components/VideoControls/SpeedControl.js +56 -0
- package/lib/module/components/Reels/ReelsSeries/components/VideoControls/SpeedControl.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/components/VideoControls/index.js +5 -0
- package/lib/module/components/Reels/ReelsSeries/components/VideoControls/index.js.map +1 -0
- package/lib/module/components/Reels/utils/Controls/gestureUtils.js +30 -0
- package/lib/module/components/Reels/utils/Controls/gestureUtils.js.map +1 -0
- package/lib/module/components/Reels/utils/Controls/index.js +7 -0
- package/lib/module/components/Reels/utils/Controls/index.js.map +1 -0
- package/lib/module/components/Reels/utils/Controls/overlayUtils.js +28 -0
- package/lib/module/components/Reels/utils/Controls/overlayUtils.js.map +1 -0
- package/lib/module/components/Reels/utils/Controls/videoControlsConstants.js +27 -0
- package/lib/module/components/Reels/utils/Controls/videoControlsConstants.js.map +1 -0
- package/lib/module/components/Reels/utils/Controls/videoRef.js +5 -0
- package/lib/module/components/Reels/utils/Controls/videoRef.js.map +1 -0
- package/lib/module/components/Reels/utils/index.js +4 -0
- package/lib/module/components/Reels/utils/index.js.map +1 -0
- package/lib/module/components/Reels/utils/timeoutUtils.js +24 -0
- package/lib/module/components/Reels/utils/timeoutUtils.js.map +1 -0
- 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 +1 -1
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/hooks/index.js +17 -0
- package/lib/module/hooks/index.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 +1 -1
- 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 +24 -15
- 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/module/theme/themes.js +3 -3
- 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 +0 -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/BottomSheet/BottomSheet.d.ts +18 -0
- package/lib/typescript/src/components/BottomSheet/BottomSheet.d.ts.map +1 -0
- package/lib/typescript/src/components/BottomSheet/index.d.ts +3 -0
- package/lib/typescript/src/components/BottomSheet/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Button/BackBtn.d.ts +5 -3
- 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 +4 -2
- package/lib/typescript/src/components/Button/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Category/Category.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/RotateInOut.d.ts.map +1 -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/Content.d.ts +2 -0
- package/lib/typescript/src/components/Content/Content.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Sections.d.ts +2 -2
- package/lib/typescript/src/components/Content/Sections.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/ContentView.d.ts +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/Reels/ReelsSeries/MediaControls/BottomControls.d.ts +14 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/BottomControls.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.d.ts +60 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/MiddleControls.d.ts +14 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/MiddleControls.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/RightControls.d.ts +14 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/RightControls.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/TopControls.d.ts +12 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/TopControls.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/Model/DetailsModal.d.ts +16 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/Model/DetailsModal.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/Model/SettingModal.d.ts +15 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/Model/SettingModal.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/Model/UnlockModal.d.ts +14 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/Model/UnlockModal.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeries.d.ts +8 -2
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeries.d.ts.map +1 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeriesItem.d.ts +8 -2
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeriesItem.d.ts.map +1 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/components/AnimatedThreeLines.d.ts +13 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/components/AnimatedThreeLines.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/{Model → components}/Episodes.d.ts +3 -2
- package/lib/typescript/src/components/Reels/ReelsSeries/components/Episodes.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/components/GradientOverlay.d.ts +7 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/components/GradientOverlay.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/components/Like.d.ts +7 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/components/Like.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/components/RotatingLoader.d.ts +12 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/components/RotatingLoader.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/components/Synopsis.d.ts +12 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/components/Synopsis.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/components/VideoControls/QualityControl.d.ts +11 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/components/VideoControls/QualityControl.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/components/VideoControls/SpeedControl.d.ts +10 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/components/VideoControls/SpeedControl.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/components/VideoControls/index.d.ts +3 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/components/VideoControls/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/types.d.ts +13 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/types.d.ts.map +1 -1
- package/lib/typescript/src/components/Reels/utils/Controls/gestureUtils.d.ts +10 -0
- package/lib/typescript/src/components/Reels/utils/Controls/gestureUtils.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/utils/Controls/index.d.ts +5 -0
- package/lib/typescript/src/components/Reels/utils/Controls/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/utils/Controls/overlayUtils.d.ts +12 -0
- package/lib/typescript/src/components/Reels/utils/Controls/overlayUtils.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/utils/Controls/videoControlsConstants.d.ts +24 -0
- package/lib/typescript/src/components/Reels/utils/Controls/videoControlsConstants.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/utils/Controls/videoRef.d.ts +3 -0
- package/lib/typescript/src/components/Reels/utils/Controls/videoRef.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/utils/index.d.ts +2 -0
- package/lib/typescript/src/components/Reels/utils/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/utils/timeoutUtils.d.ts +14 -0
- package/lib/typescript/src/components/Reels/utils/timeoutUtils.d.ts.map +1 -0
- 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 +1 -1
- package/lib/typescript/src/components/index.d.ts.map +1 -1
- package/lib/typescript/src/hooks/index.d.ts +14 -0
- package/lib/typescript/src/hooks/index.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/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/package.json +2 -2
- 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 +225 -185
- package/src/components/Auth/QrLogin/components/QrViewArea.tsx +282 -166
- 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/BottomSheet/BottomSheet.tsx +195 -0
- package/src/components/BottomSheet/index.ts +2 -0
- package/src/components/Button/BackBtn.tsx +87 -24
- 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 +94 -56
- package/src/components/Content/Card/Sliders/Styles/One.tsx +63 -47
- package/src/components/Content/Card/Sliders/Styles/Two.tsx +131 -51
- package/src/components/Content/Card/Styles/RotateInOut.tsx +7 -9
- package/src/components/Content/Card/components/CardPoster.tsx +136 -55
- package/src/components/Content/Card/components/RentOrBuyIcon.tsx +58 -38
- package/src/components/Content/Card/components/ThumbnailCard.tsx +122 -47
- package/src/components/Content/Content.tsx +164 -97
- package/src/components/Content/Sections.tsx +99 -43
- 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/Reels/ReelsSeries/MediaControls/BottomControls.tsx +156 -0
- package/src/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.tsx +234 -0
- package/src/components/Reels/ReelsSeries/MediaControls/MiddleControls.tsx +196 -0
- package/src/components/Reels/ReelsSeries/MediaControls/RightControls.tsx +92 -0
- package/src/components/Reels/ReelsSeries/MediaControls/TopControls.tsx +163 -0
- package/src/components/Reels/ReelsSeries/Model/DetailsModal.tsx +210 -0
- package/src/components/Reels/ReelsSeries/Model/SettingModal.tsx +143 -0
- package/src/components/Reels/ReelsSeries/Model/UnlockModal.tsx +154 -0
- package/src/components/Reels/ReelsSeries/ReelsSeries.tsx +142 -74
- package/src/components/Reels/ReelsSeries/ReelsSeriesItem.tsx +349 -250
- package/src/components/Reels/ReelsSeries/components/AnimatedThreeLines.tsx +184 -0
- package/src/components/Reels/ReelsSeries/{Model → components}/Episodes.tsx +54 -33
- package/src/components/Reels/ReelsSeries/components/GradientOverlay.tsx +41 -0
- package/src/components/Reels/ReelsSeries/components/Like.tsx +40 -0
- package/src/components/Reels/ReelsSeries/components/RotatingLoader.tsx +79 -0
- package/src/components/Reels/ReelsSeries/components/Synopsis.tsx +332 -0
- package/src/components/Reels/ReelsSeries/components/VideoControls/QualityControl.tsx +190 -0
- package/src/components/Reels/ReelsSeries/components/VideoControls/SpeedControl.tsx +80 -0
- package/src/components/Reels/ReelsSeries/components/VideoControls/index.ts +2 -0
- package/src/components/Reels/ReelsSeries/types.ts +13 -2
- package/src/components/Reels/utils/Controls/gestureUtils.ts +42 -0
- package/src/components/Reels/utils/Controls/index.ts +4 -0
- package/src/components/Reels/utils/Controls/overlayUtils.ts +35 -0
- package/src/components/Reels/utils/Controls/videoControlsConstants.ts +25 -0
- package/src/components/Reels/utils/Controls/videoRef.ts +4 -0
- package/src/components/Reels/utils/index.ts +1 -0
- package/src/components/Reels/utils/timeoutUtils.ts +29 -0
- 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 +1 -1
- package/src/hooks/index.ts +14 -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 +1 -1
- 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 +33 -11
- package/src/theme/hook/useInternalTheme.ts +19 -13
- package/src/theme/hook/useThemeStatusBar.ts +14 -5
- package/src/theme/themes.ts +3 -3
- package/lib/module/components/Reels/ReelsSeries/Model/Episodes.js.map +0 -1
- package/lib/module/components/Reels/ReelsSeries/Model/Synopsis.js +0 -212
- package/lib/module/components/Reels/ReelsSeries/Model/Synopsis.js.map +0 -1
- package/lib/module/components/Reels/ReelsSeries/ReelSeriesDetailsModal.js +0 -182
- package/lib/module/components/Reels/ReelsSeries/ReelSeriesDetailsModal.js.map +0 -1
- package/lib/module/components/Reels/ReelsSeries/ReelSeriesOverlay.js +0 -203
- package/lib/module/components/Reels/ReelsSeries/ReelSeriesOverlay.js.map +0 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/Model/Episodes.d.ts.map +0 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/Model/Synopsis.d.ts +0 -9
- package/lib/typescript/src/components/Reels/ReelsSeries/Model/Synopsis.d.ts.map +0 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelSeriesDetailsModal.d.ts +0 -13
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelSeriesDetailsModal.d.ts.map +0 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelSeriesOverlay.d.ts +0 -18
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelSeriesOverlay.d.ts.map +0 -1
- package/src/components/Reels/ReelsSeries/Model/Synopsis.tsx +0 -242
- package/src/components/Reels/ReelsSeries/ReelSeriesDetailsModal.tsx +0 -209
- package/src/components/Reels/ReelsSeries/ReelSeriesOverlay.tsx +0 -185
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { useEffect, useRef } from 'react';
|
|
4
|
+
import { View, StyleSheet, Animated, Easing } from 'react-native';
|
|
5
|
+
import Svg, { Rect } from 'react-native-svg';
|
|
6
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
const AnimatedRect = Animated.createAnimatedComponent(Rect);
|
|
8
|
+
const AnimatedThreeLines = ({
|
|
9
|
+
isActive,
|
|
10
|
+
size = 16,
|
|
11
|
+
color = 'white',
|
|
12
|
+
style,
|
|
13
|
+
animationDuration = 600,
|
|
14
|
+
delayBetweenLines = 200
|
|
15
|
+
}) => {
|
|
16
|
+
const line1Anim = useRef(new Animated.Value(0)).current;
|
|
17
|
+
const line2Anim = useRef(new Animated.Value(0)).current;
|
|
18
|
+
const line3Anim = useRef(new Animated.Value(0)).current;
|
|
19
|
+
useEffect(() => {
|
|
20
|
+
if (isActive) {
|
|
21
|
+
// Custom bezier easing for ultra-smooth animation
|
|
22
|
+
const smoothEasing = Easing.bezier(0.4, 0.0, 0.2, 1); // Material Design easing
|
|
23
|
+
|
|
24
|
+
// Start continuous smooth animation
|
|
25
|
+
const createAnimation = (animValue, delay) => {
|
|
26
|
+
return Animated.loop(Animated.sequence([Animated.delay(delay), Animated.timing(animValue, {
|
|
27
|
+
toValue: 1,
|
|
28
|
+
duration: animationDuration,
|
|
29
|
+
easing: smoothEasing,
|
|
30
|
+
useNativeDriver: false // SVG doesn't support native driver
|
|
31
|
+
}), Animated.timing(animValue, {
|
|
32
|
+
toValue: 0,
|
|
33
|
+
duration: animationDuration,
|
|
34
|
+
easing: smoothEasing,
|
|
35
|
+
useNativeDriver: false // SVG doesn't support native driver
|
|
36
|
+
})]), {
|
|
37
|
+
iterations: -1
|
|
38
|
+
} // Infinite loop
|
|
39
|
+
);
|
|
40
|
+
};
|
|
41
|
+
const anim1 = createAnimation(line1Anim, 0);
|
|
42
|
+
const anim2 = createAnimation(line2Anim, delayBetweenLines);
|
|
43
|
+
const anim3 = createAnimation(line3Anim, delayBetweenLines * 2);
|
|
44
|
+
|
|
45
|
+
// Start all animations
|
|
46
|
+
anim1.start();
|
|
47
|
+
anim2.start();
|
|
48
|
+
anim3.start();
|
|
49
|
+
return () => {
|
|
50
|
+
anim1.stop();
|
|
51
|
+
anim2.stop();
|
|
52
|
+
anim3.stop();
|
|
53
|
+
// Reset values on cleanup
|
|
54
|
+
line1Anim.setValue(0);
|
|
55
|
+
line2Anim.setValue(0);
|
|
56
|
+
line3Anim.setValue(0);
|
|
57
|
+
};
|
|
58
|
+
} else {
|
|
59
|
+
// Smoothly reset to initial state when not active
|
|
60
|
+
Animated.parallel([Animated.timing(line1Anim, {
|
|
61
|
+
toValue: 0,
|
|
62
|
+
duration: 200,
|
|
63
|
+
easing: Easing.out(Easing.ease),
|
|
64
|
+
useNativeDriver: false
|
|
65
|
+
}), Animated.timing(line2Anim, {
|
|
66
|
+
toValue: 0,
|
|
67
|
+
duration: 200,
|
|
68
|
+
easing: Easing.out(Easing.ease),
|
|
69
|
+
useNativeDriver: false
|
|
70
|
+
}), Animated.timing(line3Anim, {
|
|
71
|
+
toValue: 0,
|
|
72
|
+
duration: 200,
|
|
73
|
+
easing: Easing.out(Easing.ease),
|
|
74
|
+
useNativeDriver: false
|
|
75
|
+
})]).start();
|
|
76
|
+
}
|
|
77
|
+
return undefined;
|
|
78
|
+
}, [isActive, line1Anim, line2Anim, line3Anim, animationDuration, delayBetweenLines]);
|
|
79
|
+
|
|
80
|
+
// Animate height and Y position for ultra-smooth up/down movement
|
|
81
|
+
// Using extended input range for smoother interpolation
|
|
82
|
+
const line1Height = line1Anim.interpolate({
|
|
83
|
+
inputRange: [0, 0.5, 1],
|
|
84
|
+
outputRange: [4, 7, 10],
|
|
85
|
+
extrapolate: 'clamp'
|
|
86
|
+
});
|
|
87
|
+
const line1Y = line1Anim.interpolate({
|
|
88
|
+
inputRange: [0, 0.5, 1],
|
|
89
|
+
outputRange: [12, 9, 6],
|
|
90
|
+
// Move up as height increases
|
|
91
|
+
extrapolate: 'clamp'
|
|
92
|
+
});
|
|
93
|
+
const line2Height = line2Anim.interpolate({
|
|
94
|
+
inputRange: [0, 0.5, 1],
|
|
95
|
+
outputRange: [6, 9, 12],
|
|
96
|
+
extrapolate: 'clamp'
|
|
97
|
+
});
|
|
98
|
+
const line2Y = line2Anim.interpolate({
|
|
99
|
+
inputRange: [0, 0.5, 1],
|
|
100
|
+
outputRange: [10, 7, 4],
|
|
101
|
+
// Move up as height increases
|
|
102
|
+
extrapolate: 'clamp'
|
|
103
|
+
});
|
|
104
|
+
const line3Height = line3Anim.interpolate({
|
|
105
|
+
inputRange: [0, 0.5, 1],
|
|
106
|
+
outputRange: [4, 6, 8],
|
|
107
|
+
extrapolate: 'clamp'
|
|
108
|
+
});
|
|
109
|
+
const line3Y = line3Anim.interpolate({
|
|
110
|
+
inputRange: [0, 0.5, 1],
|
|
111
|
+
outputRange: [12, 10, 8],
|
|
112
|
+
// Move up as height increases
|
|
113
|
+
extrapolate: 'clamp'
|
|
114
|
+
});
|
|
115
|
+
return /*#__PURE__*/_jsx(View, {
|
|
116
|
+
style: [styles.container, style],
|
|
117
|
+
children: /*#__PURE__*/_jsxs(Svg, {
|
|
118
|
+
width: size,
|
|
119
|
+
height: size,
|
|
120
|
+
viewBox: "0 0 16 16",
|
|
121
|
+
children: [/*#__PURE__*/_jsx(AnimatedRect, {
|
|
122
|
+
x: 1,
|
|
123
|
+
y: line1Y,
|
|
124
|
+
width: 2.5,
|
|
125
|
+
height: line1Height,
|
|
126
|
+
rx: 1.25,
|
|
127
|
+
fill: color
|
|
128
|
+
}), /*#__PURE__*/_jsx(AnimatedRect, {
|
|
129
|
+
x: 6,
|
|
130
|
+
y: line2Y,
|
|
131
|
+
width: 2.5,
|
|
132
|
+
height: line2Height,
|
|
133
|
+
rx: 1.25,
|
|
134
|
+
fill: color
|
|
135
|
+
}), /*#__PURE__*/_jsx(AnimatedRect, {
|
|
136
|
+
x: 11,
|
|
137
|
+
y: line3Y,
|
|
138
|
+
width: 2.5,
|
|
139
|
+
height: line3Height,
|
|
140
|
+
rx: 1.25,
|
|
141
|
+
fill: color
|
|
142
|
+
})]
|
|
143
|
+
})
|
|
144
|
+
});
|
|
145
|
+
};
|
|
146
|
+
const styles = StyleSheet.create({
|
|
147
|
+
container: {
|
|
148
|
+
justifyContent: 'center',
|
|
149
|
+
alignItems: 'center'
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
export default AnimatedThreeLines;
|
|
153
|
+
//# sourceMappingURL=AnimatedThreeLines.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useEffect","useRef","View","StyleSheet","Animated","Easing","Svg","Rect","jsx","_jsx","jsxs","_jsxs","AnimatedRect","createAnimatedComponent","AnimatedThreeLines","isActive","size","color","style","animationDuration","delayBetweenLines","line1Anim","Value","current","line2Anim","line3Anim","smoothEasing","bezier","createAnimation","animValue","delay","loop","sequence","timing","toValue","duration","easing","useNativeDriver","iterations","anim1","anim2","anim3","start","stop","setValue","parallel","out","ease","undefined","line1Height","interpolate","inputRange","outputRange","extrapolate","line1Y","line2Height","line2Y","line3Height","line3Y","styles","container","children","width","height","viewBox","x","y","rx","fill","create","justifyContent","alignItems"],"sourceRoot":"../../../../../../src","sources":["components/Reels/ReelsSeries/components/AnimatedThreeLines.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,MAAM,QAAQ,OAAO;AAChD,SAASC,IAAI,EAAEC,UAAU,EAAEC,QAAQ,EAAEC,MAAM,QAAQ,cAAc;AAEjE,OAAOC,GAAG,IAAIC,IAAI,QAAQ,kBAAkB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAE7C,MAAMC,YAAY,GAAGR,QAAQ,CAACS,uBAAuB,CAACN,IAAI,CAAC;AAW3D,MAAMO,kBAAqD,GAAGA,CAAC;EAC7DC,QAAQ;EACRC,IAAI,GAAG,EAAE;EACTC,KAAK,GAAG,OAAO;EACfC,KAAK;EACLC,iBAAiB,GAAG,GAAG;EACvBC,iBAAiB,GAAG;AACtB,CAAC,KAAK;EACJ,MAAMC,SAAS,GAAGpB,MAAM,CAAC,IAAIG,QAAQ,CAACkB,KAAK,CAAC,CAAC,CAAC,CAAC,CAACC,OAAO;EACvD,MAAMC,SAAS,GAAGvB,MAAM,CAAC,IAAIG,QAAQ,CAACkB,KAAK,CAAC,CAAC,CAAC,CAAC,CAACC,OAAO;EACvD,MAAME,SAAS,GAAGxB,MAAM,CAAC,IAAIG,QAAQ,CAACkB,KAAK,CAAC,CAAC,CAAC,CAAC,CAACC,OAAO;EAEvDvB,SAAS,CAAC,MAAM;IACd,IAAI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K,EAAE9C,IAAK;MAAC+C,MAAM,EAAE/C,IAAK;MAACgD,OAAO,EAAC,WAAW;MAAAH,QAAA,gBACjDpD,IAAA,CAACG,YAAY;QACXqD,CAAC,EAAE,CAAE;QACLC,CAAC,EAAEZ,MAAO;QACVQ,KAAK,EAAE,GAAI;QACXC,MAAM,EAAEd,WAAY;QACpBkB,EAAE,EAAE,IAAK;QACTC,IAAI,EAAEnD;MAAM,CACb,CAAC,eACFR,IAAA,CAACG,YAAY;QACXqD,CAAC,EAAE,CAAE;QACLC,CAAC,EAAEV,MAAO;QACVM,KAAK,EAAE,GAAI;QACXC,MAAM,EAAER,WAAY;QACpBY,EAAE,EAAE,IAAK;QACTC,IAAI,EAAEnD;MAAM,CACb,CAAC,eACFR,IAAA,CAACG,YAAY;QACXqD,CAAC,EAAE,EAAG;QACNC,CAAC,EAAER,MAAO;QACVI,KAAK,EAAE,GAAI;QACXC,MAAM,EAAEN,WAAY;QACpBU,EAAE,EAAE,IAAK;QACTC,IAAI,EAAEnD;MAAM,CACb,CAAC;IAAA,CACC;EAAC,CACF,CAAC;AAEX,CAAC;AAED,MAAM0C,MAAM,GAAGxD,UAAU,CAACkE,MAAM,CAAC;EAC/BT,SAAS,EAAE;IACTU,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAEF,eAAezD,kBAAkB","ignoreList":[]}
|
|
@@ -2,88 +2,95 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { View, Text, FlatList, StyleSheet, Dimensions, TouchableOpacity } from 'react-native';
|
|
5
|
-
import { Lock
|
|
5
|
+
import { Lock } from 'lucide-react-native';
|
|
6
6
|
import { moderateScale, verticalScale } from 'react-native-size-matters';
|
|
7
7
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
8
|
+
import AnimatedThreeLines from "./AnimatedThreeLines.js";
|
|
8
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
10
|
const {
|
|
10
|
-
height,
|
|
11
11
|
width
|
|
12
12
|
} = Dimensions.get('window');
|
|
13
13
|
const NUM_COLUMNS = 6;
|
|
14
14
|
const Episodes = ({
|
|
15
|
+
theme,
|
|
16
|
+
reel,
|
|
15
17
|
data,
|
|
16
|
-
|
|
17
|
-
onEpisodeSelect,
|
|
18
|
-
totalReels = 0
|
|
18
|
+
onEpisodeSelect
|
|
19
19
|
}) => {
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
const boxWidth = React.useMemo(() => {
|
|
21
|
+
return (width - moderateScale(15) * 2 - moderateScale(6) * NUM_COLUMNS) / NUM_COLUMNS;
|
|
22
|
+
}, []);
|
|
23
|
+
const episodesArray = React.useMemo(() => {
|
|
24
|
+
return (data.episodes || []).map(episode => ({
|
|
25
|
+
episode,
|
|
26
|
+
episodeNumber: episode.episodeNumber
|
|
27
|
+
}));
|
|
28
|
+
}, [data.episodes]);
|
|
24
29
|
const renderItem = ({
|
|
25
30
|
item
|
|
26
31
|
}) => {
|
|
27
|
-
const
|
|
28
|
-
|
|
32
|
+
const {
|
|
33
|
+
episode,
|
|
34
|
+
episodeNumber
|
|
35
|
+
} = item;
|
|
36
|
+
const isAvailable = !episode.isLocked;
|
|
37
|
+
const isActive = episodeNumber === reel.episodeNumber;
|
|
29
38
|
return /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
30
|
-
onPress: () =>
|
|
39
|
+
onPress: () => onEpisodeSelect?.(episode),
|
|
31
40
|
activeOpacity: 0.8,
|
|
41
|
+
disabled: false,
|
|
32
42
|
children: /*#__PURE__*/_jsxs(View, {
|
|
33
43
|
style: [styles.box, {
|
|
34
|
-
backgroundColor: isActive ?
|
|
44
|
+
backgroundColor: isActive ? theme.colors.elevation.level2 : theme.colors.elevation.level1,
|
|
45
|
+
width: boxWidth
|
|
35
46
|
}],
|
|
36
47
|
children: [/*#__PURE__*/_jsx(Text, {
|
|
37
48
|
style: [styles.number, {
|
|
38
|
-
color:
|
|
49
|
+
color: theme.colors.textPrimary
|
|
39
50
|
}],
|
|
40
|
-
children:
|
|
51
|
+
children: episodeNumber
|
|
41
52
|
}), !isAvailable && /*#__PURE__*/_jsx(View, {
|
|
42
53
|
style: [styles.lockContainer, {
|
|
43
|
-
backgroundColor:
|
|
54
|
+
backgroundColor: theme.colors.surfaceDisabled
|
|
44
55
|
}],
|
|
45
56
|
children: /*#__PURE__*/_jsx(Lock, {
|
|
46
|
-
color:
|
|
57
|
+
color: theme.colors.textPrimary,
|
|
47
58
|
size: moderateScale(11)
|
|
48
59
|
})
|
|
49
|
-
}), isActive && /*#__PURE__*/_jsx(
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
style: styles.
|
|
60
|
+
}), isActive && /*#__PURE__*/_jsx(AnimatedThreeLines, {
|
|
61
|
+
isActive: isActive,
|
|
62
|
+
color: theme.colors.primary,
|
|
63
|
+
style: styles.animatedIndicator
|
|
53
64
|
})]
|
|
54
65
|
})
|
|
55
|
-
}, `episode-${
|
|
66
|
+
}, `episode-${episodeNumber}`);
|
|
56
67
|
};
|
|
57
68
|
return /*#__PURE__*/_jsx(FlatList, {
|
|
58
|
-
data:
|
|
69
|
+
data: episodesArray,
|
|
59
70
|
numColumns: NUM_COLUMNS,
|
|
60
|
-
keyExtractor: item => `episode-${item}`,
|
|
71
|
+
keyExtractor: item => `episode-${item.episode.episodeId}`,
|
|
61
72
|
renderItem: renderItem,
|
|
62
73
|
contentContainerStyle: [{
|
|
63
74
|
paddingBottom: verticalScale(20)
|
|
64
75
|
}],
|
|
65
76
|
showsVerticalScrollIndicator: false,
|
|
66
|
-
scrollEnabled: true
|
|
67
|
-
,
|
|
68
|
-
|
|
69
|
-
,
|
|
70
|
-
windowSize: 10 // virtualized window
|
|
71
|
-
,
|
|
77
|
+
scrollEnabled: true,
|
|
78
|
+
removeClippedSubviews: true,
|
|
79
|
+
windowSize: 10,
|
|
72
80
|
initialNumToRender: NUM_COLUMNS * 2,
|
|
73
|
-
nestedScrollEnabled: true
|
|
81
|
+
nestedScrollEnabled: true
|
|
74
82
|
});
|
|
75
83
|
};
|
|
76
84
|
export default Episodes;
|
|
77
85
|
const styles = StyleSheet.create({
|
|
78
86
|
box: {
|
|
79
|
-
width: (width - moderateScale(8) * 2 - moderateScale(6) * NUM_COLUMNS) / NUM_COLUMNS,
|
|
80
|
-
height: height * 0.52 / 8,
|
|
81
87
|
borderRadius: moderateScale(10),
|
|
82
88
|
justifyContent: 'center',
|
|
83
89
|
alignItems: 'center',
|
|
84
90
|
marginVertical: moderateScale(2.5),
|
|
85
91
|
marginHorizontal: moderateScale(2.5),
|
|
86
|
-
position: 'relative'
|
|
92
|
+
position: 'relative',
|
|
93
|
+
aspectRatio: 1
|
|
87
94
|
},
|
|
88
95
|
number: {
|
|
89
96
|
fontSize: RFValue(15),
|
|
@@ -101,10 +108,13 @@ const styles = StyleSheet.create({
|
|
|
101
108
|
justifyContent: 'center',
|
|
102
109
|
alignItems: 'center'
|
|
103
110
|
},
|
|
104
|
-
|
|
111
|
+
animatedIndicator: {
|
|
105
112
|
position: 'absolute',
|
|
106
113
|
bottom: verticalScale(6),
|
|
107
|
-
left: moderateScale(6)
|
|
114
|
+
left: moderateScale(6),
|
|
115
|
+
justifyContent: 'center',
|
|
116
|
+
opacity: 0.9,
|
|
117
|
+
alignItems: 'center'
|
|
108
118
|
}
|
|
109
119
|
});
|
|
110
120
|
//# sourceMappingURL=Episodes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","Text","FlatList","StyleSheet","Dimensions","TouchableOpacity","Lock","moderateScale","verticalScale","RFValue","AnimatedThreeLines","jsx","_jsx","jsxs","_jsxs","width","get","NUM_COLUMNS","Episodes","theme","reel","data","onEpisodeSelect","boxWidth","useMemo","episodesArray","episodes","map","episode","episodeNumber","renderItem","item","isAvailable","isLocked","isActive","onPress","activeOpacity","disabled","children","style","styles","box","backgroundColor","colors","elevation","level2","level1","number","color","textPrimary","lockContainer","surfaceDisabled","size","primary","animatedIndicator","numColumns","keyExtractor","episodeId","contentContainerStyle","paddingBottom","showsVerticalScrollIndicator","scrollEnabled","removeClippedSubviews","windowSize","initialNumToRender","nestedScrollEnabled","create","borderRadius","justifyContent","alignItems","marginVertical","marginHorizontal","position","aspectRatio","fontSize","fontWeight","top","right","height","borderTopLeftRadius","borderBottomRightRadius","bottom","left","opacity"],"sourceRoot":"../../../../../../src","sources":["components/Reels/ReelsSeries/components/Episodes.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,IAAI,EACJC,IAAI,EACJC,QAAQ,EACRC,UAAU,EACVC,UAAU,EACVC,gBAAgB,QACX,cAAc;AACrB,SAASC,IAAI,QAAQ,qBAAqB;AAC1C,SAASC,aAAa,EAAEC,aAAa,QAAQ,2BAA2B;AACxE,SAASC,OAAO,QAAQ,kCAAkC;AAC1D,OAAOC,kBAAkB,MAAM,yBAAsB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAItD,MAAM;EAAEC;AAAM,CAAC,GAAGX,UAAU,CAACY,GAAG,CAAC,QAAQ,CAAC;AAC1C,MAAMC,WAAW,GAAG,CAAC;AAUrB,MAAMC,QAAiC,GAAGA,CAAC;EACzCC,KAAK;EACLC,IAAI;EACJC,IAAI;EACJC;AACF,CAAC,KAAK;EACJ,MAAMC,QAAQ,GAAGxB,KAAK,CAACyB,OAAO,CAAC,MAAM;IACnC,OACE,CAACT,KAAK,GAAGR,aAAa,CAAC,EAAE,CAAC,GAAG,CAAC,GAAGA,aAAa,CAAC,CAAC,CAAC,GAAGU,WAAW,IAC/DA,WAAW;EAEf,CAAC,EAAE,EAAE,CAAC;EAEN,MAAMQ,aAAa,GAAG1B,KAAK,CAACyB,OAAO,CAAC,MAAM;IACxC,OAAO,CAACH,IAAI,CAACK,QAAQ,IAAI,EAAE,EAAEC,GAAG,CAAEC,OAAO,KAAM;MAC7CA,OAAO;MAC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B,QAAQ,EAAE,UAAU;IACpBI,GAAG,EAAE,CAAC;IACNC,KAAK,EAAE,CAAC;IACR9D,KAAK,EAAER,aAAa,CAAC,EAAE,CAAC;IACxBuE,MAAM,EAAEvE,aAAa,CAAC,EAAE,CAAC;IACzB4D,YAAY,EAAE5D,aAAa,CAAC,CAAC,CAAC;IAC9BwE,mBAAmB,EAAE,CAAC;IACtBC,uBAAuB,EAAE,CAAC;IAC1BZ,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd,CAAC;EACDf,iBAAiB,EAAE;IACjBkB,QAAQ,EAAE,UAAU;IACpBS,MAAM,EAAEzE,aAAa,CAAC,CAAC,CAAC;IACxB0E,IAAI,EAAE3E,aAAa,CAAC,CAAC,CAAC;IACtB6D,cAAc,EAAE,QAAQ;IACxBe,OAAO,EAAE,GAAG;IACZd,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { StyleSheet } from 'react-native';
|
|
5
|
+
import LinearGradient from 'react-native-linear-gradient';
|
|
6
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
const GradientOverlay = ({
|
|
8
|
+
children
|
|
9
|
+
}) => {
|
|
10
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
11
|
+
children: [/*#__PURE__*/_jsx(LinearGradient, {
|
|
12
|
+
colors: ['rgba(0,0,0,0.9)', 'rgba(0,0,0,0.5)', 'transparent'],
|
|
13
|
+
style: styles.topGradient
|
|
14
|
+
}), /*#__PURE__*/_jsx(LinearGradient, {
|
|
15
|
+
colors: ['transparent', 'rgba(0,0,0,0.3)', 'rgba(0,0,0,0.9)'],
|
|
16
|
+
style: styles.bottomGradient
|
|
17
|
+
}), children]
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
export default GradientOverlay;
|
|
21
|
+
const styles = StyleSheet.create({
|
|
22
|
+
topGradient: {
|
|
23
|
+
position: 'absolute',
|
|
24
|
+
top: 0,
|
|
25
|
+
width: '100%',
|
|
26
|
+
height: 180
|
|
27
|
+
},
|
|
28
|
+
bottomGradient: {
|
|
29
|
+
position: 'absolute',
|
|
30
|
+
bottom: 0,
|
|
31
|
+
width: '100%',
|
|
32
|
+
height: 220
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=GradientOverlay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","LinearGradient","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","GradientOverlay","children","colors","style","styles","topGradient","bottomGradient","create","position","top","width","height","bottom"],"sourceRoot":"../../../../../../src","sources":["components/Reels/ReelsSeries/components/GradientOverlay.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,QAAQ,cAAc;AACzC,OAAOC,cAAc,MAAM,8BAA8B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA,EAAAC,IAAA,IAAAC,KAAA;AAM1D,MAAMC,eAA+C,GAAGA,CAAC;EAAEC;AAAS,CAAC,KAAK;EACxE,oBACEF,KAAA,CAAAF,SAAA;IAAAI,QAAA,gBACEN,IAAA,CAACF,cAAc;MACbS,MAAM,EAAE,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,aAAa,CAAE;MAC9DC,KAAK,EAAEC,MAAM,CAACC;IAAY,CAC3B,CAAC,eAEFV,IAAA,CAACF,cAAc;MACbS,MAAM,EAAE,CAAC,aAAa,EAAE,iBAAiB,EAAE,iBAAiB,CAAE;MAC9DC,KAAK,EAAEC,MAAM,CAACE;IAAe,CAC9B,CAAC,EACDL,QAAQ;EAAA,CACT,CAAC;AAEP,CAAC;AAED,eAAeD,eAAe;AAE9B,MAAMI,MAAM,GAAGZ,UAAU,CAACe,MAAM,CAAC;EAC/BF,WAAW,EAAE;IACXG,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,CAAC;IACNC,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE;EACV,CAAC;EACDL,cAAc,EAAE;IACdE,QAAQ,EAAE,UAAU;IACpBI,MAAM,EAAE,CAAC;IACTF,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE;EACV;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { View, StyleSheet } from 'react-native';
|
|
5
|
+
import LottieView from 'lottie-react-native';
|
|
6
|
+
import DoubleTapAnim from '../../../../assets/animations/heart.json';
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
const Like = ({
|
|
9
|
+
visible
|
|
10
|
+
}) => {
|
|
11
|
+
if (!visible) return null;
|
|
12
|
+
return /*#__PURE__*/_jsx(View, {
|
|
13
|
+
style: styles.container,
|
|
14
|
+
children: /*#__PURE__*/_jsx(LottieView, {
|
|
15
|
+
style: styles.lottie,
|
|
16
|
+
source: DoubleTapAnim,
|
|
17
|
+
autoPlay: true,
|
|
18
|
+
loop: false
|
|
19
|
+
})
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
export default Like;
|
|
23
|
+
const styles = StyleSheet.create({
|
|
24
|
+
container: {
|
|
25
|
+
width: '100%',
|
|
26
|
+
height: '100%',
|
|
27
|
+
position: 'absolute',
|
|
28
|
+
justifyContent: 'center',
|
|
29
|
+
alignItems: 'center',
|
|
30
|
+
zIndex: 5
|
|
31
|
+
},
|
|
32
|
+
lottie: {
|
|
33
|
+
width: '100%',
|
|
34
|
+
height: '100%'
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
//# sourceMappingURL=Like.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","StyleSheet","LottieView","DoubleTapAnim","jsx","_jsx","Like","visible","style","styles","container","children","lottie","source","autoPlay","loop","create","width","height","position","justifyContent","alignItems","zIndex"],"sourceRoot":"../../../../../../src","sources":["components/Reels/ReelsSeries/components/Like.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAC/C,OAAOC,UAAU,MAAM,qBAAqB;AAC5C,OAAOC,aAAa,MAAM,0CAA0C;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAMrE,MAAMC,IAAyB,GAAGA,CAAC;EAAEC;AAAQ,CAAC,KAAK;EACjD,IAAI,CAACA,OAAO,EAAE,OAAO,IAAI;EAEzB,oBACEF,IAAA,CAACL,IAAI;IAACQ,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,eAC5BN,IAAA,CAACH,UAAU;MACTM,KAAK,EAAEC,MAAM,CAACG,MAAO;MACrBC,MAAM,EAAEV,aAAc;MACtBW,QAAQ;MACRC,IAAI,EAAE;IAAM,CACb;EAAC,CACE,CAAC;AAEX,CAAC;AAED,eAAeT,IAAI;AAEnB,MAAMG,MAAM,GAAGR,UAAU,CAACe,MAAM,CAAC;EAC/BN,SAAS,EAAE;IACTO,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE,MAAM;IACdC,QAAQ,EAAE,UAAU;IACpBC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBC,MAAM,EAAE;EACV,CAAC;EACDV,MAAM,EAAE;IACNK,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE;EACV;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { useEffect, useRef } from 'react';
|
|
4
|
+
import { StyleSheet, Animated, Easing } from 'react-native';
|
|
5
|
+
import { Loader } from 'lucide-react-native';
|
|
6
|
+
import { moderateScale } from 'react-native-size-matters';
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
const RotatingLoader = ({
|
|
9
|
+
size = moderateScale(35),
|
|
10
|
+
color = '#fff',
|
|
11
|
+
containerStyle,
|
|
12
|
+
rotationDuration = 1300,
|
|
13
|
+
autoRotate = true
|
|
14
|
+
}) => {
|
|
15
|
+
const rotateAnim = useRef(new Animated.Value(0)).current;
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
if (autoRotate) {
|
|
18
|
+
rotateAnim.setValue(0);
|
|
19
|
+
const animation = Animated.loop(Animated.timing(rotateAnim, {
|
|
20
|
+
toValue: 1,
|
|
21
|
+
duration: rotationDuration,
|
|
22
|
+
easing: Easing.linear,
|
|
23
|
+
useNativeDriver: true
|
|
24
|
+
}));
|
|
25
|
+
animation.start();
|
|
26
|
+
return () => {
|
|
27
|
+
animation.stop();
|
|
28
|
+
rotateAnim.stopAnimation();
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}, [autoRotate, rotationDuration, rotateAnim]);
|
|
33
|
+
return /*#__PURE__*/_jsx(Animated.View, {
|
|
34
|
+
style: [styles.container, containerStyle, {
|
|
35
|
+
transform: [{
|
|
36
|
+
rotate: rotateAnim.interpolate({
|
|
37
|
+
inputRange: [0, 1],
|
|
38
|
+
outputRange: ['0deg', '360deg']
|
|
39
|
+
})
|
|
40
|
+
}]
|
|
41
|
+
}],
|
|
42
|
+
children: /*#__PURE__*/_jsx(Loader, {
|
|
43
|
+
size: size,
|
|
44
|
+
color: color
|
|
45
|
+
})
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
export default RotatingLoader;
|
|
49
|
+
const styles = StyleSheet.create({
|
|
50
|
+
container: {
|
|
51
|
+
justifyContent: 'center',
|
|
52
|
+
alignItems: 'center'
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
//# sourceMappingURL=RotatingLoader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useEffect","useRef","StyleSheet","Animated","Easing","Loader","moderateScale","jsx","_jsx","RotatingLoader","size","color","containerStyle","rotationDuration","autoRotate","rotateAnim","Value","current","setValue","animation","loop","timing","toValue","duration","easing","linear","useNativeDriver","start","stop","stopAnimation","undefined","View","style","styles","container","transform","rotate","interpolate","inputRange","outputRange","children","create","justifyContent","alignItems"],"sourceRoot":"../../../../../../src","sources":["components/Reels/ReelsSeries/components/RotatingLoader.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,MAAM,QAAQ,OAAO;AAChD,SACEC,UAAU,EACVC,QAAQ,EACRC,MAAM,QAGD,cAAc;AACrB,SAASC,MAAM,QAAQ,qBAAqB;AAC5C,SAASC,aAAa,QAAQ,2BAA2B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAU1D,MAAMC,cAA6C,GAAGA,CAAC;EACrDC,IAAI,GAAGJ,aAAa,CAAC,EAAE,CAAC;EACxBK,KAAK,GAAG,MAAM;EACdC,cAAc;EACdC,gBAAgB,GAAG,IAAI;EACvBC,UAAU,GAAG;AACf,CAAC,KAAK;EACJ,MAAMC,UAAU,GAAGd,MAAM,CAAC,IAAIE,QAAQ,CAACa,KAAK,CAAC,CAAC,CAAC,CAAC,CAACC,OAAO;EAExDjB,SAAS,CAAC,MAAM;IACd,IAAIc,UAAU,EAAE;MACdC,UAAU,CAACG,QAAQ,CAAC,CAAC,CAAC;MACtB,MAAMC,SAAS,GAAGhB,QAAQ,CAACiB,IAAI,CAC7BjB,QAAQ,CAACkB,MAAM,CAACN,UAAU,EAAE;QAC1BO,OAAO,EAAE,CAAC;QACVC,QAAQ,EAAEV,gBAAgB;QAC1BW,MAAM,EAAEpB,MAAM,CAACqB,MAAM;QACrBC,eAAe,EAAE;MACnB,CAAC,CACH,CAAC;MACDP,SAAS,CAACQ,KAAK,CAAC,CAAC;MAEjB,OAAO,MAAM;QACXR,SAAS,CAACS,IAAI,CAAC,CAAC;QAChBb,UAAU,CAACc,aAAa,CAAC,CA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