@zezosoft/zezo-ott-react-native-ui-kit 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +0 -0
- package/README.md +6 -0
- package/lib/module/assets/animations/135037-payment-processing-error.json +1347 -1
- package/lib/module/assets/animations/7227-vui-animation.json +3377 -1
- package/lib/module/assets/animations/heart.json +788 -0
- package/lib/module/assets/animations/succesfull-payment.json +2379 -1
- package/lib/module/assets/animations/voice-icon.json +542 -1
- package/lib/module/components/Account/Account.js +6 -6
- package/lib/module/components/Account/Account.js.map +1 -1
- package/lib/module/components/Account/index.js +1 -1
- package/lib/module/components/Account/index.js.map +1 -1
- package/lib/module/components/Alert/UAAlert.js +138 -0
- package/lib/module/components/Alert/UAAlert.js.map +1 -0
- package/lib/module/components/Alert/index.js +4 -0
- package/lib/module/components/Alert/index.js.map +1 -0
- package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js +9 -9
- package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js.map +1 -1
- package/lib/module/components/Auth/Login/LoginWithEmail.js +10 -10
- package/lib/module/components/Auth/Login/LoginWithEmail.js.map +1 -1
- package/lib/module/components/Auth/Login/LoginWithPhone.js +10 -10
- package/lib/module/components/Auth/Login/LoginWithPhone.js.map +1 -1
- package/lib/module/components/Auth/OTP/OTP.js +9 -9
- package/lib/module/components/Auth/OTP/OTP.js.map +1 -1
- package/lib/module/components/Auth/QrLogin/QrLogin.js +267 -0
- package/lib/module/components/Auth/QrLogin/QrLogin.js.map +1 -0
- package/lib/module/components/Auth/QrLogin/components/QrViewArea.js +178 -0
- package/lib/module/components/Auth/QrLogin/components/QrViewArea.js.map +1 -0
- package/lib/module/components/Auth/SignUp/SignUp.js +10 -10
- package/lib/module/components/Auth/SignUp/SignUp.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/SplashScreen.js +6 -6
- package/lib/module/components/Auth/SplashScreen/SplashScreen.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashImage/SplashImage.js +1 -6
- package/lib/module/components/Auth/SplashScreen/components/SplashImage/SplashImage.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.js +1 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js +1 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js.map +1 -1
- package/lib/module/components/Auth/index.js +9 -7
- package/lib/module/components/Auth/index.js.map +1 -1
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js +1 -1
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js.map +1 -1
- package/lib/module/components/BlogView/BlogView.js +4 -10
- package/lib/module/components/BlogView/BlogView.js.map +1 -1
- package/lib/module/components/BlogView/index.js +1 -1
- package/lib/module/components/BlogView/index.js.map +1 -1
- package/lib/module/components/Button/BackBtn.js +1 -1
- package/lib/module/components/Button/BackBtn.js.map +1 -1
- package/lib/module/components/Button/MenuBtn.js +1 -1
- package/lib/module/components/Button/MenuBtn.js.map +1 -1
- package/lib/module/components/Button/PrimaryBtn.js +2 -2
- package/lib/module/components/Button/PrimaryBtn.js.map +1 -1
- package/lib/module/components/Button/TextButton.js +2 -2
- package/lib/module/components/Button/TextButton.js.map +1 -1
- package/lib/module/components/Button/index.js +3 -3
- package/lib/module/components/Button/index.js.map +1 -1
- package/lib/module/components/Content/Card/Category/Category.js +2 -2
- package/lib/module/components/Content/Card/Category/Category.js.map +1 -1
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js +6 -6
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/Styles/One.js +3 -3
- package/lib/module/components/Content/Card/Sliders/Styles/One.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js +4 -4
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/index.js +2 -2
- package/lib/module/components/Content/Card/Sliders/index.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Five.js +4 -4
- package/lib/module/components/Content/Card/Styles/Five.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Four.js +4 -4
- package/lib/module/components/Content/Card/Styles/Four.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/One.js +4 -4
- package/lib/module/components/Content/Card/Styles/One.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/RotateInOut.js +4 -4
- package/lib/module/components/Content/Card/Styles/RotateInOut.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Six.js +5 -5
- package/lib/module/components/Content/Card/Styles/Six.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Three.js +4 -4
- package/lib/module/components/Content/Card/Styles/Three.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/TopTen.js +5 -5
- package/lib/module/components/Content/Card/Styles/TopTen.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Two.js +4 -4
- package/lib/module/components/Content/Card/Styles/Two.js.map +1 -1
- package/lib/module/components/Content/Card/components/CardPoster.js +1 -10
- package/lib/module/components/Content/Card/components/CardPoster.js.map +1 -1
- package/lib/module/components/Content/Card/components/NavigateToMore.js +2 -2
- package/lib/module/components/Content/Card/components/NavigateToMore.js.map +1 -1
- package/lib/module/components/Content/Card/components/NoContentFallback.js +3 -3
- package/lib/module/components/Content/Card/components/NoContentFallback.js.map +1 -1
- package/lib/module/components/Content/Card/components/ShowAllButton.js +1 -1
- package/lib/module/components/Content/Card/components/ShowAllButton.js.map +1 -1
- package/lib/module/components/Content/Card/components/ThumbnailCard.js +1 -1
- package/lib/module/components/Content/Card/components/ThumbnailCard.js.map +1 -1
- package/lib/module/components/Content/Card/index.js +10 -10
- package/lib/module/components/Content/Card/index.js.map +1 -1
- package/lib/module/components/Content/Content.js +4 -4
- package/lib/module/components/Content/Content.js.map +1 -1
- package/lib/module/components/Content/Sections.js +2 -2
- package/lib/module/components/Content/Sections.js.map +1 -1
- package/lib/module/components/ContentView/ContentView.js +8 -9
- package/lib/module/components/ContentView/ContentView.js.map +1 -1
- package/lib/module/components/ContentView/MoreContentList.js +6 -6
- package/lib/module/components/ContentView/MoreContentList.js.map +1 -1
- package/lib/module/components/ContentView/components/AboutSection.js +2 -2
- package/lib/module/components/ContentView/components/AboutSection.js.map +1 -1
- package/lib/module/components/ContentView/components/CastCard.js +2 -2
- package/lib/module/components/ContentView/components/CastCard.js.map +1 -1
- package/lib/module/components/ContentView/components/EpisodeCard.js +3 -3
- package/lib/module/components/ContentView/components/EpisodeCard.js.map +1 -1
- package/lib/module/components/ContentView/components/GenreTags.js +1 -1
- package/lib/module/components/ContentView/components/GenreTags.js.map +1 -1
- package/lib/module/components/ContentView/components/HeroBanner.js +5 -5
- package/lib/module/components/ContentView/components/HeroBanner.js.map +1 -1
- package/lib/module/components/ContentView/components/PlayButton.js +0 -1
- package/lib/module/components/ContentView/components/PlayButton.js.map +1 -1
- package/lib/module/components/ContentView/components/Title.js +1 -1
- package/lib/module/components/ContentView/components/Title.js.map +1 -1
- package/lib/module/components/ContentView/components/TrailerButton.js +1 -2
- package/lib/module/components/ContentView/components/TrailerButton.js.map +1 -1
- package/lib/module/components/ContentView/index.js +2 -2
- package/lib/module/components/ContentView/index.js.map +1 -1
- package/lib/module/components/Headers/AppHeader.js +3 -3
- package/lib/module/components/Headers/AppHeader.js.map +1 -1
- package/lib/module/components/Headers/One.js +3 -3
- package/lib/module/components/Headers/One.js.map +1 -1
- package/lib/module/components/Headers/Three.js +2 -2
- package/lib/module/components/Headers/Three.js.map +1 -1
- package/lib/module/components/Headers/Two.js +6 -7
- package/lib/module/components/Headers/Two.js.map +1 -1
- package/lib/module/components/Headers/index.js +3 -3
- package/lib/module/components/Headers/index.js.map +1 -1
- package/lib/module/components/Input/Input.js +3 -3
- package/lib/module/components/Input/Input.js.map +1 -1
- package/lib/module/components/Input/InputOne.js +1 -1
- package/lib/module/components/Input/InputOne.js.map +1 -1
- package/lib/module/components/Input/InputTwo.js +1 -1
- package/lib/module/components/Input/InputTwo.js.map +1 -1
- package/lib/module/components/Input/PhoneNumberInput.js +1 -1
- package/lib/module/components/Input/PhoneNumberInput.js.map +1 -1
- package/lib/module/components/Keyboard/HideKeyboard.js.map +1 -1
- package/lib/module/components/Loader/Loader.js +1 -6
- package/lib/module/components/Loader/Loader.js.map +1 -1
- package/lib/module/components/Logo/Logo.js +2 -2
- package/lib/module/components/Logo/Logo.js.map +1 -1
- package/lib/module/components/Reels/ReelsSeries/Model/Episodes.js +110 -0
- package/lib/module/components/Reels/ReelsSeries/Model/Episodes.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/Model/Synopsis.js +216 -0
- package/lib/module/components/Reels/ReelsSeries/Model/Synopsis.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/ReelSeriesDetailsModal.js +182 -0
- package/lib/module/components/Reels/ReelsSeries/ReelSeriesDetailsModal.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/ReelSeriesOverlay.js +203 -0
- package/lib/module/components/Reels/ReelsSeries/ReelSeriesOverlay.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/ReelsSeries.js +121 -0
- package/lib/module/components/Reels/ReelsSeries/ReelsSeries.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/ReelsSeriesItem.js +290 -0
- package/lib/module/components/Reels/ReelsSeries/ReelsSeriesItem.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/types.js +2 -0
- package/lib/module/components/Reels/ReelsSeries/types.js.map +1 -0
- package/lib/module/components/Reels/index.js +11 -0
- package/lib/module/components/Reels/index.js.map +1 -0
- package/lib/module/components/Search/One.js +9 -9
- package/lib/module/components/Search/One.js.map +1 -1
- package/lib/module/components/Search/components/RecentSearchesSection.js +1 -1
- package/lib/module/components/Search/components/RecentSearchesSection.js.map +1 -1
- package/lib/module/components/Search/components/SearchCard.js +3 -3
- package/lib/module/components/Search/components/SearchCard.js.map +1 -1
- package/lib/module/components/Search/index.js +2 -2
- package/lib/module/components/Search/index.js.map +1 -1
- package/lib/module/components/Settings/AppSettings.js +4 -4
- package/lib/module/components/Settings/AppSettings.js.map +1 -1
- package/lib/module/components/Settings/index.js +1 -1
- package/lib/module/components/Settings/index.js.map +1 -1
- package/lib/module/components/Subscription/SubOne.js +4 -4
- package/lib/module/components/Subscription/SubOne.js.map +1 -1
- package/lib/module/components/Subscription/index.js +1 -1
- package/lib/module/components/Subscription/index.js.map +1 -1
- package/lib/module/components/TabBar/One.js +2 -2
- package/lib/module/components/TabBar/One.js.map +1 -1
- package/lib/module/components/TabBar/Three.js +1 -1
- package/lib/module/components/TabBar/Three.js.map +1 -1
- package/lib/module/components/TabBar/Two.js +2 -2
- package/lib/module/components/TabBar/Two.js.map +1 -1
- package/lib/module/components/TabBar/index.js +3 -3
- package/lib/module/components/TabBar/index.js.map +1 -1
- package/lib/module/components/Text/Text.js +1 -1
- package/lib/module/components/Text/Text.js.map +1 -1
- package/lib/module/components/Text/index.js +1 -1
- package/lib/module/components/Text/index.js.map +1 -1
- package/lib/module/components/User/DeviceSessions/DeviceSessions.js +11 -3
- package/lib/module/components/User/DeviceSessions/DeviceSessions.js.map +1 -1
- package/lib/module/components/User/ProfileUpdate/ProfileUpdate.js +258 -0
- package/lib/module/components/User/ProfileUpdate/ProfileUpdate.js.map +1 -0
- package/lib/module/components/User/WatchHistory/WatchHistory.js +4 -4
- package/lib/module/components/User/WatchHistory/WatchHistory.js.map +1 -1
- package/lib/module/components/User/WatchLater/WatchLater.js +5 -5
- package/lib/module/components/User/WatchLater/WatchLater.js.map +1 -1
- package/lib/module/components/User/components/UserAvatar.js +1 -1
- package/lib/module/components/User/components/UserAvatar.js.map +1 -1
- package/lib/module/components/User/components/UserSection.js +11 -16
- package/lib/module/components/User/components/UserSection.js.map +1 -1
- package/lib/module/components/User/index.js +5 -4
- package/lib/module/components/User/index.js.map +1 -1
- package/lib/module/components/View/View.js.map +1 -1
- package/lib/module/components/View/index.js +1 -1
- package/lib/module/components/View/index.js.map +1 -1
- package/lib/module/components/index.js +20 -18
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/layout/SafeAreaWrapper.js +1 -1
- package/lib/module/components/layout/SafeAreaWrapper.js.map +1 -1
- package/lib/module/components/layout/index.js +1 -1
- package/lib/module/components/layout/index.js.map +1 -1
- package/lib/module/constants/dummySections.js.map +1 -1
- package/lib/module/hooks/useDebounce.js.map +1 -1
- package/lib/module/hooks/useInitSplashCacheSync.js +7 -7
- package/lib/module/hooks/useInitSplashCacheSync.js.map +1 -1
- package/lib/module/hooks/useKeyboard.js.map +1 -1
- package/lib/module/hooks/usePaginatedSection.js.map +1 -1
- package/lib/module/index.js +3 -3
- package/lib/module/index.js.map +1 -1
- package/lib/module/package.json +1 -0
- package/lib/module/store/RecentSearchesStore.js.map +1 -1
- package/lib/module/store/splashStore.js.map +1 -1
- package/lib/module/theme/ThemeProvider.js +24 -18
- package/lib/module/theme/ThemeProvider.js.map +1 -1
- package/lib/module/theme/hook/useTheme.js +2 -2
- package/lib/module/theme/hook/useTheme.js.map +1 -1
- package/lib/module/theme/index.js +3 -2
- package/lib/module/theme/index.js.map +1 -1
- package/lib/module/theme/themes.js +2 -13
- package/lib/module/theme/themes.js.map +1 -1
- package/lib/module/utils/Formater.js +17 -0
- package/lib/module/utils/Formater.js.map +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/components/Account/Account.d.ts +0 -1
- package/lib/typescript/src/components/Account/Account.d.ts.map +1 -1
- package/lib/typescript/src/components/Alert/UAAlert.d.ts +16 -0
- package/lib/typescript/src/components/Alert/UAAlert.d.ts.map +1 -0
- package/lib/typescript/src/components/Alert/index.d.ts +2 -0
- package/lib/typescript/src/components/Alert/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/ForgotPassword/ForgotPassword.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/Login/LoginWithEmail.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/Login/LoginWithPhone.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/OTP/OTP.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/QrLogin/QrLogin.d.ts +32 -0
- package/lib/typescript/src/components/Auth/QrLogin/QrLogin.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/QrLogin/components/QrViewArea.d.ts +15 -0
- package/lib/typescript/src/components/Auth/QrLogin/components/QrViewArea.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/SignUp/SignUp.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/SplashScreen/SplashScreen.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.d.ts +0 -4
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/index.d.ts +2 -1
- package/lib/typescript/src/components/Auth/index.d.ts.map +1 -1
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayout.d.ts.map +1 -1
- package/lib/typescript/src/components/BlogView/BlogView.d.ts +0 -4
- package/lib/typescript/src/components/BlogView/BlogView.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/BackBtn.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/MenuBtn.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/PrimaryBtn.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/TextButton.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Category/Category.d.ts +1 -1
- package/lib/typescript/src/components/Content/Card/Category/Category.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/NowWatching/NowWatching.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Five.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Four.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/RotateInOut.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Six.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Three.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/TopTen.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts +0 -8
- package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/NavigateToMore.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/NoContentFallback.d.ts +1 -2
- package/lib/typescript/src/components/Content/Card/components/NoContentFallback.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/ShowAllButton.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/ThumbnailCard.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/index.d.ts +2 -2
- package/lib/typescript/src/components/Content/Content.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Sections.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/ContentView.d.ts +1 -2
- package/lib/typescript/src/components/ContentView/ContentView.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/MoreContentList.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/AboutSection.d.ts +1 -2
- package/lib/typescript/src/components/ContentView/components/AboutSection.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/CastCard.d.ts +1 -6
- package/lib/typescript/src/components/ContentView/components/CastCard.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts +1 -2
- package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/GenreTags.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/components/GenreTags.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/HeroBanner.d.ts +1 -2
- package/lib/typescript/src/components/ContentView/components/HeroBanner.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/PlayButton.d.ts +1 -2
- package/lib/typescript/src/components/ContentView/components/PlayButton.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/Title.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/components/Title.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/TrailerButton.d.ts +1 -2
- package/lib/typescript/src/components/ContentView/components/TrailerButton.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/AppHeader.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/Three.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/Input/InputOne.d.ts.map +1 -1
- package/lib/typescript/src/components/Input/InputTwo.d.ts.map +1 -1
- package/lib/typescript/src/components/Input/PhoneNumberInput.d.ts.map +1 -1
- package/lib/typescript/src/components/Keyboard/HideKeyboard.d.ts.map +1 -1
- package/lib/typescript/src/components/Loader/Loader.d.ts +0 -4
- package/lib/typescript/src/components/Loader/Loader.d.ts.map +1 -1
- package/lib/typescript/src/components/Logo/Logo.d.ts.map +1 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/Model/Episodes.d.ts +12 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/Model/Episodes.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/Model/Synopsis.d.ts +9 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/Model/Synopsis.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelSeriesDetailsModal.d.ts +13 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelSeriesDetailsModal.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelSeriesOverlay.d.ts +18 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelSeriesOverlay.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeries.d.ts +15 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeries.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeriesItem.d.ts +18 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeriesItem.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/types.d.ts +24 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/types.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/index.d.ts +8 -0
- package/lib/typescript/src/components/Reels/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Search/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Search/components/RecentSearchesSection.d.ts.map +1 -1
- package/lib/typescript/src/components/Search/components/SearchCard.d.ts.map +1 -1
- package/lib/typescript/src/components/Settings/AppSettings.d.ts.map +1 -1
- package/lib/typescript/src/components/Subscription/SubOne.d.ts +1 -1
- package/lib/typescript/src/components/Subscription/SubOne.d.ts.map +1 -1
- package/lib/typescript/src/components/Subscription/index.d.ts +2 -2
- package/lib/typescript/src/components/Subscription/index.d.ts.map +1 -1
- package/lib/typescript/src/components/TabBar/One.d.ts +2 -2
- package/lib/typescript/src/components/TabBar/One.d.ts.map +1 -1
- package/lib/typescript/src/components/TabBar/Three.d.ts.map +1 -1
- package/lib/typescript/src/components/TabBar/Two.d.ts +1 -1
- package/lib/typescript/src/components/TabBar/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/TabBar/index.d.ts +2 -2
- package/lib/typescript/src/components/Text/Text.d.ts.map +1 -1
- package/lib/typescript/src/components/User/DeviceSessions/DeviceSessions.d.ts +2 -1
- package/lib/typescript/src/components/User/DeviceSessions/DeviceSessions.d.ts.map +1 -1
- package/lib/typescript/src/components/User/ProfileUpdate/ProfileUpdate.d.ts +27 -0
- package/lib/typescript/src/components/User/ProfileUpdate/ProfileUpdate.d.ts.map +1 -0
- package/lib/typescript/src/components/User/WatchHistory/WatchHistory.d.ts.map +1 -1
- package/lib/typescript/src/components/User/WatchLater/WatchLater.d.ts.map +1 -1
- package/lib/typescript/src/components/User/components/UserAvatar.d.ts.map +1 -1
- package/lib/typescript/src/components/User/components/UserSection.d.ts.map +1 -1
- package/lib/typescript/src/components/User/index.d.ts +2 -1
- package/lib/typescript/src/components/User/index.d.ts.map +1 -1
- package/lib/typescript/src/components/View/View.d.ts.map +1 -1
- package/lib/typescript/src/components/index.d.ts +2 -0
- package/lib/typescript/src/components/index.d.ts.map +1 -1
- package/lib/typescript/src/components/layout/SafeAreaWrapper.d.ts.map +1 -1
- package/lib/typescript/src/constants/dummySections.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useDebounce.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useInitSplashCacheSync.d.ts +1 -1
- package/lib/typescript/src/hooks/useInitSplashCacheSync.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useKeyboard.d.ts.map +1 -1
- package/lib/typescript/src/hooks/usePaginatedSection.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/store/RecentSearchesStore.d.ts +5 -3
- package/lib/typescript/src/store/RecentSearchesStore.d.ts.map +1 -1
- package/lib/typescript/src/store/splashStore.d.ts +5 -3
- package/lib/typescript/src/store/splashStore.d.ts.map +1 -1
- package/lib/typescript/src/theme/ThemeProvider.d.ts.map +1 -1
- package/lib/typescript/src/theme/hook/useTheme.d.ts.map +1 -1
- package/lib/typescript/src/theme/index.d.ts +5 -0
- package/lib/typescript/src/theme/index.d.ts.map +1 -1
- package/lib/typescript/src/theme/themes.d.ts +12 -4
- package/lib/typescript/src/theme/themes.d.ts.map +1 -1
- package/lib/typescript/src/types/content/content-view.types.d.ts.map +1 -1
- package/lib/typescript/src/types/hook/usePaginatedSetion.d.ts +1 -1
- package/lib/typescript/src/types/hook/usePaginatedSetion.d.ts.map +1 -1
- package/lib/typescript/src/utils/Formater.d.ts +2 -0
- package/lib/typescript/src/utils/Formater.d.ts.map +1 -0
- package/package.json +175 -70
- package/src/Styles/globalStyles.ts +18 -18
- package/src/assets/animations/135037-payment-processing-error.json +1347 -1
- package/src/assets/animations/7227-vui-animation.json +3377 -1
- package/src/assets/animations/heart.json +788 -0
- package/src/assets/animations/succesfull-payment.json +2379 -1
- package/src/assets/animations/voice-icon.json +542 -1
- package/src/components/Account/Account.tsx +139 -61
- package/src/components/Alert/UAAlert.tsx +168 -0
- package/src/components/Alert/index.ts +1 -0
- package/src/components/Auth/ForgotPassword/ForgotPassword.tsx +53 -23
- package/src/components/Auth/Login/LoginWithEmail.tsx +62 -32
- package/src/components/Auth/Login/LoginWithPhone.tsx +55 -24
- package/src/components/Auth/OTP/OTP.tsx +77 -32
- package/src/components/Auth/QrLogin/QrLogin.tsx +306 -0
- package/src/components/Auth/QrLogin/components/QrViewArea.tsx +213 -0
- package/src/components/Auth/SignUp/SignUp.tsx +67 -32
- package/src/components/Auth/SplashScreen/SplashScreen.tsx +44 -16
- package/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.tsx +21 -12
- package/src/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.tsx +5 -5
- package/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.tsx +15 -5
- package/src/components/Auth/index.ts +3 -1
- package/src/components/BackgroundLayout/BackgroundLayout.tsx +45 -17
- package/src/components/BlogView/BlogView.tsx +51 -31
- package/src/components/Button/BackBtn.tsx +31 -9
- package/src/components/Button/MenuBtn.tsx +61 -22
- package/src/components/Button/PrimaryBtn.tsx +30 -10
- package/src/components/Button/TextButton.tsx +30 -15
- package/src/components/Button/index.ts +1 -1
- package/src/components/Content/Card/Category/Category.tsx +73 -32
- package/src/components/Content/Card/NowWatching/NowWatching.tsx +102 -44
- package/src/components/Content/Card/Sliders/Styles/One.tsx +89 -38
- package/src/components/Content/Card/Sliders/Styles/Two.tsx +47 -21
- package/src/components/Content/Card/Sliders/index.ts +2 -2
- package/src/components/Content/Card/Styles/Five.tsx +65 -22
- package/src/components/Content/Card/Styles/Four.tsx +73 -23
- package/src/components/Content/Card/Styles/One.tsx +68 -21
- package/src/components/Content/Card/Styles/RotateInOut.tsx +59 -23
- package/src/components/Content/Card/Styles/Six.tsx +57 -19
- package/src/components/Content/Card/Styles/Three.tsx +59 -23
- package/src/components/Content/Card/Styles/TopTen.tsx +59 -26
- package/src/components/Content/Card/Styles/Two.tsx +39 -18
- package/src/components/Content/Card/components/CardPoster.tsx +34 -32
- package/src/components/Content/Card/components/NavigateToMore.tsx +17 -7
- package/src/components/Content/Card/components/NoContentFallback.tsx +36 -19
- package/src/components/Content/Card/components/ShowAllButton.tsx +12 -8
- package/src/components/Content/Card/components/ThumbnailCard.tsx +26 -17
- package/src/components/Content/Card/index.ts +2 -2
- package/src/components/Content/Content.tsx +41 -17
- package/src/components/Content/Sections.tsx +14 -8
- package/src/components/ContentView/ContentView.tsx +34 -27
- package/src/components/ContentView/MoreContentList.tsx +40 -18
- package/src/components/ContentView/components/AboutSection.tsx +30 -12
- package/src/components/ContentView/components/CastCard.tsx +65 -24
- package/src/components/ContentView/components/EpisodeCard.tsx +109 -44
- package/src/components/ContentView/components/GenreTags.tsx +35 -11
- package/src/components/ContentView/components/HeroBanner.tsx +52 -21
- package/src/components/ContentView/components/PlayButton.tsx +13 -5
- package/src/components/ContentView/components/Title.tsx +30 -10
- package/src/components/ContentView/components/TrailerButton.tsx +16 -7
- package/src/components/Headers/AppHeader.tsx +41 -15
- package/src/components/Headers/One.tsx +19 -10
- package/src/components/Headers/Three.tsx +22 -7
- package/src/components/Headers/Two.tsx +25 -14
- package/src/components/Headers/index.ts +1 -1
- package/src/components/Input/Input.ts +1 -1
- package/src/components/Input/InputOne.tsx +69 -23
- package/src/components/Input/InputTwo.tsx +41 -18
- package/src/components/Input/PhoneNumberInput.tsx +94 -48
- package/src/components/Keyboard/HideKeyboard.tsx +16 -10
- package/src/components/Loader/Loader.tsx +3 -8
- package/src/components/Logo/Logo.tsx +17 -9
- package/src/components/Reels/ReelsSeries/Model/Episodes.tsx +133 -0
- package/src/components/Reels/ReelsSeries/Model/Synopsis.tsx +249 -0
- package/src/components/Reels/ReelsSeries/ReelSeriesDetailsModal.tsx +209 -0
- package/src/components/Reels/ReelsSeries/ReelSeriesOverlay.tsx +185 -0
- package/src/components/Reels/ReelsSeries/ReelsSeries.tsx +163 -0
- package/src/components/Reels/ReelsSeries/ReelsSeriesItem.tsx +333 -0
- package/src/components/Reels/ReelsSeries/types.ts +27 -0
- package/src/components/Reels/index.ts +8 -0
- package/src/components/Search/One.tsx +46 -17
- package/src/components/Search/components/RecentSearchesSection.tsx +48 -21
- package/src/components/Search/components/SearchCard.tsx +34 -16
- package/src/components/Search/index.ts +1 -1
- package/src/components/Settings/AppSettings.tsx +80 -29
- package/src/components/Subscription/SubOne.tsx +84 -39
- package/src/components/Subscription/index.ts +1 -1
- package/src/components/TabBar/One.tsx +22 -18
- package/src/components/TabBar/Three.tsx +55 -19
- package/src/components/TabBar/Two.tsx +16 -12
- package/src/components/TabBar/index.ts +1 -1
- package/src/components/Text/Text.tsx +7 -3
- package/src/components/User/DeviceSessions/DeviceSessions.tsx +104 -38
- package/src/components/User/ProfileUpdate/ProfileUpdate.tsx +265 -0
- package/src/components/User/WatchHistory/WatchHistory.tsx +37 -12
- package/src/components/User/WatchLater/WatchLater.tsx +94 -31
- package/src/components/User/components/UserAvatar.tsx +8 -4
- package/src/components/User/components/UserSection.tsx +39 -27
- package/src/components/User/index.ts +3 -1
- package/src/components/View/View.tsx +11 -2
- package/src/components/index.ts +2 -0
- package/src/components/layout/SafeAreaWrapper.tsx +10 -4
- package/src/constants/dummySections.ts +9 -7
- package/src/hooks/useDebounce.ts +4 -1
- package/src/hooks/useInitSplashCacheSync.ts +46 -18
- package/src/hooks/useKeyboard.ts +5 -3
- package/src/hooks/usePaginatedSection.ts +11 -7
- package/src/store/RecentSearchesStore.ts +12 -7
- package/src/store/splashStore.ts +16 -16
- package/src/theme/ThemeProvider.tsx +57 -24
- package/src/theme/hook/useTheme.ts +7 -3
- package/src/theme/index.ts +6 -0
- package/src/theme/themes.ts +45 -31
- package/src/types/content/content-view.types.ts +4 -1
- package/src/types/hook/usePaginatedSetion.ts +1 -1
- package/src/utils/Formater.ts +14 -0
- package/lib/module/components/Icons/AlertIcon.js +0 -33
- package/lib/module/components/Icons/AlertIcon.js.map +0 -1
- package/lib/module/components/Icons/DeviceIcon.js +0 -25
- package/lib/module/components/Icons/DeviceIcon.js.map +0 -1
- package/lib/module/components/Icons/DoneIcon/DoneIcon.js +0 -23
- package/lib/module/components/Icons/DoneIcon/DoneIcon.js.map +0 -1
- package/lib/module/components/Icons/ForgotPasswordMessageIcon.js +0 -65
- package/lib/module/components/Icons/ForgotPasswordMessageIcon.js.map +0 -1
- package/lib/module/components/Icons/ForgotPasswordMessageIconTwo.js +0 -56
- package/lib/module/components/Icons/ForgotPasswordMessageIconTwo.js.map +0 -1
- package/lib/module/components/Icons/NewIndex.js +0 -36
- package/lib/module/components/Icons/NewIndex.js.map +0 -1
- package/lib/module/components/Icons/ResendOTP.js +0 -21
- package/lib/module/components/Icons/ResendOTP.js.map +0 -1
- package/lib/typescript/src/components/Icons/AlertIcon.d.ts +0 -7
- package/lib/typescript/src/components/Icons/AlertIcon.d.ts.map +0 -1
- package/lib/typescript/src/components/Icons/DeviceIcon.d.ts +0 -7
- package/lib/typescript/src/components/Icons/DeviceIcon.d.ts.map +0 -1
- package/lib/typescript/src/components/Icons/DoneIcon/DoneIcon.d.ts +0 -6
- package/lib/typescript/src/components/Icons/DoneIcon/DoneIcon.d.ts.map +0 -1
- package/lib/typescript/src/components/Icons/ForgotPasswordMessageIcon.d.ts +0 -3
- package/lib/typescript/src/components/Icons/ForgotPasswordMessageIcon.d.ts.map +0 -1
- package/lib/typescript/src/components/Icons/ForgotPasswordMessageIconTwo.d.ts +0 -3
- package/lib/typescript/src/components/Icons/ForgotPasswordMessageIconTwo.d.ts.map +0 -1
- package/lib/typescript/src/components/Icons/NewIndex.d.ts +0 -19
- package/lib/typescript/src/components/Icons/NewIndex.d.ts.map +0 -1
- package/lib/typescript/src/components/Icons/ResendOTP.d.ts +0 -7
- package/lib/typescript/src/components/Icons/ResendOTP.d.ts.map +0 -1
- package/src/components/Icons/AlertIcon.tsx +0 -18
- package/src/components/Icons/DeviceIcon.tsx +0 -18
- package/src/components/Icons/DoneIcon/DoneIcon.tsx +0 -17
- package/src/components/Icons/ForgotPasswordMessageIcon.tsx +0 -34
- package/src/components/Icons/ForgotPasswordMessageIconTwo.tsx +0 -32
- package/src/components/Icons/NewIndex.ts +0 -35
- package/src/components/Icons/ResendOTP.tsx +0 -13
- /package/lib/module/assets/{img → svg}/h.svg +0 -0
- /package/src/assets/{img → svg}/h.svg +0 -0
- /package/src/{index.ts → index.tsx} +0 -0
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author Ashok Desai
|
|
3
|
+
* @lastModified oct 02 Oct 2025 at 10:30 AM
|
|
4
|
+
*/
|
|
5
|
+
import React, { useEffect, useRef } from 'react';
|
|
6
|
+
import {
|
|
7
|
+
View,
|
|
8
|
+
StyleSheet,
|
|
9
|
+
Animated,
|
|
10
|
+
Easing,
|
|
11
|
+
Dimensions,
|
|
12
|
+
Platform,
|
|
13
|
+
} from 'react-native';
|
|
14
|
+
import { scale } from 'react-native-size-matters';
|
|
15
|
+
import Svg, { Rect } from 'react-native-svg';
|
|
16
|
+
import type { AppTheme } from '../../../../theme/themes';
|
|
17
|
+
import { useTheme } from '../../../../theme/hook/useTheme';
|
|
18
|
+
|
|
19
|
+
const { width: SCREEN_W, height: SCREEN_H } = Dimensions.get('window');
|
|
20
|
+
|
|
21
|
+
type QrViewAreaProps = {
|
|
22
|
+
scanBoxWidth?: number;
|
|
23
|
+
layout?: 'one' | 'two';
|
|
24
|
+
headerHeight?: number;
|
|
25
|
+
theme?: AppTheme;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
const QrViewArea: React.FC<QrViewAreaProps> = ({
|
|
29
|
+
scanBoxWidth,
|
|
30
|
+
layout = 'one',
|
|
31
|
+
headerHeight = 60,
|
|
32
|
+
theme,
|
|
33
|
+
}) => {
|
|
34
|
+
const { theme: appliedTheme } = useTheme(theme);
|
|
35
|
+
const { colors } = appliedTheme;
|
|
36
|
+
|
|
37
|
+
const anim = useRef(new Animated.Value(0)).current;
|
|
38
|
+
|
|
39
|
+
const defaultBoxW = scanBoxWidth || Math.min(SCREEN_W * 0.7, 320);
|
|
40
|
+
const boxW = defaultBoxW * 0.9;
|
|
41
|
+
const boxH = boxW;
|
|
42
|
+
|
|
43
|
+
const availableHeight = SCREEN_H - headerHeight;
|
|
44
|
+
const boxTop = Math.floor(
|
|
45
|
+
headerHeight + (availableHeight - boxH) / 2 - scale(40)
|
|
46
|
+
);
|
|
47
|
+
|
|
48
|
+
const topOverlayHeight = Math.floor(boxTop - headerHeight);
|
|
49
|
+
const bottomOverlayHeight = Math.floor(SCREEN_H - (boxTop + boxH));
|
|
50
|
+
const sideOverlayWidth = Math.floor((SCREEN_W - boxW) / 2);
|
|
51
|
+
|
|
52
|
+
const margin = scale(12);
|
|
53
|
+
const lineTravel = boxH - margin * 2 - scale(3);
|
|
54
|
+
|
|
55
|
+
const translateY = anim.interpolate({
|
|
56
|
+
inputRange: [0, 1],
|
|
57
|
+
outputRange: [0, lineTravel],
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
useEffect(() => {
|
|
61
|
+
const animation = Animated.loop(
|
|
62
|
+
Animated.sequence([
|
|
63
|
+
Animated.timing(anim, {
|
|
64
|
+
toValue: 1,
|
|
65
|
+
duration: 2000,
|
|
66
|
+
easing: Easing.linear,
|
|
67
|
+
useNativeDriver: true,
|
|
68
|
+
}),
|
|
69
|
+
Animated.timing(anim, {
|
|
70
|
+
toValue: 0,
|
|
71
|
+
duration: 2000,
|
|
72
|
+
easing: Easing.linear,
|
|
73
|
+
useNativeDriver: true,
|
|
74
|
+
}),
|
|
75
|
+
])
|
|
76
|
+
);
|
|
77
|
+
animation.start();
|
|
78
|
+
return () => animation.stop();
|
|
79
|
+
}, [anim]);
|
|
80
|
+
|
|
81
|
+
return (
|
|
82
|
+
<>
|
|
83
|
+
<View
|
|
84
|
+
style={[
|
|
85
|
+
styles.overlayTB,
|
|
86
|
+
{
|
|
87
|
+
top: headerHeight,
|
|
88
|
+
height: topOverlayHeight,
|
|
89
|
+
backgroundColor: colors.overlay,
|
|
90
|
+
},
|
|
91
|
+
]}
|
|
92
|
+
/>
|
|
93
|
+
<View
|
|
94
|
+
style={[
|
|
95
|
+
styles.overlayTB,
|
|
96
|
+
{
|
|
97
|
+
top: boxTop + boxH,
|
|
98
|
+
height: bottomOverlayHeight,
|
|
99
|
+
backgroundColor: colors.overlay,
|
|
100
|
+
},
|
|
101
|
+
]}
|
|
102
|
+
/>
|
|
103
|
+
<View
|
|
104
|
+
style={[
|
|
105
|
+
styles.overlayLR,
|
|
106
|
+
{
|
|
107
|
+
top: boxTop,
|
|
108
|
+
height: boxH,
|
|
109
|
+
width: sideOverlayWidth,
|
|
110
|
+
backgroundColor: colors.overlay,
|
|
111
|
+
},
|
|
112
|
+
]}
|
|
113
|
+
/>
|
|
114
|
+
<View
|
|
115
|
+
style={[
|
|
116
|
+
styles.overlayLR,
|
|
117
|
+
{
|
|
118
|
+
top: boxTop,
|
|
119
|
+
right: 0,
|
|
120
|
+
height: boxH,
|
|
121
|
+
width: sideOverlayWidth,
|
|
122
|
+
backgroundColor: colors.overlay,
|
|
123
|
+
},
|
|
124
|
+
]}
|
|
125
|
+
/>
|
|
126
|
+
|
|
127
|
+
<View
|
|
128
|
+
style={[
|
|
129
|
+
styles.scanBox,
|
|
130
|
+
{ top: boxTop, width: boxW, height: boxH, left: sideOverlayWidth },
|
|
131
|
+
]}
|
|
132
|
+
>
|
|
133
|
+
{layout === 'two' ? (
|
|
134
|
+
<Svg width={boxW} height={boxH}>
|
|
135
|
+
<Rect
|
|
136
|
+
width={boxW}
|
|
137
|
+
height={boxH}
|
|
138
|
+
ry={scale(8)}
|
|
139
|
+
stroke={colors.button}
|
|
140
|
+
strokeWidth={scale(5)}
|
|
141
|
+
strokeDasharray={[scale(12), scale(6)]}
|
|
142
|
+
fill="none"
|
|
143
|
+
/>
|
|
144
|
+
</Svg>
|
|
145
|
+
) : (
|
|
146
|
+
['tl', 'tr', 'bl', 'br'].map((c) => (
|
|
147
|
+
<View
|
|
148
|
+
key={c}
|
|
149
|
+
style={[
|
|
150
|
+
styles.corner,
|
|
151
|
+
styles[`corner_${c}` as keyof typeof styles],
|
|
152
|
+
{
|
|
153
|
+
borderColor: colors.button,
|
|
154
|
+
width: scale(18),
|
|
155
|
+
height: scale(18),
|
|
156
|
+
borderTopWidth: c.startsWith('t') ? scale(3) : 0,
|
|
157
|
+
borderBottomWidth: c.startsWith('b') ? scale(3) : 0,
|
|
158
|
+
borderLeftWidth: c.endsWith('l') ? scale(3) : 0,
|
|
159
|
+
borderRightWidth: c.endsWith('r') ? scale(3) : 0,
|
|
160
|
+
},
|
|
161
|
+
]}
|
|
162
|
+
/>
|
|
163
|
+
))
|
|
164
|
+
)}
|
|
165
|
+
|
|
166
|
+
<Animated.View
|
|
167
|
+
style={{
|
|
168
|
+
position: 'absolute',
|
|
169
|
+
top: margin,
|
|
170
|
+
left: margin,
|
|
171
|
+
right: margin,
|
|
172
|
+
height: scale(3),
|
|
173
|
+
borderRadius: scale(1.5),
|
|
174
|
+
backgroundColor: colors.button,
|
|
175
|
+
transform: [{ translateY }],
|
|
176
|
+
shadowColor: colors.shadow,
|
|
177
|
+
shadowOffset: { width: 0, height: 4 },
|
|
178
|
+
shadowOpacity: 0.3,
|
|
179
|
+
shadowRadius: 5,
|
|
180
|
+
elevation: Platform.OS === 'android' ? 4 : 0,
|
|
181
|
+
}}
|
|
182
|
+
/>
|
|
183
|
+
</View>
|
|
184
|
+
</>
|
|
185
|
+
);
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
const styles = StyleSheet.create({
|
|
189
|
+
overlayTB: {
|
|
190
|
+
position: 'absolute',
|
|
191
|
+
left: 0,
|
|
192
|
+
right: 0,
|
|
193
|
+
},
|
|
194
|
+
overlayLR: {
|
|
195
|
+
position: 'absolute',
|
|
196
|
+
},
|
|
197
|
+
scanBox: {
|
|
198
|
+
position: 'absolute',
|
|
199
|
+
justifyContent: 'center',
|
|
200
|
+
alignItems: 'center',
|
|
201
|
+
overflow: 'hidden',
|
|
202
|
+
zIndex: 10,
|
|
203
|
+
},
|
|
204
|
+
corner: {
|
|
205
|
+
position: 'absolute',
|
|
206
|
+
},
|
|
207
|
+
corner_tl: { top: 0, left: 0 },
|
|
208
|
+
corner_tr: { top: 0, right: 0 },
|
|
209
|
+
corner_bl: { bottom: 0, left: 0 },
|
|
210
|
+
corner_br: { bottom: 0, right: 0 },
|
|
211
|
+
});
|
|
212
|
+
|
|
213
|
+
export default QrViewArea;
|
|
@@ -3,7 +3,14 @@
|
|
|
3
3
|
* @lastModified Mon 16 Jun 2025 at 03:05 PM
|
|
4
4
|
*/
|
|
5
5
|
import React, { useCallback } from 'react';
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
StyleSheet,
|
|
8
|
+
View,
|
|
9
|
+
Platform,
|
|
10
|
+
Keyboard,
|
|
11
|
+
type ViewStyle,
|
|
12
|
+
type TextStyle,
|
|
13
|
+
} from 'react-native';
|
|
7
14
|
import { useForm, Controller } from 'react-hook-form';
|
|
8
15
|
import { scale, verticalScale } from 'react-native-size-matters';
|
|
9
16
|
import { Input } from '../../Input/Input';
|
|
@@ -66,7 +73,11 @@ export interface SignupProps {
|
|
|
66
73
|
renderLogo?: () => React.ReactNode;
|
|
67
74
|
renderSingUpHeader?: () => React.ReactNode;
|
|
68
75
|
renderLoginPrompt?: () => React.ReactNode;
|
|
69
|
-
renderSubmitButton?: (props: {
|
|
76
|
+
renderSubmitButton?: (props: {
|
|
77
|
+
onPress: () => void;
|
|
78
|
+
disabled: boolean;
|
|
79
|
+
loading: boolean;
|
|
80
|
+
}) => React.ReactNode;
|
|
70
81
|
renderTopBackBtn?: (props: { onPress: () => void }) => React.ReactNode;
|
|
71
82
|
}
|
|
72
83
|
|
|
@@ -93,21 +104,21 @@ const Signup: React.FC<SignupProps> = ({
|
|
|
93
104
|
renderSingUpHeader,
|
|
94
105
|
renderLoginPrompt,
|
|
95
106
|
renderSubmitButton,
|
|
96
|
-
renderTopBackBtn
|
|
107
|
+
renderTopBackBtn,
|
|
97
108
|
}) => {
|
|
98
109
|
const {
|
|
99
110
|
control,
|
|
100
111
|
handleSubmit,
|
|
101
112
|
formState: { errors, isValid, touchedFields },
|
|
102
|
-
getValues
|
|
113
|
+
getValues,
|
|
103
114
|
} = useForm<FormValues>({
|
|
104
115
|
defaultValues: {
|
|
105
116
|
username: '',
|
|
106
117
|
email: '',
|
|
107
118
|
password: '',
|
|
108
|
-
confirmPassword: ''
|
|
119
|
+
confirmPassword: '',
|
|
109
120
|
},
|
|
110
|
-
mode: 'onChange'
|
|
121
|
+
mode: 'onChange',
|
|
111
122
|
});
|
|
112
123
|
const { theme: resolvedTheme } = useTheme(overrideTheme);
|
|
113
124
|
const { isKeyboardOpen } = useKeyboard();
|
|
@@ -128,13 +139,16 @@ const Signup: React.FC<SignupProps> = ({
|
|
|
128
139
|
[onSubmit]
|
|
129
140
|
);
|
|
130
141
|
|
|
131
|
-
const shouldRender = (condition?: boolean | unknown): boolean =>
|
|
142
|
+
const shouldRender = (condition?: boolean | unknown): boolean =>
|
|
143
|
+
typeof condition === 'function' || !!condition;
|
|
132
144
|
|
|
133
145
|
return (
|
|
134
146
|
<BackgroundLayout
|
|
135
147
|
theme={resolvedTheme}
|
|
136
148
|
backgroundImage={backgroundImage?.source}
|
|
137
|
-
gradientSplitBackground={
|
|
149
|
+
gradientSplitBackground={
|
|
150
|
+
isKeyboardOpen ? (Platform.OS === 'ios' ? 0.19 : 0.14) : 0.3
|
|
151
|
+
}
|
|
138
152
|
>
|
|
139
153
|
<View style={[styles.container, containerStyle]}>
|
|
140
154
|
{/* Top Back Button */}
|
|
@@ -142,20 +156,32 @@ const Signup: React.FC<SignupProps> = ({
|
|
|
142
156
|
<View style={styles.topBackBtnWrapper}>
|
|
143
157
|
{renderTopBackBtn ? (
|
|
144
158
|
renderTopBackBtn({
|
|
145
|
-
onPress: onTopBackBtnPress ?? (() => {})
|
|
159
|
+
onPress: onTopBackBtnPress ?? (() => {}),
|
|
146
160
|
})
|
|
147
161
|
) : (
|
|
148
|
-
<BackBtn
|
|
162
|
+
<BackBtn
|
|
163
|
+
theme={resolvedTheme}
|
|
164
|
+
style={topBackBtnStyle}
|
|
165
|
+
onPress={onTopBackBtnPress}
|
|
166
|
+
/>
|
|
149
167
|
)}
|
|
150
168
|
</View>
|
|
151
169
|
)}
|
|
152
170
|
<HideKeyboard keyboardVerticalOffset={scale(-50)}>
|
|
153
171
|
<View style={styles.centerContent}>
|
|
154
172
|
{/* Logo */}
|
|
155
|
-
{renderLogo ?
|
|
173
|
+
{renderLogo ? (
|
|
174
|
+
renderLogo()
|
|
175
|
+
) : logoUri ? (
|
|
176
|
+
<Logo logoUri={logoUri} />
|
|
177
|
+
) : null}
|
|
156
178
|
|
|
157
179
|
{/* Title */}
|
|
158
|
-
{renderSingUpHeader ?
|
|
180
|
+
{renderSingUpHeader ? (
|
|
181
|
+
renderSingUpHeader()
|
|
182
|
+
) : (
|
|
183
|
+
<Text style={[styles.title, titleStyle]}>{title}</Text>
|
|
184
|
+
)}
|
|
159
185
|
|
|
160
186
|
{/* Form */}
|
|
161
187
|
<View style={[styles.form, formStyle]}>
|
|
@@ -165,7 +191,7 @@ const Signup: React.FC<SignupProps> = ({
|
|
|
165
191
|
name="username"
|
|
166
192
|
rules={{
|
|
167
193
|
required: 'Username is required',
|
|
168
|
-
minLength: { value: 3, message: 'At least 3 characters' }
|
|
194
|
+
minLength: { value: 3, message: 'At least 3 characters' },
|
|
169
195
|
}}
|
|
170
196
|
render={({ field: { onChange, onBlur, value } }) => (
|
|
171
197
|
<Input.One
|
|
@@ -192,8 +218,8 @@ const Signup: React.FC<SignupProps> = ({
|
|
|
192
218
|
required: 'Email is required',
|
|
193
219
|
pattern: {
|
|
194
220
|
value: /^\S+@\S+\.\S+$/,
|
|
195
|
-
message: 'Enter a valid email address'
|
|
196
|
-
}
|
|
221
|
+
message: 'Enter a valid email address',
|
|
222
|
+
},
|
|
197
223
|
}}
|
|
198
224
|
render={({ field: { onChange, onBlur, value } }) => (
|
|
199
225
|
<Input.One
|
|
@@ -227,8 +253,8 @@ const Signup: React.FC<SignupProps> = ({
|
|
|
227
253
|
required: 'Password is required',
|
|
228
254
|
minLength: {
|
|
229
255
|
value: minPasswordLength,
|
|
230
|
-
message: `Minimum ${minPasswordLength} characters
|
|
231
|
-
}
|
|
256
|
+
message: `Minimum ${minPasswordLength} characters`,
|
|
257
|
+
},
|
|
232
258
|
}}
|
|
233
259
|
render={({ field: { onChange, onBlur, value } }) => (
|
|
234
260
|
<Input.One
|
|
@@ -262,11 +288,14 @@ const Signup: React.FC<SignupProps> = ({
|
|
|
262
288
|
name="confirmPassword"
|
|
263
289
|
rules={{
|
|
264
290
|
required: 'Confirm password is required',
|
|
265
|
-
validate: (value) =>
|
|
291
|
+
validate: (value) =>
|
|
292
|
+
value === getValues('password') || 'Passwords do not match',
|
|
266
293
|
}}
|
|
267
294
|
render={({ field: { onChange, onBlur, value } }) => (
|
|
268
295
|
<Input.One
|
|
269
|
-
placeholder={
|
|
296
|
+
placeholder={
|
|
297
|
+
text?.confirmPasswordPlaceholder || 'Confirm Password'
|
|
298
|
+
}
|
|
270
299
|
label={text?.confirmPasswordLabel || 'Confirm Password'}
|
|
271
300
|
value={value}
|
|
272
301
|
secureTextEntry
|
|
@@ -275,7 +304,10 @@ const Signup: React.FC<SignupProps> = ({
|
|
|
275
304
|
onChange(sanitized);
|
|
276
305
|
}}
|
|
277
306
|
onBlur={onBlur}
|
|
278
|
-
error={
|
|
307
|
+
error={
|
|
308
|
+
!!touchedFields.confirmPassword &&
|
|
309
|
+
!!errors.confirmPassword
|
|
310
|
+
}
|
|
279
311
|
disabled={loadingSubmitBtn || isLoading}
|
|
280
312
|
errorMessage={errors.confirmPassword?.message}
|
|
281
313
|
inputStyle={inputStyle}
|
|
@@ -296,7 +328,7 @@ const Signup: React.FC<SignupProps> = ({
|
|
|
296
328
|
renderSubmitButton({
|
|
297
329
|
onPress: handleSubmit(handleFormSubmit),
|
|
298
330
|
disabled: !isValid || loadingSubmitBtn || isLoading,
|
|
299
|
-
loading: loadingSubmitBtn || isLoading
|
|
331
|
+
loading: loadingSubmitBtn || isLoading,
|
|
300
332
|
})
|
|
301
333
|
) : (
|
|
302
334
|
<Button.Primary
|
|
@@ -320,7 +352,10 @@ const Signup: React.FC<SignupProps> = ({
|
|
|
320
352
|
<View style={styles.loginContainerWrapper}>
|
|
321
353
|
<View style={styles.loginContainer}>
|
|
322
354
|
<View style={styles.loginRow}>
|
|
323
|
-
<Text
|
|
355
|
+
<Text
|
|
356
|
+
style={[styles.loginPrompt, loginTextProps]}
|
|
357
|
+
color={resolvedTheme?.colors?.textPrimary}
|
|
358
|
+
>
|
|
324
359
|
{text?.loginPrompt || `Already have an account?`}
|
|
325
360
|
</Text>
|
|
326
361
|
<TextButton
|
|
@@ -354,48 +389,48 @@ const styles = StyleSheet.create({
|
|
|
354
389
|
width: '100%',
|
|
355
390
|
paddingHorizontal: scale(16),
|
|
356
391
|
justifyContent: 'center',
|
|
357
|
-
alignItems: 'center'
|
|
392
|
+
alignItems: 'center',
|
|
358
393
|
},
|
|
359
394
|
topBackBtnWrapper: {
|
|
360
395
|
position: 'absolute',
|
|
361
396
|
top: verticalScale(6),
|
|
362
397
|
left: 0,
|
|
363
|
-
zIndex: 10
|
|
398
|
+
zIndex: 10,
|
|
364
399
|
},
|
|
365
400
|
centerContent: {
|
|
366
401
|
flex: 1,
|
|
367
402
|
width: '100%',
|
|
368
403
|
alignItems: 'center',
|
|
369
|
-
justifyContent: 'center'
|
|
404
|
+
justifyContent: 'center',
|
|
370
405
|
},
|
|
371
406
|
title: {
|
|
372
407
|
fontSize: RFValue(21),
|
|
373
408
|
fontWeight: '700',
|
|
374
409
|
marginTop: verticalScale(5),
|
|
375
|
-
marginBottom: verticalScale(20)
|
|
410
|
+
marginBottom: verticalScale(20),
|
|
376
411
|
},
|
|
377
412
|
form: {
|
|
378
413
|
width: '100%',
|
|
379
|
-
gap: verticalScale(6)
|
|
414
|
+
gap: verticalScale(6),
|
|
380
415
|
},
|
|
381
416
|
loginContainerWrapper: {
|
|
382
417
|
position: 'absolute',
|
|
383
418
|
bottom: verticalScale(30),
|
|
384
419
|
left: 0,
|
|
385
420
|
right: 0,
|
|
386
|
-
alignItems: 'center'
|
|
421
|
+
alignItems: 'center',
|
|
387
422
|
},
|
|
388
423
|
loginRow: {
|
|
389
424
|
flexDirection: 'row',
|
|
390
425
|
alignItems: 'center',
|
|
391
426
|
justifyContent: 'center',
|
|
392
|
-
flexWrap: 'wrap'
|
|
427
|
+
flexWrap: 'wrap',
|
|
393
428
|
},
|
|
394
429
|
loginPrompt: {
|
|
395
430
|
textAlign: 'center',
|
|
396
|
-
marginRight: 4
|
|
431
|
+
marginRight: 4,
|
|
397
432
|
},
|
|
398
433
|
loginContainer: {
|
|
399
|
-
alignItems: 'center'
|
|
400
|
-
}
|
|
434
|
+
alignItems: 'center',
|
|
435
|
+
},
|
|
401
436
|
});
|
|
@@ -52,33 +52,41 @@ export const SplashScreen: React.FC<SplashScreenProps> = ({
|
|
|
52
52
|
screenTime,
|
|
53
53
|
fullscreen = false,
|
|
54
54
|
resizeMode = 'contain',
|
|
55
|
-
backgroundColor: splashBackgroundColor
|
|
55
|
+
backgroundColor: splashBackgroundColor,
|
|
56
56
|
},
|
|
57
57
|
innerContainerStyle,
|
|
58
58
|
backgroundImage = {
|
|
59
59
|
gradientSplitBackground: 0.4,
|
|
60
|
-
resizeMode: 'cover'
|
|
60
|
+
resizeMode: 'cover',
|
|
61
61
|
},
|
|
62
62
|
onRedirect,
|
|
63
|
-
theme: overrideTheme
|
|
63
|
+
theme: overrideTheme,
|
|
64
64
|
}) => {
|
|
65
|
-
const isRemoteSource = useMemo(
|
|
65
|
+
const isRemoteSource = useMemo(
|
|
66
|
+
() => splashSource.startsWith('http'),
|
|
67
|
+
[splashSource]
|
|
68
|
+
);
|
|
66
69
|
const { theme: resolvedTheme } = useTheme(overrideTheme);
|
|
67
70
|
|
|
68
71
|
const isImageSplash = splashType === 'image';
|
|
69
72
|
const backgroundImageUri =
|
|
70
|
-
isImageSplash && backgroundImage.source?.startsWith('http')
|
|
73
|
+
isImageSplash && backgroundImage.source?.startsWith('http')
|
|
74
|
+
? backgroundImage.source
|
|
75
|
+
: undefined;
|
|
71
76
|
|
|
72
77
|
const {
|
|
73
|
-
data: { localPathLogo }
|
|
78
|
+
data: { localPathLogo },
|
|
74
79
|
} = useInitSplashCacheSync({
|
|
75
80
|
logoUrl: isRemoteSource ? splashSource : undefined,
|
|
76
|
-
backgroundUrl: backgroundImageUri
|
|
81
|
+
backgroundUrl: backgroundImageUri,
|
|
77
82
|
});
|
|
78
83
|
|
|
79
|
-
const resolvedSplashUri =
|
|
84
|
+
const resolvedSplashUri =
|
|
85
|
+
isRemoteSource && localPathLogo ? localPathLogo : splashSource;
|
|
80
86
|
const effectiveTimeout = useMemo(() => {
|
|
81
|
-
const timeout =
|
|
87
|
+
const timeout =
|
|
88
|
+
screenTime ??
|
|
89
|
+
(isImageSplash || isStatic ? DEFAULT_IMAGE_TIMEOUT_SECONDS : 0);
|
|
82
90
|
return Number.isFinite(timeout) ? Number(timeout) : 0;
|
|
83
91
|
}, [screenTime, isImageSplash, isStatic]);
|
|
84
92
|
|
|
@@ -107,7 +115,7 @@ export const SplashScreen: React.FC<SplashScreenProps> = ({
|
|
|
107
115
|
width,
|
|
108
116
|
height,
|
|
109
117
|
fullscreen,
|
|
110
|
-
resizeMode: resizeMode as any
|
|
118
|
+
resizeMode: resizeMode as any,
|
|
111
119
|
}),
|
|
112
120
|
[resolvedSplashUri, width, height, fullscreen, resizeMode]
|
|
113
121
|
);
|
|
@@ -115,17 +123,28 @@ export const SplashScreen: React.FC<SplashScreenProps> = ({
|
|
|
115
123
|
const renderSplashContent = useCallback(() => {
|
|
116
124
|
switch (splashType) {
|
|
117
125
|
case 'video':
|
|
118
|
-
return
|
|
126
|
+
return (
|
|
127
|
+
<SplashVideo
|
|
128
|
+
{...splashComponentProps}
|
|
129
|
+
onEnd={effectiveTimeout ? undefined : handleRedirect}
|
|
130
|
+
/>
|
|
131
|
+
);
|
|
119
132
|
case 'lottie-animation':
|
|
120
133
|
return (
|
|
121
|
-
<SplashLottie
|
|
134
|
+
<SplashLottie
|
|
135
|
+
{...splashComponentProps}
|
|
136
|
+
onAnimationFinish={effectiveTimeout ? undefined : handleRedirect}
|
|
137
|
+
/>
|
|
122
138
|
);
|
|
123
139
|
case 'image':
|
|
124
140
|
default:
|
|
125
141
|
return <SplashImage {...splashComponentProps} />;
|
|
126
142
|
}
|
|
127
143
|
}, [splashType, splashComponentProps, effectiveTimeout, handleRedirect]);
|
|
128
|
-
const getSafeBackgroundColor = (
|
|
144
|
+
const getSafeBackgroundColor = (
|
|
145
|
+
inputColor: string | undefined,
|
|
146
|
+
fallbackColor: string
|
|
147
|
+
): string => {
|
|
129
148
|
try {
|
|
130
149
|
if (!inputColor) return fallbackColor;
|
|
131
150
|
|
|
@@ -139,9 +158,14 @@ export const SplashScreen: React.FC<SplashScreenProps> = ({
|
|
|
139
158
|
return fallbackColor;
|
|
140
159
|
}
|
|
141
160
|
};
|
|
142
|
-
const colorToUse = getSafeBackgroundColor(
|
|
161
|
+
const colorToUse = getSafeBackgroundColor(
|
|
162
|
+
splashBackgroundColor,
|
|
163
|
+
resolvedTheme.colors.background
|
|
164
|
+
);
|
|
143
165
|
const isDark = Color(colorToUse).isDark();
|
|
144
|
-
const statusBarStyle: 'light-content' | 'dark-content' = isDark
|
|
166
|
+
const statusBarStyle: 'light-content' | 'dark-content' = isDark
|
|
167
|
+
? 'light-content'
|
|
168
|
+
: 'dark-content';
|
|
145
169
|
|
|
146
170
|
return (
|
|
147
171
|
<BackgroundLayout
|
|
@@ -153,7 +177,11 @@ export const SplashScreen: React.FC<SplashScreenProps> = ({
|
|
|
153
177
|
theme={resolvedTheme}
|
|
154
178
|
gradientSplitBackground={backgroundImage.gradientSplitBackground ?? 0.4}
|
|
155
179
|
>
|
|
156
|
-
<StatusBar
|
|
180
|
+
<StatusBar
|
|
181
|
+
translucent
|
|
182
|
+
backgroundColor="transparent"
|
|
183
|
+
barStyle={statusBarStyle}
|
|
184
|
+
/>
|
|
157
185
|
|
|
158
186
|
{renderSplashContent()}
|
|
159
187
|
</BackgroundLayout>
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Naresh Dhamu
|
|
3
|
-
* @lastModified Wed 30 Jul 2025 at 02:56 PM
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
1
|
import React, { useState, useMemo } from 'react';
|
|
7
2
|
import FastImage from 'react-native-fast-image';
|
|
8
3
|
import { ActivityIndicator, View, StyleSheet } from 'react-native';
|
|
@@ -17,22 +12,36 @@ type SplashImageProps = {
|
|
|
17
12
|
backgroundColor?: string;
|
|
18
13
|
};
|
|
19
14
|
|
|
20
|
-
const SplashImage: React.FC<SplashImageProps> = ({
|
|
15
|
+
const SplashImage: React.FC<SplashImageProps> = ({
|
|
16
|
+
fullscreen,
|
|
17
|
+
height,
|
|
18
|
+
resizeMode = 'contain',
|
|
19
|
+
source,
|
|
20
|
+
width,
|
|
21
|
+
}) => {
|
|
21
22
|
const [isLoading, setIsLoading] = useState(!!source);
|
|
22
23
|
|
|
23
24
|
const imageStyles = useMemo(
|
|
24
25
|
() => ({
|
|
25
26
|
width: fullscreen ? Display.fullWidth : width,
|
|
26
27
|
height: fullscreen ? Display.fullHeight : height,
|
|
27
|
-
flex: 1
|
|
28
|
+
flex: 1,
|
|
28
29
|
}),
|
|
29
30
|
[fullscreen, width, height]
|
|
30
31
|
);
|
|
31
32
|
|
|
32
|
-
const handleLoadEnd = useMemo(
|
|
33
|
+
const handleLoadEnd = useMemo(
|
|
34
|
+
() => (source ? () => setIsLoading(false) : undefined),
|
|
35
|
+
[source]
|
|
36
|
+
);
|
|
33
37
|
const resolveUri = (src?: string): string => {
|
|
34
38
|
if (!src) return '';
|
|
35
|
-
if (
|
|
39
|
+
if (
|
|
40
|
+
src.startsWith('http') ||
|
|
41
|
+
src.startsWith('https') ||
|
|
42
|
+
src.startsWith('file://')
|
|
43
|
+
)
|
|
44
|
+
return src;
|
|
36
45
|
return `file://${src}`;
|
|
37
46
|
};
|
|
38
47
|
|
|
@@ -56,11 +65,11 @@ const styles = StyleSheet.create({
|
|
|
56
65
|
width: Display.fullWidth,
|
|
57
66
|
height: Display.fullHeight,
|
|
58
67
|
justifyContent: 'center',
|
|
59
|
-
alignItems: 'center'
|
|
68
|
+
alignItems: 'center',
|
|
60
69
|
},
|
|
61
70
|
loader: {
|
|
62
|
-
position: 'absolute'
|
|
63
|
-
}
|
|
71
|
+
position: 'absolute',
|
|
72
|
+
},
|
|
64
73
|
});
|
|
65
74
|
|
|
66
75
|
export default React.memo(SplashImage);
|
|
@@ -24,7 +24,7 @@ const SplashLottie: React.FC<IProps> = ({
|
|
|
24
24
|
source,
|
|
25
25
|
resizeMode = 'contain',
|
|
26
26
|
width,
|
|
27
|
-
onAnimationFinish
|
|
27
|
+
onAnimationFinish,
|
|
28
28
|
}) => {
|
|
29
29
|
// Memoize the style object
|
|
30
30
|
const lottieStyle = useMemo(
|
|
@@ -32,7 +32,7 @@ const SplashLottie: React.FC<IProps> = ({
|
|
|
32
32
|
...styles.base,
|
|
33
33
|
width: fullscreen ? Display.fullWidth : width,
|
|
34
34
|
height: fullscreen ? Display.fullHeight : height,
|
|
35
|
-
...(fullscreen ? styles.fullscreen : {})
|
|
35
|
+
...(fullscreen ? styles.fullscreen : {}),
|
|
36
36
|
}),
|
|
37
37
|
[fullscreen, width, height]
|
|
38
38
|
);
|
|
@@ -61,11 +61,11 @@ const SplashLottie: React.FC<IProps> = ({
|
|
|
61
61
|
|
|
62
62
|
const styles = StyleSheet.create({
|
|
63
63
|
base: {
|
|
64
|
-
alignSelf: 'center'
|
|
64
|
+
alignSelf: 'center',
|
|
65
65
|
},
|
|
66
66
|
fullscreen: {
|
|
67
|
-
flex: 1
|
|
68
|
-
}
|
|
67
|
+
flex: 1,
|
|
68
|
+
},
|
|
69
69
|
});
|
|
70
70
|
|
|
71
71
|
export default React.memo(SplashLottie);
|