@zezosoft/zezo-ott-react-native-ui-kit 1.0.0 → 1.0.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/README.md +1 -1
- package/lib/module/components/Account/Account.js +7 -6
- package/lib/module/components/Account/Account.js.map +1 -1
- package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js +39 -27
- package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js.map +1 -1
- package/lib/module/components/Auth/Login/LoginWithEmail.js +39 -25
- package/lib/module/components/Auth/Login/LoginWithEmail.js.map +1 -1
- package/lib/module/components/Auth/Login/LoginWithPhone.js +34 -25
- package/lib/module/components/Auth/Login/LoginWithPhone.js.map +1 -1
- package/lib/module/components/Auth/OTP/OTP.js +61 -42
- package/lib/module/components/Auth/OTP/OTP.js.map +1 -1
- package/lib/module/components/Auth/SignUp/SignUp.js +41 -26
- package/lib/module/components/Auth/SignUp/SignUp.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/SplashScreen.js +132 -0
- package/lib/module/components/Auth/SplashScreen/SplashScreen.js.map +1 -0
- package/lib/module/components/Auth/SplashScreen/components/SplashImage/SplashImage.js +61 -0
- package/lib/module/components/Auth/SplashScreen/components/SplashImage/SplashImage.js.map +1 -0
- package/lib/module/components/{SplashScreen → Auth/SplashScreen}/components/SplashLottie/SplashLottie.js +8 -17
- package/lib/module/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.js.map +1 -0
- package/lib/module/components/{SplashScreen → Auth/SplashScreen}/components/SplashVideo/SplashVideo.js +25 -11
- package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js.map +1 -0
- package/lib/module/components/Auth/index.js +3 -1
- package/lib/module/components/Auth/index.js.map +1 -1
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js +77 -57
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js.map +1 -1
- package/lib/module/components/BlogView/BlogView.js +28 -9
- package/lib/module/components/BlogView/BlogView.js.map +1 -1
- package/lib/module/components/Button/BackBtn.js +1 -1
- package/lib/module/components/Button/BackBtn.js.map +1 -1
- package/lib/module/components/Button/MenuBtn.js +5 -3
- package/lib/module/components/Button/MenuBtn.js.map +1 -1
- package/lib/module/components/Button/PrimaryBtn.js +3 -2
- package/lib/module/components/Button/PrimaryBtn.js.map +1 -1
- package/lib/module/components/Button/TextButton.js +3 -2
- package/lib/module/components/Button/TextButton.js.map +1 -1
- package/lib/module/components/Content/Card/Category/Category.js +3 -2
- package/lib/module/components/Content/Card/Category/Category.js.map +1 -1
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js +10 -7
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/Styles/One.js +6 -4
- package/lib/module/components/Content/Card/Sliders/Styles/One.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js +3 -2
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/index.js +1 -1
- package/lib/module/components/Content/Card/Sliders/index.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Five.js +7 -6
- package/lib/module/components/Content/Card/Styles/Five.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Four.js +9 -7
- package/lib/module/components/Content/Card/Styles/Four.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/One.js +33 -70
- package/lib/module/components/Content/Card/Styles/One.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/RotateInOut.js +6 -5
- package/lib/module/components/Content/Card/Styles/RotateInOut.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Six.js +7 -5
- package/lib/module/components/Content/Card/Styles/Six.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Three.js +6 -5
- package/lib/module/components/Content/Card/Styles/Three.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/TopTen.js +10 -12
- package/lib/module/components/Content/Card/Styles/TopTen.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Two.js +8 -6
- package/lib/module/components/Content/Card/Styles/Two.js.map +1 -1
- package/lib/module/components/Content/Card/components/CardPoster.js +17 -9
- package/lib/module/components/Content/Card/components/CardPoster.js.map +1 -1
- package/lib/module/components/Content/Card/components/NavigateToMore.js +4 -3
- package/lib/module/components/Content/Card/components/NavigateToMore.js.map +1 -1
- package/lib/module/components/Content/Card/components/NoContentFallback.js +5 -4
- package/lib/module/components/Content/Card/components/NoContentFallback.js.map +1 -1
- package/lib/module/components/Content/Card/components/ThumbnailCard.js +2 -1
- package/lib/module/components/Content/Card/components/ThumbnailCard.js.map +1 -1
- package/lib/module/components/Content/Content.js +21 -7
- package/lib/module/components/Content/Content.js.map +1 -1
- package/lib/module/components/Content/Sections.js +1 -1
- package/lib/module/components/Content/Sections.js.map +1 -1
- package/lib/module/components/ContentView/ContentView.js +8 -6
- package/lib/module/components/ContentView/ContentView.js.map +1 -1
- package/lib/module/components/ContentView/MoreContentList.js +211 -0
- package/lib/module/components/ContentView/MoreContentList.js.map +1 -0
- package/lib/module/components/ContentView/components/AboutSection.js +5 -4
- package/lib/module/components/ContentView/components/AboutSection.js.map +1 -1
- package/lib/module/components/ContentView/components/CastCard.js +5 -4
- package/lib/module/components/ContentView/components/CastCard.js.map +1 -1
- package/lib/module/components/ContentView/components/EpisodeCard.js +23 -3
- package/lib/module/components/ContentView/components/EpisodeCard.js.map +1 -1
- package/lib/module/components/ContentView/components/GenreTags.js +2 -1
- package/lib/module/components/ContentView/components/GenreTags.js.map +1 -1
- package/lib/module/components/ContentView/components/HeroBanner.js +14 -5
- package/lib/module/components/ContentView/components/HeroBanner.js.map +1 -1
- package/lib/module/components/ContentView/components/Title.js +4 -3
- package/lib/module/components/ContentView/components/Title.js.map +1 -1
- package/lib/module/components/ContentView/index.js +1 -0
- package/lib/module/components/ContentView/index.js.map +1 -1
- package/lib/module/components/Headers/AppHeader.js +20 -25
- package/lib/module/components/Headers/AppHeader.js.map +1 -1
- package/lib/module/components/Headers/One.js +1 -1
- package/lib/module/components/Headers/Three.js +5 -3
- package/lib/module/components/Headers/Three.js.map +1 -1
- package/lib/module/components/Headers/Two.js +5 -3
- package/lib/module/components/Headers/Two.js.map +1 -1
- package/lib/module/components/Input/InputOne.js +6 -4
- package/lib/module/components/Input/InputOne.js.map +1 -1
- package/lib/module/components/Input/InputTwo.js +5 -4
- package/lib/module/components/Input/InputTwo.js.map +1 -1
- package/lib/module/components/Input/PhoneNumberInput.js +12 -11
- package/lib/module/components/Input/PhoneNumberInput.js.map +1 -1
- package/lib/module/components/Keyboard/HideKeyboard.js +40 -12
- package/lib/module/components/Keyboard/HideKeyboard.js.map +1 -1
- package/lib/module/components/Logo/Logo.js +2 -1
- package/lib/module/components/Logo/Logo.js.map +1 -1
- package/lib/module/components/Search/One.js +6 -4
- package/lib/module/components/Search/One.js.map +1 -1
- package/lib/module/components/Search/components/RecentSearchesSection.js +10 -9
- package/lib/module/components/Search/components/RecentSearchesSection.js.map +1 -1
- package/lib/module/components/Search/components/SearchCard.js +6 -5
- package/lib/module/components/Search/components/SearchCard.js.map +1 -1
- package/lib/module/components/Settings/AppSettings.js +5 -4
- package/lib/module/components/Settings/AppSettings.js.map +1 -1
- package/lib/module/components/Subscription/SubOne.js +16 -15
- package/lib/module/components/Subscription/SubOne.js.map +1 -1
- package/lib/module/components/TabBar/One.js +5 -3
- package/lib/module/components/TabBar/One.js.map +1 -1
- package/lib/module/components/TabBar/Three.js +18 -14
- package/lib/module/components/TabBar/Three.js.map +1 -1
- package/lib/module/components/TabBar/Two.js +4 -2
- package/lib/module/components/TabBar/Two.js.map +1 -1
- package/lib/module/components/Text/Text.js +4 -4
- package/lib/module/components/Text/Text.js.map +1 -1
- package/lib/module/components/User/DeviceSessions/DeviceSessions.js +7 -6
- package/lib/module/components/User/DeviceSessions/DeviceSessions.js.map +1 -1
- package/lib/module/components/User/WatchHistory/WatchHistory.js +6 -7
- package/lib/module/components/User/WatchHistory/WatchHistory.js.map +1 -1
- package/lib/module/components/User/WatchLater/WatchLater.js +12 -9
- package/lib/module/components/User/WatchLater/WatchLater.js.map +1 -1
- package/lib/module/components/User/components/UserAvatar.js +1 -1
- package/lib/module/components/User/components/UserAvatar.js.map +1 -1
- package/lib/module/components/User/components/UserSection.js +5 -4
- package/lib/module/components/User/components/UserSection.js.map +1 -1
- package/lib/module/components/index.js +0 -1
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/layout/SafeAreaWrapper.js +12 -11
- package/lib/module/components/layout/SafeAreaWrapper.js.map +1 -1
- package/lib/module/hooks/useInitSplashCacheSync.js +67 -63
- package/lib/module/hooks/useInitSplashCacheSync.js.map +1 -1
- package/lib/module/hooks/useKeyboard.js +7 -9
- package/lib/module/hooks/useKeyboard.js.map +1 -1
- package/lib/module/hooks/usePaginatedSection.js +10 -3
- package/lib/module/hooks/usePaginatedSection.js.map +1 -1
- package/lib/module/theme/ThemeProvider.js +55 -52
- package/lib/module/theme/ThemeProvider.js.map +1 -1
- package/lib/module/theme/hook/useTheme.js +45 -0
- package/lib/module/theme/hook/useTheme.js.map +1 -0
- package/lib/module/theme/index.js +1 -0
- package/lib/module/theme/index.js.map +1 -1
- package/lib/module/theme/themes.js +1 -1
- package/lib/typescript/src/components/Account/Account.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/ForgotPassword/ForgotPassword.d.ts +9 -6
- package/lib/typescript/src/components/Auth/ForgotPassword/ForgotPassword.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/Login/LoginWithEmail.d.ts +6 -2
- package/lib/typescript/src/components/Auth/Login/LoginWithEmail.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/Login/LoginWithPhone.d.ts +6 -2
- package/lib/typescript/src/components/Auth/Login/LoginWithPhone.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/OTP/OTP.d.ts +7 -3
- package/lib/typescript/src/components/Auth/OTP/OTP.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/SignUp/SignUp.d.ts +6 -2
- package/lib/typescript/src/components/Auth/SignUp/SignUp.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/SplashScreen/SplashScreen.d.ts +34 -0
- package/lib/typescript/src/components/Auth/SplashScreen/SplashScreen.d.ts.map +1 -0
- package/lib/typescript/src/components/{SplashScreen → Auth/SplashScreen}/components/SplashImage/SplashImage.d.ts +2 -3
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.d.ts.map +1 -0
- package/lib/typescript/src/components/{SplashScreen → Auth/SplashScreen}/components/SplashLottie/SplashLottie.d.ts +1 -1
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.d.ts.map +1 -0
- package/lib/typescript/src/components/{SplashScreen → Auth/SplashScreen}/components/SplashVideo/SplashVideo.d.ts +1 -1
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/index.d.ts +49 -11
- package/lib/typescript/src/components/Auth/index.d.ts.map +1 -1
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayout.d.ts +5 -4
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayout.d.ts.map +1 -1
- package/lib/typescript/src/components/BlogView/BlogView.d.ts +1 -0
- package/lib/typescript/src/components/BlogView/BlogView.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/MenuBtn.d.ts +1 -8
- package/lib/typescript/src/components/Button/MenuBtn.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/PrimaryBtn.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/TextButton.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Category/Category.d.ts.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/Sliders/index.d.ts +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Five.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Four.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/RotateInOut.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Six.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Three.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/TopTen.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts +4 -0
- package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/NavigateToMore.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/NoContentFallback.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/ThumbnailCard.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Content.d.ts +1 -0
- package/lib/typescript/src/components/Content/Content.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/MoreContentList.d.ts +27 -0
- package/lib/typescript/src/components/ContentView/MoreContentList.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/components/AboutSection.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/CastCard.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts.map +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.map +1 -1
- package/lib/typescript/src/components/ContentView/components/Title.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/index.d.ts +1 -0
- package/lib/typescript/src/components/ContentView/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/AppHeader.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/Three.d.ts +1 -0
- package/lib/typescript/src/components/Headers/Three.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/Two.d.ts +1 -0
- package/lib/typescript/src/components/Headers/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/Input/InputOne.d.ts.map +1 -1
- package/lib/typescript/src/components/Input/InputTwo.d.ts.map +1 -1
- package/lib/typescript/src/components/Input/PhoneNumberInput.d.ts.map +1 -1
- package/lib/typescript/src/components/Keyboard/HideKeyboard.d.ts +1 -1
- package/lib/typescript/src/components/Keyboard/HideKeyboard.d.ts.map +1 -1
- package/lib/typescript/src/components/Logo/Logo.d.ts.map +1 -1
- package/lib/typescript/src/components/Search/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Search/components/RecentSearchesSection.d.ts.map +1 -1
- package/lib/typescript/src/components/Search/components/SearchCard.d.ts.map +1 -1
- package/lib/typescript/src/components/Settings/AppSettings.d.ts.map +1 -1
- package/lib/typescript/src/components/Subscription/SubOne.d.ts.map +1 -1
- package/lib/typescript/src/components/Subscription/index.d.ts.map +1 -1
- package/lib/typescript/src/components/TabBar/One.d.ts.map +1 -1
- package/lib/typescript/src/components/TabBar/Three.d.ts +2 -2
- package/lib/typescript/src/components/TabBar/Three.d.ts.map +1 -1
- package/lib/typescript/src/components/TabBar/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/User/DeviceSessions/DeviceSessions.d.ts.map +1 -1
- package/lib/typescript/src/components/User/WatchHistory/WatchHistory.d.ts.map +1 -1
- package/lib/typescript/src/components/User/WatchLater/WatchLater.d.ts.map +1 -1
- package/lib/typescript/src/components/User/components/UserSection.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/components/layout/SafeAreaWrapper.d.ts +2 -4
- package/lib/typescript/src/components/layout/SafeAreaWrapper.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useInitSplashCacheSync.d.ts +1 -1
- package/lib/typescript/src/hooks/useInitSplashCacheSync.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useKeyboard.d.ts.map +1 -1
- package/lib/typescript/src/hooks/usePaginatedSection.d.ts +1 -0
- package/lib/typescript/src/hooks/usePaginatedSection.d.ts.map +1 -1
- package/lib/typescript/src/theme/ThemeProvider.d.ts +8 -4
- package/lib/typescript/src/theme/ThemeProvider.d.ts.map +1 -1
- package/lib/typescript/src/theme/hook/useTheme.d.ts +9 -0
- package/lib/typescript/src/theme/hook/useTheme.d.ts.map +1 -0
- package/lib/typescript/src/theme/index.d.ts +1 -0
- package/lib/typescript/src/theme/index.d.ts.map +1 -1
- package/lib/typescript/src/types/content/content-view.types.d.ts +7 -3
- package/lib/typescript/src/types/content/content-view.types.d.ts.map +1 -1
- package/package.json +3 -2
- package/src/components/Account/Account.tsx +7 -6
- package/src/components/Auth/ForgotPassword/ForgotPassword.tsx +51 -32
- package/src/components/Auth/Login/LoginWithEmail.tsx +45 -26
- package/src/components/Auth/Login/LoginWithPhone.tsx +38 -24
- package/src/components/Auth/OTP/OTP.tsx +96 -61
- package/src/components/Auth/SignUp/SignUp.tsx +49 -31
- package/src/components/Auth/SplashScreen/SplashScreen.tsx +166 -0
- package/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.tsx +66 -0
- package/src/components/{SplashScreen → Auth/SplashScreen}/components/SplashLottie/SplashLottie.tsx +7 -19
- package/src/components/{SplashScreen → Auth/SplashScreen}/components/SplashVideo/SplashVideo.tsx +23 -14
- package/src/components/Auth/index.ts +3 -1
- package/src/components/BackgroundLayout/BackgroundLayout.tsx +72 -50
- package/src/components/BlogView/BlogView.tsx +29 -9
- package/src/components/Button/BackBtn.tsx +1 -1
- package/src/components/Button/MenuBtn.tsx +6 -9
- package/src/components/Button/PrimaryBtn.tsx +3 -2
- package/src/components/Button/TextButton.tsx +3 -2
- package/src/components/Content/Card/Category/Category.tsx +3 -2
- package/src/components/Content/Card/NowWatching/NowWatching.tsx +15 -8
- package/src/components/Content/Card/Sliders/Styles/One.tsx +4 -3
- package/src/components/Content/Card/Sliders/Styles/Two.tsx +3 -2
- package/src/components/Content/Card/Sliders/index.ts +1 -1
- package/src/components/Content/Card/Styles/Five.tsx +7 -6
- package/src/components/Content/Card/Styles/Four.tsx +7 -6
- package/src/components/Content/Card/Styles/One.tsx +44 -111
- package/src/components/Content/Card/Styles/RotateInOut.tsx +5 -5
- package/src/components/Content/Card/Styles/Six.tsx +7 -5
- package/src/components/Content/Card/Styles/Three.tsx +5 -5
- package/src/components/Content/Card/Styles/TopTen.tsx +10 -14
- package/src/components/Content/Card/Styles/Two.tsx +9 -7
- package/src/components/Content/Card/components/CardPoster.tsx +24 -11
- package/src/components/Content/Card/components/NavigateToMore.tsx +4 -3
- package/src/components/Content/Card/components/NoContentFallback.tsx +5 -4
- package/src/components/Content/Card/components/ThumbnailCard.tsx +2 -1
- package/src/components/Content/Content.tsx +38 -7
- package/src/components/Content/Sections.tsx +1 -1
- package/src/components/ContentView/ContentView.tsx +6 -6
- package/src/components/ContentView/MoreContentList.tsx +238 -0
- package/src/components/ContentView/components/AboutSection.tsx +5 -4
- package/src/components/ContentView/components/CastCard.tsx +5 -4
- package/src/components/ContentView/components/EpisodeCard.tsx +30 -4
- package/src/components/ContentView/components/GenreTags.tsx +2 -1
- package/src/components/ContentView/components/HeroBanner.tsx +10 -6
- package/src/components/ContentView/components/Title.tsx +4 -3
- package/src/components/ContentView/index.ts +1 -0
- package/src/components/Headers/AppHeader.tsx +20 -34
- package/src/components/Headers/One.tsx +1 -1
- package/src/components/Headers/Three.tsx +4 -3
- package/src/components/Headers/Two.tsx +4 -3
- package/src/components/Input/InputOne.tsx +6 -4
- package/src/components/Input/InputTwo.tsx +5 -4
- package/src/components/Input/PhoneNumberInput.tsx +12 -11
- package/src/components/Keyboard/HideKeyboard.tsx +41 -15
- package/src/components/Logo/Logo.tsx +2 -1
- package/src/components/Search/One.tsx +6 -5
- package/src/components/Search/components/RecentSearchesSection.tsx +10 -9
- package/src/components/Search/components/SearchCard.tsx +6 -5
- package/src/components/Settings/AppSettings.tsx +14 -13
- package/src/components/Subscription/SubOne.tsx +16 -15
- package/src/components/TabBar/One.tsx +6 -3
- package/src/components/TabBar/Three.tsx +28 -14
- package/src/components/TabBar/Two.tsx +4 -2
- package/src/components/Text/Text.tsx +4 -4
- package/src/components/User/DeviceSessions/DeviceSessions.tsx +7 -6
- package/src/components/User/WatchHistory/WatchHistory.tsx +5 -7
- package/src/components/User/WatchLater/WatchLater.tsx +12 -9
- package/src/components/User/components/UserAvatar.tsx +1 -1
- package/src/components/User/components/UserSection.tsx +5 -4
- package/src/components/index.ts +0 -1
- package/src/components/layout/SafeAreaWrapper.tsx +16 -9
- package/src/hooks/useInitSplashCacheSync.ts +74 -87
- package/src/hooks/useKeyboard.ts +9 -8
- package/src/hooks/usePaginatedSection.ts +7 -3
- package/src/theme/ThemeProvider.tsx +59 -55
- package/src/theme/hook/useTheme.ts +41 -0
- package/src/theme/index.ts +1 -0
- package/src/theme/themes.ts +1 -1
- package/src/types/content/content-view.types.ts +4 -2
- package/lib/module/components/SplashScreen/SplashScreen.js +0 -109
- package/lib/module/components/SplashScreen/SplashScreen.js.map +0 -1
- package/lib/module/components/SplashScreen/components/SplashImage/SplashImage.js +0 -68
- package/lib/module/components/SplashScreen/components/SplashImage/SplashImage.js.map +0 -1
- package/lib/module/components/SplashScreen/components/SplashLottie/SplashLottie.js.map +0 -1
- package/lib/module/components/SplashScreen/components/SplashVideo/SplashVideo.js.map +0 -1
- package/lib/module/components/SplashScreen/index.js +0 -9
- package/lib/module/components/SplashScreen/index.js.map +0 -1
- package/lib/typescript/src/components/SplashScreen/SplashScreen.d.ts +0 -32
- package/lib/typescript/src/components/SplashScreen/SplashScreen.d.ts.map +0 -1
- package/lib/typescript/src/components/SplashScreen/components/SplashImage/SplashImage.d.ts.map +0 -1
- package/lib/typescript/src/components/SplashScreen/components/SplashLottie/SplashLottie.d.ts.map +0 -1
- package/lib/typescript/src/components/SplashScreen/components/SplashVideo/SplashVideo.d.ts.map +0 -1
- package/lib/typescript/src/components/SplashScreen/index.d.ts +0 -6
- package/lib/typescript/src/components/SplashScreen/index.d.ts.map +0 -1
- package/src/components/SplashScreen/SplashScreen.tsx +0 -131
- package/src/components/SplashScreen/components/SplashImage/SplashImage.tsx +0 -84
- package/src/components/SplashScreen/index.ts +0 -6
package/src/hooks/useKeyboard.ts
CHANGED
|
@@ -3,26 +3,27 @@
|
|
|
3
3
|
* @lastModified Sat 14 Jun 2025 at 03:01 PM
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
// use keyboard hook check keyboard open or not
|
|
7
6
|
import { useEffect, useState } from 'react';
|
|
8
|
-
import { Keyboard } from 'react-native';
|
|
7
|
+
import { Keyboard, Platform } from 'react-native';
|
|
9
8
|
|
|
10
9
|
export const useKeyboard = () => {
|
|
11
10
|
const [isKeyboardOpen, setKeyboardOpen] = useState(false);
|
|
12
11
|
|
|
13
|
-
// hide keyboard when keyboard open
|
|
14
|
-
|
|
15
12
|
useEffect(() => {
|
|
16
|
-
const
|
|
13
|
+
const showEvent = Platform.OS === 'ios' ? 'keyboardWillShow' : 'keyboardDidShow';
|
|
14
|
+
const hideEvent = Platform.OS === 'ios' ? 'keyboardWillHide' : 'keyboardDidHide';
|
|
15
|
+
|
|
16
|
+
const showListener = Keyboard.addListener(showEvent, () => {
|
|
17
17
|
setKeyboardOpen(true);
|
|
18
18
|
});
|
|
19
|
-
|
|
19
|
+
|
|
20
|
+
const hideListener = Keyboard.addListener(hideEvent, () => {
|
|
20
21
|
setKeyboardOpen(false);
|
|
21
22
|
});
|
|
22
23
|
|
|
23
24
|
return () => {
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
showListener.remove();
|
|
26
|
+
hideListener.remove();
|
|
26
27
|
};
|
|
27
28
|
}, []);
|
|
28
29
|
|
|
@@ -21,6 +21,7 @@ export function usePaginatedSection<T>(
|
|
|
21
21
|
});
|
|
22
22
|
const [loading, setLoading] = useState(false);
|
|
23
23
|
|
|
24
|
+
// Sync initial data on mount or loading complete
|
|
24
25
|
React.useEffect(() => {
|
|
25
26
|
if (!isLoading && initialData.length) {
|
|
26
27
|
setData(initialData);
|
|
@@ -46,6 +47,8 @@ export function usePaginatedSection<T>(
|
|
|
46
47
|
return;
|
|
47
48
|
}
|
|
48
49
|
|
|
50
|
+
const { hasNextPage, nextPage } = res.meta.pagination;
|
|
51
|
+
|
|
49
52
|
setData((prev) => {
|
|
50
53
|
const existingIds = new Set((prev as any[]).map((item: any) => item._id));
|
|
51
54
|
const newItems = res.data.filter((item: any) => !existingIds.has(item._id));
|
|
@@ -53,8 +56,8 @@ export function usePaginatedSection<T>(
|
|
|
53
56
|
});
|
|
54
57
|
|
|
55
58
|
setPagination({
|
|
56
|
-
hasNextPage
|
|
57
|
-
nextPage
|
|
59
|
+
hasNextPage,
|
|
60
|
+
nextPage
|
|
58
61
|
});
|
|
59
62
|
} catch (err) {
|
|
60
63
|
console.error(`❌ Error loading section [${sectionId}]:`, err);
|
|
@@ -62,13 +65,14 @@ export function usePaginatedSection<T>(
|
|
|
62
65
|
setLoading(false);
|
|
63
66
|
}
|
|
64
67
|
},
|
|
65
|
-
[loading, pagination, fetchFn, sectionId]
|
|
68
|
+
[loading, pagination.hasNextPage, fetchFn, sectionId]
|
|
66
69
|
);
|
|
67
70
|
|
|
68
71
|
return {
|
|
69
72
|
data,
|
|
70
73
|
pagination,
|
|
71
74
|
loading,
|
|
75
|
+
hasMore: pagination.hasNextPage,
|
|
72
76
|
loadMoreData
|
|
73
77
|
};
|
|
74
78
|
}
|
|
@@ -1,19 +1,26 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @author Naresh Dhamu
|
|
3
|
-
* @lastModified Sat
|
|
3
|
+
* @lastModified Sat 26 Jul 2025 at 02:11 PM
|
|
4
4
|
*/
|
|
5
|
-
import React, { createContext,
|
|
5
|
+
import React, { createContext, useMemo, useState, useCallback, useEffect, useContext, type ReactNode } from 'react';
|
|
6
6
|
import { View, useColorScheme, StatusBar } from 'react-native';
|
|
7
|
+
import { SafeAreaProvider, initialWindowMetrics } from 'react-native-safe-area-context';
|
|
7
8
|
import { LightTheme, DarkTheme, type ITheme, type AppTheme } from './themes';
|
|
8
|
-
|
|
9
|
+
|
|
9
10
|
type ThemeContextType = {
|
|
10
11
|
theme: ITheme;
|
|
11
12
|
isDarkMode: boolean;
|
|
12
13
|
toggleTheme: () => void;
|
|
14
|
+
setThemeOverride: (override?: Partial<AppTheme>) => void;
|
|
13
15
|
};
|
|
14
16
|
|
|
15
17
|
const ThemeContext = createContext<ThemeContextType | null>(null);
|
|
16
|
-
|
|
18
|
+
|
|
19
|
+
export const useThemeContext = () => {
|
|
20
|
+
const ctx = useContext(ThemeContext);
|
|
21
|
+
if (!ctx) throw new Error('useTheme must be used within ZezoUIProvider');
|
|
22
|
+
return ctx;
|
|
23
|
+
};
|
|
17
24
|
|
|
18
25
|
type ZezoUIProviderProps = {
|
|
19
26
|
children: ReactNode;
|
|
@@ -21,83 +28,80 @@ type ZezoUIProviderProps = {
|
|
|
21
28
|
autoSwitchTheme?: boolean;
|
|
22
29
|
};
|
|
23
30
|
|
|
24
|
-
// ✅ Cleanly handles auto switch and manual dark mode
|
|
25
31
|
const getIsDarkMode = (
|
|
26
|
-
autoSwitchTheme: boolean,
|
|
32
|
+
autoSwitchTheme: boolean | undefined,
|
|
27
33
|
systemScheme: 'dark' | 'light' | null,
|
|
28
34
|
userDark?: boolean
|
|
29
35
|
): boolean => {
|
|
30
|
-
if (autoSwitchTheme)
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
return userDark === true;
|
|
36
|
+
if (autoSwitchTheme) return systemScheme === 'dark';
|
|
37
|
+
return userDark ?? false;
|
|
34
38
|
};
|
|
35
39
|
|
|
36
|
-
export const ZezoUIProvider: React.FC<ZezoUIProviderProps> = ({ children, theme, autoSwitchTheme
|
|
40
|
+
export const ZezoUIProvider: React.FC<ZezoUIProviderProps> = ({ children, theme, autoSwitchTheme }) => {
|
|
37
41
|
const systemScheme = useColorScheme() ?? null;
|
|
38
42
|
|
|
39
|
-
const [
|
|
40
|
-
getIsDarkMode(autoSwitchTheme, systemScheme, theme?.dark)
|
|
41
|
-
);
|
|
43
|
+
const [overrideTheme, setOverrideTheme] = useState<Partial<AppTheme> | undefined>(theme);
|
|
42
44
|
|
|
45
|
+
// ✅ Sync prop to state if changed externally
|
|
43
46
|
useEffect(() => {
|
|
44
|
-
|
|
45
|
-
|
|
47
|
+
if (theme) {
|
|
48
|
+
setOverrideTheme(theme);
|
|
49
|
+
}
|
|
50
|
+
}, [theme]);
|
|
51
|
+
|
|
52
|
+
// ✅ This prioritizes externally passed theme.dark
|
|
53
|
+
const isDarkMode = useMemo(() => {
|
|
54
|
+
if (theme?.dark !== undefined) return theme.dark;
|
|
55
|
+
return getIsDarkMode(autoSwitchTheme, systemScheme, overrideTheme?.dark);
|
|
56
|
+
}, [theme?.dark, autoSwitchTheme, systemScheme, overrideTheme?.dark]);
|
|
46
57
|
|
|
47
58
|
const baseTheme = useMemo<ITheme>(() => (isDarkMode ? DarkTheme : LightTheme), [isDarkMode]);
|
|
48
59
|
|
|
49
60
|
const mergedTheme = useMemo<ITheme>(() => {
|
|
50
61
|
return {
|
|
51
62
|
...baseTheme,
|
|
52
|
-
...
|
|
63
|
+
...overrideTheme,
|
|
64
|
+
dark: isDarkMode,
|
|
53
65
|
colors: {
|
|
54
66
|
...baseTheme.colors,
|
|
55
|
-
...(
|
|
67
|
+
...(overrideTheme?.colors ?? {})
|
|
56
68
|
}
|
|
57
69
|
};
|
|
58
|
-
}, [baseTheme,
|
|
70
|
+
}, [baseTheme, overrideTheme, isDarkMode]);
|
|
59
71
|
|
|
60
72
|
const toggleTheme = useCallback(() => {
|
|
61
|
-
if (autoSwitchTheme
|
|
62
|
-
|
|
63
|
-
|
|
73
|
+
if (autoSwitchTheme || theme?.dark !== undefined) return;
|
|
74
|
+
setOverrideTheme((prev) => ({
|
|
75
|
+
...prev,
|
|
76
|
+
dark: !getIsDarkMode(false, null, prev?.dark)
|
|
77
|
+
}));
|
|
78
|
+
}, [autoSwitchTheme, theme?.dark]);
|
|
79
|
+
|
|
80
|
+
const setThemeOverride = useCallback((override?: Partial<AppTheme>) => {
|
|
81
|
+
setOverrideTheme(override);
|
|
82
|
+
}, []);
|
|
83
|
+
|
|
84
|
+
// ✅ Update StatusBar only when required
|
|
85
|
+
useEffect(() => {
|
|
86
|
+
StatusBar.setBarStyle(isDarkMode ? 'light-content' : 'dark-content', true);
|
|
87
|
+
StatusBar.setBackgroundColor(mergedTheme.colors.background, true);
|
|
88
|
+
}, [isDarkMode, mergedTheme.colors.background]);
|
|
89
|
+
|
|
90
|
+
const contextValue = useMemo(
|
|
91
|
+
() => ({
|
|
92
|
+
theme: mergedTheme,
|
|
93
|
+
isDarkMode,
|
|
94
|
+
toggleTheme,
|
|
95
|
+
setThemeOverride
|
|
96
|
+
}),
|
|
97
|
+
[mergedTheme, isDarkMode, toggleTheme, setThemeOverride]
|
|
98
|
+
);
|
|
64
99
|
|
|
65
100
|
return (
|
|
66
|
-
<SafeAreaProvider>
|
|
67
|
-
<ThemeContext.Provider
|
|
68
|
-
value={{
|
|
69
|
-
theme: mergedTheme,
|
|
70
|
-
isDarkMode,
|
|
71
|
-
toggleTheme
|
|
72
|
-
}}
|
|
73
|
-
>
|
|
74
|
-
<StatusBar
|
|
75
|
-
barStyle={isDarkMode ? 'light-content' : 'dark-content'}
|
|
76
|
-
backgroundColor={mergedTheme.colors.background}
|
|
77
|
-
/>
|
|
101
|
+
<SafeAreaProvider initialMetrics={initialWindowMetrics}>
|
|
102
|
+
<ThemeContext.Provider value={contextValue}>
|
|
78
103
|
<View style={{ flex: 1, backgroundColor: mergedTheme.colors.background }}>{children}</View>
|
|
79
104
|
</ThemeContext.Provider>
|
|
80
105
|
</SafeAreaProvider>
|
|
81
106
|
);
|
|
82
107
|
};
|
|
83
|
-
|
|
84
|
-
// ✅ useTheme hook with optional override support
|
|
85
|
-
export const useTheme = (overrideTheme?: Partial<AppTheme>): { theme: ITheme } => {
|
|
86
|
-
const context = useContext(ThemeContext);
|
|
87
|
-
if (!context) {
|
|
88
|
-
throw new Error('useTheme must be used within a ZezoUIProvider');
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
const finalTheme = useMemo<ITheme>(() => {
|
|
92
|
-
return {
|
|
93
|
-
...context.theme,
|
|
94
|
-
...overrideTheme,
|
|
95
|
-
colors: {
|
|
96
|
-
...context.theme.colors,
|
|
97
|
-
...(overrideTheme?.colors || {})
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
}, [context.theme, overrideTheme]);
|
|
101
|
-
|
|
102
|
-
return { theme: finalTheme };
|
|
103
|
-
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author Naresh Dhamu
|
|
3
|
+
* @lastModified Sat 26 Jul 2025 at 02:11 PM
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import React, { useMemo } from 'react';
|
|
7
|
+
import { useThemeContext } from '../ThemeProvider';
|
|
8
|
+
import { DarkTheme, LightTheme, type AppTheme, type ITheme } from '../themes';
|
|
9
|
+
|
|
10
|
+
export const useTheme = (override?: Partial<AppTheme>): { theme: ITheme } => {
|
|
11
|
+
const { theme: contextTheme, isDarkMode, setThemeOverride } = useThemeContext();
|
|
12
|
+
|
|
13
|
+
const isOverrideDark = override?.dark ?? contextTheme.dark ?? isDarkMode;
|
|
14
|
+
|
|
15
|
+
const baseTheme = useMemo(() => {
|
|
16
|
+
return isOverrideDark ? DarkTheme : LightTheme;
|
|
17
|
+
}, [isOverrideDark]);
|
|
18
|
+
|
|
19
|
+
const finalTheme = useMemo<ITheme>(() => {
|
|
20
|
+
return {
|
|
21
|
+
...baseTheme,
|
|
22
|
+
...override,
|
|
23
|
+
dark: isOverrideDark,
|
|
24
|
+
colors: {
|
|
25
|
+
...baseTheme.colors,
|
|
26
|
+
...(override?.colors ?? {})
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
}, [baseTheme, override, isOverrideDark]);
|
|
30
|
+
|
|
31
|
+
// 🔄 Push override only once (optional)
|
|
32
|
+
React.useEffect(() => {
|
|
33
|
+
if (override) {
|
|
34
|
+
setThemeOverride(override);
|
|
35
|
+
} else {
|
|
36
|
+
setThemeOverride(undefined);
|
|
37
|
+
}
|
|
38
|
+
}, [override, setThemeOverride]);
|
|
39
|
+
|
|
40
|
+
return useMemo(() => ({ theme: finalTheme }), [finalTheme]);
|
|
41
|
+
};
|
package/src/theme/index.ts
CHANGED
package/src/theme/themes.ts
CHANGED
|
@@ -168,7 +168,7 @@ export const LightTheme: ITheme = {
|
|
|
168
168
|
transparent: 'rgba(0, 0, 0, 0)',
|
|
169
169
|
|
|
170
170
|
backgroundLayoutGradient: [
|
|
171
|
-
'rgba(255, 255, 255, 0.
|
|
171
|
+
'rgba(255, 255, 255, 0.3)',
|
|
172
172
|
'rgba(255, 255, 255, 0.98)',
|
|
173
173
|
'rgb(255, 255, 255)',
|
|
174
174
|
'rgb(249, 250, 251)'
|
|
@@ -10,6 +10,7 @@ import type { IContentData } from '../../types';
|
|
|
10
10
|
import type { IGetSectionData, ISectionItem } from '../../types/sections';
|
|
11
11
|
import type { MoreFetchData } from '../../types/hook/usePaginatedSetion';
|
|
12
12
|
import type { IHistoryItem } from '../../components/User/WatchHistory/WatchHistory';
|
|
13
|
+
import type React from 'react';
|
|
13
14
|
|
|
14
15
|
// 🔷 Common Style Aliases
|
|
15
16
|
export type ViewStyleProp = StyleProp<ViewStyle>;
|
|
@@ -94,8 +95,9 @@ export type ContentViewEvents = {
|
|
|
94
95
|
// 🟦 Menu
|
|
95
96
|
export type MenuAction = {
|
|
96
97
|
label: string;
|
|
97
|
-
icon:
|
|
98
|
+
icon?: (props: { size?: number; color?: string }) => React.ReactNode;
|
|
98
99
|
onPress: () => void;
|
|
100
|
+
isLoading?: boolean;
|
|
99
101
|
};
|
|
100
102
|
|
|
101
103
|
// 🟨 HeroBanner
|
|
@@ -118,7 +120,7 @@ export type HeroBannerProps = {
|
|
|
118
120
|
title: IContentData['name'];
|
|
119
121
|
theme: ITheme;
|
|
120
122
|
isLoading?: boolean;
|
|
121
|
-
onPressPlay?: () => void;
|
|
123
|
+
onPressPlay?: ({ is_trailer }: { is_trailer: boolean }) => void;
|
|
122
124
|
onBackPress?: () => void;
|
|
123
125
|
style?: ViewStyleProp;
|
|
124
126
|
renderButtons?: RenderButtons;
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @author Naresh Dhamu
|
|
5
|
-
* @lastModified Fri 13 Jun 2025 at 09:13 AM
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import React, { useEffect, useMemo, useCallback } from 'react';
|
|
9
|
-
import SplashImage from './components/SplashImage/SplashImage';
|
|
10
|
-
import SplashVideo from './components/SplashVideo/SplashVideo';
|
|
11
|
-
import SplashLottie from './components/SplashLottie/SplashLottie';
|
|
12
|
-
import { useInitSplashCacheSync } from '../../hooks/useInitSplashCacheSync';
|
|
13
|
-
import { BackgroundLayout } from '../BackgroundLayout/BackgroundLayout';
|
|
14
|
-
import { ZezoUIProvider } from '../../theme/ThemeProvider';
|
|
15
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
|
-
const DEFAULT_TIMEOUT = 5;
|
|
17
|
-
export const SplashScreen = ({
|
|
18
|
-
splashScreenConfig: {
|
|
19
|
-
source,
|
|
20
|
-
type = 'image',
|
|
21
|
-
width,
|
|
22
|
-
height,
|
|
23
|
-
isStatic = false,
|
|
24
|
-
timeout,
|
|
25
|
-
fullscreen = false,
|
|
26
|
-
resizeMode = 'contain',
|
|
27
|
-
backgroundColor,
|
|
28
|
-
backgroundImage
|
|
29
|
-
},
|
|
30
|
-
gradientEnabled = false,
|
|
31
|
-
innerContainerStyle,
|
|
32
|
-
onImageError,
|
|
33
|
-
onRedirect,
|
|
34
|
-
autoSwitchTheme = false,
|
|
35
|
-
gradientSplit = 0.42,
|
|
36
|
-
theme
|
|
37
|
-
}) => {
|
|
38
|
-
const isRemote = useMemo(() => source.startsWith('http'), [source]);
|
|
39
|
-
const {
|
|
40
|
-
data: {
|
|
41
|
-
localPathLogo
|
|
42
|
-
}
|
|
43
|
-
} = useInitSplashCacheSync({
|
|
44
|
-
logoUrl: isRemote ? source : undefined,
|
|
45
|
-
backgroundUrl: backgroundImage
|
|
46
|
-
});
|
|
47
|
-
const actualSource = isRemote && localPathLogo ? localPathLogo : source;
|
|
48
|
-
const effectiveTimeout = timeout ?? (type === 'image' || isStatic ? DEFAULT_TIMEOUT : undefined);
|
|
49
|
-
const handleRedirect = useCallback(() => {
|
|
50
|
-
try {
|
|
51
|
-
onRedirect();
|
|
52
|
-
} catch (error) {
|
|
53
|
-
console.error('[SplashScreen] Redirect failed:', error);
|
|
54
|
-
}
|
|
55
|
-
}, [onRedirect]);
|
|
56
|
-
useEffect(() => {
|
|
57
|
-
if (effectiveTimeout) {
|
|
58
|
-
const timer = setTimeout(handleRedirect, effectiveTimeout * 1000);
|
|
59
|
-
return () => clearTimeout(timer);
|
|
60
|
-
}
|
|
61
|
-
return undefined;
|
|
62
|
-
}, [effectiveTimeout, handleRedirect]);
|
|
63
|
-
const commonProps = useMemo(() => ({
|
|
64
|
-
source: actualSource,
|
|
65
|
-
localSource: actualSource,
|
|
66
|
-
width,
|
|
67
|
-
height,
|
|
68
|
-
fullscreen,
|
|
69
|
-
resizeMode: resizeMode
|
|
70
|
-
}), [actualSource, width, height, fullscreen, resizeMode]);
|
|
71
|
-
const renderSplash = useCallback(() => {
|
|
72
|
-
switch (type) {
|
|
73
|
-
case 'video':
|
|
74
|
-
return /*#__PURE__*/_jsx(SplashVideo, {
|
|
75
|
-
...commonProps,
|
|
76
|
-
onEnd: effectiveTimeout ? undefined : handleRedirect
|
|
77
|
-
});
|
|
78
|
-
case 'lottie-animation':
|
|
79
|
-
return /*#__PURE__*/_jsx(SplashLottie, {
|
|
80
|
-
...commonProps,
|
|
81
|
-
onAnimationFinish: effectiveTimeout ? undefined : handleRedirect
|
|
82
|
-
});
|
|
83
|
-
case 'image':
|
|
84
|
-
return /*#__PURE__*/_jsx(SplashImage, {
|
|
85
|
-
...commonProps
|
|
86
|
-
});
|
|
87
|
-
default:
|
|
88
|
-
console.warn(`[SplashScreen] Unsupported type: ${type}`);
|
|
89
|
-
return /*#__PURE__*/_jsx(SplashImage, {
|
|
90
|
-
...commonProps
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
}, [type, commonProps, effectiveTimeout, handleRedirect]);
|
|
94
|
-
return /*#__PURE__*/_jsx(ZezoUIProvider, {
|
|
95
|
-
theme: theme,
|
|
96
|
-
autoSwitchTheme: autoSwitchTheme,
|
|
97
|
-
children: /*#__PURE__*/_jsx(BackgroundLayout, {
|
|
98
|
-
backgroundImage: backgroundImage,
|
|
99
|
-
backgroundColor: backgroundColor,
|
|
100
|
-
resizeMode: "cover",
|
|
101
|
-
gradientEnabled: gradientEnabled,
|
|
102
|
-
innerContainerStyle: innerContainerStyle,
|
|
103
|
-
onImageError: onImageError,
|
|
104
|
-
gradientSplit: gradientSplit,
|
|
105
|
-
children: renderSplash()
|
|
106
|
-
})
|
|
107
|
-
});
|
|
108
|
-
};
|
|
109
|
-
//# sourceMappingURL=SplashScreen.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","useEffect","useMemo","useCallback","SplashImage","SplashVideo","SplashLottie","useInitSplashCacheSync","BackgroundLayout","ZezoUIProvider","jsx","_jsx","DEFAULT_TIMEOUT","SplashScreen","splashScreenConfig","source","type","width","height","isStatic","timeout","fullscreen","resizeMode","backgroundColor","backgroundImage","gradientEnabled","innerContainerStyle","onImageError","onRedirect","autoSwitchTheme","gradientSplit","theme","isRemote","startsWith","data","localPathLogo","logoUrl","undefined","backgroundUrl","actualSource","effectiveTimeout","handleRedirect","error","console","timer","setTimeout","clearTimeout","commonProps","localSource","renderSplash","onEnd","onAnimationFinish","war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CAAC;MACzC;QACEJ,OAAO,CAACS,IAAI,CAAC,oCAAoCpC,IAAI,EAAE,CAAC;QACxD,oBAAOL,IAAA,CAACP,WAAW;UAAA,GAAK2C;QAAW,CAAG,CAAC;IAC3C;EACF,CAAC,EAAE,CAAC/B,IAAI,EAAE+B,WAAW,EAAEP,gBAAgB,EAAEC,cAAc,CAAC,CAAC;EACzD,oBACE9B,IAAA,CAACF,cAAc;IAACsB,KAAK,EAAEA,KAAM;IAACF,eAAe,EAAEA,eAAgB;IAAAwB,QAAA,eAC7D1C,IAAA,CAACH,gBAAgB;MACfgB,eAAe,EAAEA,eAAgB;MACjCD,eAAe,EAAEA,eAAgB;MACjCD,UAAU,EAAC,OAAO;MAClBG,eAAe,EAAEA,eAAgB;MACjCC,mBAAmB,EAAEA,mBAAoB;MACzCC,YAAY,EAAEA,YAAa;MAC3BG,aAAa,EAAEA,aAAc;MAAAuB,QAAA,EAE5BJ,YAAY,CAAC;IAAC,CACC;EAAC,CACL,CAAC;AAErB,CAAC","ignoreList":[]}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @author Naresh Dhamu
|
|
5
|
-
* @lastModified Mon 09 Jun 2025 at 05:30 PM
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import React, { useState, useMemo } from 'react';
|
|
9
|
-
import FastImage from 'react-native-fast-image';
|
|
10
|
-
import { ActivityIndicator, View, StyleSheet } from 'react-native';
|
|
11
|
-
import Display from '../../../../utils/Display';
|
|
12
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
const SplashImage = ({
|
|
14
|
-
fullscreen,
|
|
15
|
-
height,
|
|
16
|
-
localSource,
|
|
17
|
-
resizeMode = 'contain',
|
|
18
|
-
width,
|
|
19
|
-
source
|
|
20
|
-
}) => {
|
|
21
|
-
const [isLoading, setIsLoading] = useState(!!source); // Only show loader for remote images
|
|
22
|
-
|
|
23
|
-
// Memoize image styles to prevent unnecessary recalculations
|
|
24
|
-
const imageStyles = useMemo(() => ({
|
|
25
|
-
width: fullscreen ? Display.fullWidth : width,
|
|
26
|
-
height: fullscreen ? Display.fullHeight : height,
|
|
27
|
-
flex: 1
|
|
28
|
-
}), [fullscreen, width, height]);
|
|
29
|
-
const handleLoadEnd = useMemo(() => source ? () => setIsLoading(false) : undefined, [source]);
|
|
30
|
-
if (source) {
|
|
31
|
-
return /*#__PURE__*/_jsxs(View, {
|
|
32
|
-
style: styles.container,
|
|
33
|
-
children: [isLoading && /*#__PURE__*/_jsx(ActivityIndicator, {
|
|
34
|
-
size: "large",
|
|
35
|
-
style: styles.loader
|
|
36
|
-
}), /*#__PURE__*/_jsx(FastImage, {
|
|
37
|
-
source: {
|
|
38
|
-
uri: source.startsWith('file://') ? source : `file://${source}`
|
|
39
|
-
},
|
|
40
|
-
onLoadEnd: handleLoadEnd,
|
|
41
|
-
style: imageStyles,
|
|
42
|
-
resizeMode: resizeMode,
|
|
43
|
-
onError: () => setIsLoading(false)
|
|
44
|
-
})]
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
return /*#__PURE__*/_jsx(FastImage, {
|
|
48
|
-
source: {
|
|
49
|
-
uri: localSource.startsWith('file://') ? localSource : `file://${localSource}`
|
|
50
|
-
},
|
|
51
|
-
style: imageStyles,
|
|
52
|
-
resizeMode: resizeMode
|
|
53
|
-
});
|
|
54
|
-
};
|
|
55
|
-
const styles = StyleSheet.create({
|
|
56
|
-
container: {
|
|
57
|
-
flex: 1,
|
|
58
|
-
width: Display.fullWidth,
|
|
59
|
-
height: Display.fullHeight,
|
|
60
|
-
justifyContent: 'center',
|
|
61
|
-
alignItems: 'center'
|
|
62
|
-
},
|
|
63
|
-
loader: {
|
|
64
|
-
position: 'absolute'
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
export default /*#__PURE__*/React.memo(SplashImage);
|
|
68
|
-
//# sourceMappingURL=SplashImage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","useMemo","FastImage","ActivityIndicator","View","StyleSheet","Display","jsx","_jsx","jsxs","_jsxs","SplashImage","fullscreen","height","localSource","resizeMode","width","source","isLoading","setIsLoading","imageStyles","fullWidth","fullHeight","flex","handleLoadEnd","undefined","style","styles","container","children","size","loader","uri","startsWith","onLoadEnd","onError","create","justifyContent","alignItems","position","memo"],"sourceRoot":"../../../../../../src","sources":["components/SplashScreen/components/SplashImage/SplashImage.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,OAAO,QAAQ,OAAO;AAChD,OAAOC,SAAS,MAAM,yBAAyB;AAC/C,SAASC,iBAAiB,EAAEC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAClE,OAAOC,OAAO,MAAM,2BAA2B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAYhD,MAAMC,WAAuC,GAAGA,CAAC;EAC/CC,UAAU;EACVC,MAAM;EACNC,WAAW;EACXC,UAAU,GAAG,SAAS;EACtBC,KAAK;EACLC;AACF,CAAC,KAAK;EACJ,MAAM,CAACC,SAAS,EAAEC,YAAY,CAAC,GAAGnB,QAAQ,CAAC,CAAC,CAACiB,MAAM,CAAC,CAAC,CAAC;;EAEtD;EACA,MAAMG,WAAW,GAAGnB,OAAO,CACzB,OAAO;IACLe,KAAK,EAAEJ,UAAU,GAAGN,OAAO,CAACe,SAAS,GAAGL,KAAK;IAC7CH,MAAM,EAAED,UAAU,GAAGN,OAAO,CAACgB,UAAU,GAAGT,MAAM;IAChDU,IAAI,EAAE;EACR,CAAC,CAAC,EACF,CAACX,UAAU,EAAEI,KAAK,EAAEH,MAAM,CAC5B,CAAC;EAED,MAAMW,aAAa,GAAGvB,OAAO,CAAC,MAAOgB,MAAM,GAAG,MAAME,YAAY,CAAC,KAAK,CAAC,GAAGM,SAAU,EAAE,CAACR,MA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atformSelector","jsx","_jsx","SplashLottie","fullscreen","height","localSource","resizeMode","width","onAnimationFinish","source","console","warn","isAndroid","uri","startsWith","lottieStyle","styles","base","fullWidth","fullHeight","autoPlay","loop","style","hardwareAccelerationAndroid","cacheComposition","create","alignSelf","flex","memo"],"sourceRoot":"../../../../../../src","sources":["components/SplashScreen/components/SplashLottie/SplashLottie.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,OAAOC,UAAU,MAAM,qBAAqB;AAC5C,SAASC,UAAU,QAAQ,cAAc;AACzC,OAAOC,OAAO,MAAM,2BAA2B;AAC/C,OAAOC,gBAAgB,MAAM,oCAAoC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAalE,MAAMC,YAA8B,GAAGA,CAAC;EACtCC,UAAU;EACVC,MAAM;EACNC,WAAW;EACXC,UAAU,GAAG,SAAS;EACtBC,KAAK;EACLC;AACF,CAAC,KAAK;EACJ;EACA,MAAMC,MAAM,GAAGd,OAAO,CAAC,MAAM;IAC3B,IAAI,CAACU,WAAW,EAAE;MAChBK,OAAO,CAACC,IAAI,CAAC,oCAAoC,CAAC;MAClD,OAAO,IAAI;IACb;IAEA,OAAOZ,gBAAgB,CAACa,SAAS,CAAC,CAAC,GAC/B;MAAEC,GAAG,EAAER;IAAY,CAAC,GACpB;MACEQ,GAAG,EAAER,WAAW,CAACS,UAAU,CAAC,SAAS,CAAC,GAAGT,WAAW,GAAG,UAAUA,WAAW;IAC9E,CAAC;EACP,CAAC,EAAE,CAACA,WAAW,CAAC,CAAC;;EAEjB;EACA,MAAMU,WAAW,GAAGpB,OAAO,CACzB,OAAO;IACL,GAAGqB,MAAM,CAACC,IAAI;IACdV,KAAK,EAAEJ,UAAU,GAAGL,OAAO,CAACoB,SAAS,GAAGX,KAAK;IAC7CH,MAAM,EAAED,UAAU,GAAGL,OAAO,CAACqB,UAAU,GAAGf,MAAM;IAChD,IAAID,UAAU,GAAGa,MAAM,CAACb,UAAU,GAAG,CAAC,CAAC;EACzC,CAAC,CAAC,EACF,CAACA,UAAU,EAAEI,KAAK,EAAEH,MAAM,CAC5B,CAAC;;EAED;EACA,IAAI,CAACK,MAAM,EAAE;IACX,OAAO,IAAI;EACb;EAEA,oBACER,IAAA,CAACL,UAAU;IACTa,MAAM,EAAEA,MAAO;IACfW,QAAQ;IACRC,IAAI,EAAE,KAAM;IACZb,iBAAiB,EAAEA,iBAAkB;IACrCc,KAAK,EAAEP,WAAY;IACnBT,UAAU,EAAEA,UAAW;IACvBiB,2BAA2B;IAC3BC,gBAAgB;EAAA,CACjB,CAAC;AAEN,CAAC;AAED,MAAMR,MAAM,GAAGnB,UAAU,CAAC4B,MAAM,CAAC;EAC/BR,IAAI,EAAE;IACJS,SAAS,EAAE;EACb,CAAC;EACDvB,UAAU,EAAE;IACVwB,IAAI,EAAE;EACR;AACF,CAAC,CAAC;AAEF,4BAAejC,KAAK,CAACkC,IAAI,CAAC1B,YAAY,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","useRef","useMemo","useCallback","Video","Display","jsx","_jsx","SplashVideo","fullscreen","height","localSource","resizeMode","width","onEnd","onLoadStart","onLoaded","onError","videoRef","videoStyle","fullWidth","fullHeight","videoSource","uri","handleLoadStart","handleLoad","data","handleError","e","error","message","console","ref","source","style","paused","onLoad","ignoreSilentSwitch","playInBackground","playWhenInactive","allowsExternalPlayback","automaticallyWaitsToMinimizeStalling","memo"],"sourceRoot":"../../../../../../src","sources":["components/SplashScreen/components/SplashVideo/SplashVideo.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,MAAM,EAAEC,OAAO,EAAEC,WAAW,QAAQ,OAAO;AAC3D,OAAOC,KAAK,MAAyB,oBAAoB;AACzD,OAAOC,OAAO,MAAM,2BAA2B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAchD,MAAMC,WAA6B,GAAGA,C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EX,WAAY;IACpBY,KAAK,EAAEf,UAAW;IAClBP,UAAU,EAAEA,UAAW;IACvBuB,MAAM,EAAE,KAAM;IACdpB,WAAW,EAAES,eAAgB;IAC7BY,MAAM,EAAEX,UAAW;IACnBR,OAAO,EAAEU,WAAY;IACrBb,KAAK,EAAEA;IACP;IAAA;IACAuB,kBAAkB,EAAC,MAAM;IACzBC,gBAAgB,EAAE,KAAM;IACxBC,gBAAgB,EAAE,KAAM;IACxBC,sBAAsB,EAAE,KAAM;IAC9BC,oCAAoC,EAAE;EAAK,CAC5C,CAAC;AAEN,CAAC;AAED,4BAAezC,KAAK,CAAC0C,IAAI,CAAClC,WAAW,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/SplashScreen/index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,cAAc,gBAAgB","ignoreList":[]}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Naresh Dhamu
|
|
3
|
-
* @lastModified Fri 13 Jun 2025 at 09:13 AM
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import type { ViewStyle } from 'react-native';
|
|
7
|
-
import type { AppTheme } from '../../theme/themes';
|
|
8
|
-
interface SplashScreenConfig {
|
|
9
|
-
source: string;
|
|
10
|
-
type?: 'image' | 'video' | 'lottie-animation';
|
|
11
|
-
width: number;
|
|
12
|
-
height: number;
|
|
13
|
-
isStatic?: boolean;
|
|
14
|
-
timeout?: number;
|
|
15
|
-
fullscreen?: boolean;
|
|
16
|
-
resizeMode?: 'cover' | 'contain' | 'stretch' | 'center';
|
|
17
|
-
backgroundColor?: string;
|
|
18
|
-
backgroundImage?: string;
|
|
19
|
-
}
|
|
20
|
-
interface SplashScreenProps {
|
|
21
|
-
splashScreenConfig: SplashScreenConfig;
|
|
22
|
-
gradientEnabled?: boolean;
|
|
23
|
-
innerContainerStyle?: ViewStyle;
|
|
24
|
-
onImageError?: (error: Error) => void;
|
|
25
|
-
onRedirect: () => void;
|
|
26
|
-
autoSwitchTheme?: boolean;
|
|
27
|
-
gradientSplit?: number;
|
|
28
|
-
theme?: AppTheme;
|
|
29
|
-
}
|
|
30
|
-
export declare const SplashScreen: React.FC<SplashScreenProps>;
|
|
31
|
-
export {};
|
|
32
|
-
//# sourceMappingURL=SplashScreen.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SplashScreen.d.ts","sourceRoot":"","sources":["../../../../../src/components/SplashScreen/SplashScreen.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAA0C,MAAM,OAAO,CAAC;AAO/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD,UAAU,kBAAkB;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,kBAAkB,CAAC;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;IACxD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,UAAU,iBAAiB;IACzB,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,mBAAmB,CAAC,EAAE,SAAS,CAAC;IAChC,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACtC,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,QAAQ,CAAC;CAClB;AAID,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAyFpD,CAAC"}
|
package/lib/typescript/src/components/SplashScreen/components/SplashImage/SplashImage.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SplashImage.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/SplashScreen/components/SplashImage/SplashImage.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAA4B,MAAM,OAAO,CAAC;AAKjD,KAAK,gBAAgB,GAAG;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;IACxD,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;;AAiEF,wBAAuC"}
|
package/lib/typescript/src/components/SplashScreen/components/SplashLottie/SplashLottie.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SplashLottie.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/SplashScreen/components/SplashLottie/SplashLottie.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAkB,MAAM,OAAO,CAAC;AAMvC,KAAK,UAAU,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEjD,UAAU,MAAM;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;CAChC;;AA+DD,wBAAwC"}
|
package/lib/typescript/src/components/SplashScreen/components/SplashVideo/SplashVideo.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SplashVideo.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/SplashScreen/components/SplashVideo/SplashVideo.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAuC,MAAM,OAAO,CAAC;AAI5D,UAAU,MAAM;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,CAAC;IACtD,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IAC/B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;CAChC;;AA2ED,wBAAuC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/SplashScreen/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,gBAAgB,CAAC"}
|