@zezosoft/zezo-ott-react-native-ui-kit 1.1.5 → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/module/components/Content/Card/Sliders/Styles/Three.js +5 -4
- package/lib/module/components/Content/Card/Sliders/Styles/Three.js.map +1 -1
- package/lib/module/components/Headers/Four.js +1 -1
- package/lib/module/components/Headers/Three.js +2 -1
- package/lib/module/components/Headers/Three.js.map +1 -1
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/Three.d.ts.map +1 -1
- package/package.json +2 -14
- package/src/Styles/globalStyles.ts +0 -70
- package/src/assets/animations/135037-payment-processing-error.json +0 -1347
- package/src/assets/animations/7227-vui-animation.json +0 -3377
- package/src/assets/animations/Failed.json +0 -2103
- package/src/assets/animations/Pending.json +0 -522
- package/src/assets/animations/Successful.json +0 -2289
- package/src/assets/animations/heart.json +0 -788
- package/src/assets/animations/succesfull-payment.json +0 -2379
- package/src/assets/animations/voice-icon.json +0 -542
- package/src/assets/img/back.png +0 -0
- package/src/assets/img/bottom-panel.png +0 -0
- package/src/assets/img/camera.png +0 -0
- package/src/assets/img/camera2.png +0 -0
- package/src/assets/img/home.png +0 -0
- package/src/assets/img/lock.png +0 -0
- package/src/assets/img/play.png +0 -0
- package/src/assets/img/profile.jpg +0 -0
- package/src/assets/img/qr-code.png +0 -0
- package/src/assets/img/shadow.png +0 -0
- package/src/assets/img/shadow2.png +0 -0
- package/src/assets/img/user.png +0 -0
- package/src/assets/svg/Account.svg +0 -4
- package/src/assets/svg/Favourite.svg +0 -14
- package/src/assets/svg/Upcoming.svg +0 -4
- package/src/assets/svg/content-error.svg +0 -28
- package/src/assets/svg/download.svg +0 -3
- package/src/assets/svg/eye-off.svg +0 -10
- package/src/assets/svg/favorites.svg +0 -3
- package/src/assets/svg/h.svg +0 -4
- package/src/assets/svg/home.svg +0 -5
- package/src/assets/svg/home1.svg +0 -3
- package/src/assets/svg/menu-bar.svg +0 -4
- package/src/assets/svg/my-space.svg +0 -14
- package/src/assets/svg/play-icon-with-bg.svg +0 -5
- package/src/assets/svg/profile.svg +0 -4
- package/src/assets/svg/search.svg +0 -5
- package/src/assets/svg/search1.svg +0 -4
- package/src/assets/svg/server-error.svg +0 -139
- package/src/components/Account/Account.tsx +0 -367
- package/src/components/Account/index.ts +0 -1
- package/src/components/Alert/AlertDialog.tsx +0 -247
- package/src/components/Alert/UAAlert.tsx +0 -170
- package/src/components/Alert/index.ts +0 -2
- package/src/components/Auth/AuthProvider/AuthProvider.tsx +0 -419
- package/src/components/Auth/One/ForgotPassword/ForgotPassword.tsx +0 -324
- package/src/components/Auth/One/Login/LoginWithEmail.tsx +0 -455
- package/src/components/Auth/One/Login/LoginWithPhone.tsx +0 -306
- package/src/components/Auth/One/OTP/OTP.tsx +0 -465
- package/src/components/Auth/One/QrLogin/QrLogin.tsx +0 -602
- package/src/components/Auth/One/QrLogin/components/QrViewArea.tsx +0 -423
- package/src/components/Auth/One/SignUp/SignUp.tsx +0 -479
- package/src/components/Auth/One/SplashScreen/SplashScreen.tsx +0 -249
- package/src/components/Auth/One/SplashScreen/components/SplashImage/SplashImage.tsx +0 -103
- package/src/components/Auth/One/SplashScreen/components/SplashLottie/SplashLottie.tsx +0 -77
- package/src/components/Auth/One/SplashScreen/components/SplashVideo/SplashVideo.tsx +0 -174
- package/src/components/Auth/One/index.ts +0 -24
- package/src/components/Auth/Two/AuthHeader/AuthHeader.tsx +0 -108
- package/src/components/Auth/Two/ForgotPassword/ForgotPassword.tsx +0 -335
- package/src/components/Auth/Two/Login/AuthLoginShell.tsx +0 -173
- package/src/components/Auth/Two/Login/LoginWithEmail.tsx +0 -279
- package/src/components/Auth/Two/Login/LoginWithPhone.tsx +0 -188
- package/src/components/Auth/Two/OTP/OTP.tsx +0 -465
- package/src/components/Auth/Two/QrLogin/QrLogin.tsx +0 -602
- package/src/components/Auth/Two/QrLogin/components/QrViewArea.tsx +0 -423
- package/src/components/Auth/Two/SignUp/SignUp.tsx +0 -472
- package/src/components/Auth/Two/SplashScreen/SplashScreen.tsx +0 -248
- package/src/components/Auth/Two/SplashScreen/components/SplashImage/SplashImage.tsx +0 -92
- package/src/components/Auth/Two/SplashScreen/components/SplashLottie/SplashLottie.tsx +0 -77
- package/src/components/Auth/Two/SplashScreen/components/SplashVideo/SplashVideo.tsx +0 -178
- package/src/components/Auth/Two/index.ts +0 -28
- package/src/components/Auth/index.ts +0 -11
- package/src/components/BackgroundLayout/BackgroundLayout.tsx +0 -174
- package/src/components/BackgroundLayout/BackgroundLayoutOne.tsx +0 -56
- package/src/components/BlogView/BlogView.tsx +0 -276
- package/src/components/BlogView/index.ts +0 -8
- package/src/components/BlurView/BlurView.tsx +0 -199
- package/src/components/BlurView/index.ts +0 -7
- package/src/components/BottomSheet/BottomSheet.tsx +0 -200
- package/src/components/BottomSheet/BottomSheetOne.tsx +0 -220
- package/src/components/BottomSheet/index.ts +0 -4
- package/src/components/Button/BackBtn.tsx +0 -168
- package/src/components/Button/MenuBtn.tsx +0 -229
- package/src/components/Button/PrimaryBtn.tsx +0 -134
- package/src/components/Button/SecondaryBtn.tsx +0 -132
- package/src/components/Button/TextButton.tsx +0 -145
- package/src/components/Button/index.ts +0 -18
- package/src/components/Content/Card/Category/Category.tsx +0 -436
- package/src/components/Content/Card/Category/CategroyTwo.tsx +0 -429
- package/src/components/Content/Card/NowWatching/NowWatching.tsx +0 -624
- package/src/components/Content/Card/Sliders/Styles/One.tsx +0 -490
- package/src/components/Content/Card/Sliders/Styles/Three.tsx +0 -935
- package/src/components/Content/Card/Sliders/Styles/Two.tsx +0 -391
- package/src/components/Content/Card/Sliders/index.ts +0 -17
- package/src/components/Content/Card/Styles/Five.tsx +0 -385
- package/src/components/Content/Card/Styles/Four.tsx +0 -379
- package/src/components/Content/Card/Styles/One.tsx +0 -386
- package/src/components/Content/Card/Styles/RotateInOut.tsx +0 -413
- package/src/components/Content/Card/Styles/Six.tsx +0 -392
- package/src/components/Content/Card/Styles/Three.tsx +0 -314
- package/src/components/Content/Card/Styles/TopTen.tsx +0 -412
- package/src/components/Content/Card/Styles/Two.tsx +0 -416
- package/src/components/Content/Card/components/AdsPoster.tsx +0 -202
- package/src/components/Content/Card/components/CardPoster.tsx +0 -377
- package/src/components/Content/Card/components/NavigateToMore.tsx +0 -97
- package/src/components/Content/Card/components/RentOrBuyIcon.tsx +0 -129
- package/src/components/Content/Card/components/ShowAllButton.tsx +0 -92
- package/src/components/Content/Card/components/ThumbnailCard.tsx +0 -234
- package/src/components/Content/Card/components/index.ts +0 -1
- package/src/components/Content/Card/index.ts +0 -30
- package/src/components/Content/Content.tsx +0 -315
- package/src/components/Content/Sections.tsx +0 -238
- package/src/components/Content/types.ts +0 -176
- package/src/components/ContentView/MoreContentList.tsx +0 -327
- package/src/components/ContentView/One/ContentViewOne.tsx +0 -243
- package/src/components/ContentView/One/components/AboutSection.tsx +0 -216
- package/src/components/ContentView/One/components/CastCard.tsx +0 -265
- package/src/components/ContentView/One/components/EpisodeCard.tsx +0 -535
- package/src/components/ContentView/One/components/GenreTags.tsx +0 -132
- package/src/components/ContentView/One/components/HeroBanner.tsx +0 -357
- package/src/components/ContentView/One/components/MiniInfo.tsx +0 -356
- package/src/components/ContentView/One/components/PlayButton.tsx +0 -56
- package/src/components/ContentView/One/components/Title.tsx +0 -149
- package/src/components/ContentView/One/components/TrailerButton.tsx +0 -76
- package/src/components/ContentView/Two/ContentViewTwo.tsx +0 -343
- package/src/components/ContentView/Two/components/AboutSection.tsx +0 -216
- package/src/components/ContentView/Two/components/Details.tsx +0 -193
- package/src/components/ContentView/Two/components/EpisodeCard.tsx +0 -602
- package/src/components/ContentView/Two/components/GenreTags.tsx +0 -123
- package/src/components/ContentView/Two/components/HeroBanner.tsx +0 -402
- package/src/components/ContentView/Two/components/LikeShareActions.tsx +0 -125
- package/src/components/ContentView/Two/components/MoreLikeThisContentList .tsx +0 -305
- package/src/components/ContentView/Two/components/PlayOrTrailer.tsx +0 -133
- package/src/components/ContentView/Two/components/SectionTabs.tsx +0 -177
- package/src/components/ContentView/Two/components/Title.tsx +0 -226
- package/src/components/ContentView/Two/components/index.ts +0 -15
- package/src/components/ContentView/index.ts +0 -13
- package/src/components/Fallbacks/NoContentFallback.tsx +0 -176
- package/src/components/Fallbacks/NotFoundFallback.tsx +0 -94
- package/src/components/Fallbacks/index.ts +0 -2
- package/src/components/Headers/AppHeader.tsx +0 -150
- package/src/components/Headers/Four.tsx +0 -83
- package/src/components/Headers/One.tsx +0 -115
- package/src/components/Headers/Three.tsx +0 -135
- package/src/components/Headers/Two.tsx +0 -100
- package/src/components/Headers/index.ts +0 -18
- package/src/components/Input/Input.ts +0 -20
- package/src/components/Input/InputOne.tsx +0 -259
- package/src/components/Input/InputThree.tsx +0 -212
- package/src/components/Input/InputTwo.tsx +0 -212
- package/src/components/Input/PhoneNumberInput.tsx +0 -431
- package/src/components/Input/PhoneNumberInputTwo.tsx +0 -418
- package/src/components/Keyboard/HideKeyboard.tsx +0 -88
- package/src/components/Loader/Loader.tsx +0 -44
- package/src/components/Logo/Logo.tsx +0 -145
- package/src/components/NewRelease/NewReleaseSheet.tsx +0 -250
- package/src/components/NewRelease/index.ts +0 -1
- package/src/components/Reels/ReelsSeries/MediaControls/BottomControls.tsx +0 -221
- package/src/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.tsx +0 -314
- package/src/components/Reels/ReelsSeries/MediaControls/MiddleControls.tsx +0 -196
- package/src/components/Reels/ReelsSeries/MediaControls/RightControls.tsx +0 -95
- package/src/components/Reels/ReelsSeries/MediaControls/TopControls.tsx +0 -163
- package/src/components/Reels/ReelsSeries/Model/DetailsModal.tsx +0 -210
- package/src/components/Reels/ReelsSeries/Model/SettingModal.tsx +0 -146
- package/src/components/Reels/ReelsSeries/Model/UnlockModal.tsx +0 -154
- package/src/components/Reels/ReelsSeries/ReelsSeries.tsx +0 -264
- package/src/components/Reels/ReelsSeries/ReelsSeriesItem.tsx +0 -494
- package/src/components/Reels/ReelsSeries/components/AnimatedThreeLines.tsx +0 -184
- package/src/components/Reels/ReelsSeries/components/Episodes.tsx +0 -154
- package/src/components/Reels/ReelsSeries/components/GradientOverlay.tsx +0 -41
- package/src/components/Reels/ReelsSeries/components/Like.tsx +0 -40
- package/src/components/Reels/ReelsSeries/components/RotatingLoader.tsx +0 -79
- package/src/components/Reels/ReelsSeries/components/Synopsis.tsx +0 -332
- package/src/components/Reels/ReelsSeries/components/VideoControls/QualityControl.tsx +0 -187
- package/src/components/Reels/ReelsSeries/components/VideoControls/SpeedControl.tsx +0 -80
- package/src/components/Reels/ReelsSeries/components/VideoControls/index.ts +0 -2
- package/src/components/Reels/ReelsSeries/types.ts +0 -54
- package/src/components/Reels/ReelsSeries/useReelsWatchProgress.ts +0 -85
- package/src/components/Reels/ReelsSeries/utils/quality.ts +0 -48
- package/src/components/Reels/index.ts +0 -9
- package/src/components/Reels/utils/Controls/gestureUtils.ts +0 -42
- package/src/components/Reels/utils/Controls/index.ts +0 -4
- package/src/components/Reels/utils/Controls/overlayUtils.ts +0 -35
- package/src/components/Reels/utils/Controls/videoControlsConstants.ts +0 -25
- package/src/components/Reels/utils/Controls/videoRef.ts +0 -4
- package/src/components/Reels/utils/index.ts +0 -1
- package/src/components/Reels/utils/timeoutUtils.ts +0 -29
- package/src/components/Search/One.tsx +0 -256
- package/src/components/Search/components/RecentSearchesSection.tsx +0 -181
- package/src/components/Search/components/SearchCard.tsx +0 -275
- package/src/components/Search/index.ts +0 -16
- package/src/components/Settings/AppSettings.tsx +0 -428
- package/src/components/Settings/index.ts +0 -1
- package/src/components/Subscription/SubOne.tsx +0 -874
- package/src/components/Subscription/index.ts +0 -12
- package/src/components/TabBar/One.tsx +0 -148
- package/src/components/TabBar/Three.tsx +0 -169
- package/src/components/TabBar/Two.tsx +0 -189
- package/src/components/TabBar/index.ts +0 -20
- package/src/components/Text/Text.tsx +0 -85
- package/src/components/Text/index.ts +0 -5
- package/src/components/User/DeviceSessions/DeviceSessions.tsx +0 -468
- package/src/components/User/ProfileUpdate/ProfileUpdate.tsx +0 -278
- package/src/components/User/PurchaseHistory/PurchaseHistory.tsx +0 -494
- package/src/components/User/WatchHistory/WatchHistory.tsx +0 -227
- package/src/components/User/WatchLater/WatchLater.tsx +0 -397
- package/src/components/User/components/UserAvatar.tsx +0 -120
- package/src/components/User/components/UserSection.tsx +0 -228
- package/src/components/User/index.ts +0 -18
- package/src/components/View/View.tsx +0 -37
- package/src/components/View/index.ts +0 -5
- package/src/components/common/AppStatusBar.tsx +0 -57
- package/src/components/index.ts +0 -29
- package/src/components/layout/SafeAreaWrapper.tsx +0 -45
- package/src/components/layout/index.ts +0 -1
- package/src/constants/dummySections.ts +0 -98
- package/src/hooks/Images/index.ts +0 -2
- package/src/hooks/Images/useImageLoader.ts +0 -206
- package/src/hooks/Images/useImageValidation.ts +0 -36
- package/src/hooks/index.ts +0 -17
- package/src/hooks/useAdTracking.ts +0 -349
- package/src/hooks/useCards.ts +0 -228
- package/src/hooks/useDebounce.ts +0 -35
- package/src/hooks/useKeyboard.ts +0 -43
- package/src/hooks/useNavigationMode.ts +0 -46
- package/src/hooks/usePaginatedSection.ts +0 -101
- package/src/hooks/usePrevious.ts +0 -28
- package/src/hooks/useSafeCallback.ts +0 -43
- package/src/hooks/useSkeletonItems.ts +0 -30
- package/src/hooks/useSplashCache.ts +0 -186
- package/src/hooks/useThemeColors.ts +0 -51
- package/src/index.tsx +0 -8
- package/src/store/RecentSearchesStore.ts +0 -78
- package/src/store/splashStore.ts +0 -91
- package/src/store/themeStore.ts +0 -43
- package/src/theme/ThemeProvider.tsx +0 -112
- package/src/theme/hook/index.ts +0 -1
- package/src/theme/hook/useInternalTheme.ts +0 -98
- package/src/theme/index.ts +0 -7
- package/src/theme/themes.ts +0 -336
- package/src/theme/utils/validateColor.ts +0 -127
- package/src/types/content/content-view.types.ts +0 -206
- package/src/types/hook/index.ts +0 -5
- package/src/types/hook/usePaginatedSetion.ts +0 -19
- package/src/types/index.ts +0 -7
- package/src/types/sections/index.ts +0 -84
- package/src/utils/Display.ts +0 -14
- package/src/utils/Formater.ts +0 -14
- package/src/utils/PlatformSelector.ts +0 -29
- package/src/utils/SizeMatters.ts +0 -7
- package/src/utils/Spacing.ts +0 -27
- package/src/utils/colorUtils.ts +0 -70
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Naresh Dhamu
|
|
3
|
-
* @lastModified Mon 23 Jun 2025 at 11:22 AM
|
|
4
|
-
*/
|
|
5
|
-
import React, { memo, useMemo } from 'react';
|
|
6
|
-
import { View, Pressable, type TextStyle, type ViewStyle } from 'react-native';
|
|
7
|
-
import { Edit3 } from 'lucide-react-native';
|
|
8
|
-
import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
9
|
-
import { moderateScale, scale, verticalScale } from 'react-native-size-matters';
|
|
10
|
-
import UserAvatar from './UserAvatar';
|
|
11
|
-
import { Text } from '../../Text';
|
|
12
|
-
import { useInternalTheme } from '../../../theme/hook/useInternalTheme';
|
|
13
|
-
import type { ThemeOverride } from '../../../theme/themes';
|
|
14
|
-
import { RFValue } from 'react-native-responsive-fontsize';
|
|
15
|
-
|
|
16
|
-
export interface UserInfo {
|
|
17
|
-
name: string;
|
|
18
|
-
avatarUri: string;
|
|
19
|
-
emailOrPhone: string;
|
|
20
|
-
onEditPress?: () => void;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export interface UserInfoTextStyle {
|
|
24
|
-
nameStyle?: TextStyle;
|
|
25
|
-
emailStyle?: TextStyle;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
interface UserSectionProps {
|
|
29
|
-
userInfo: UserInfo;
|
|
30
|
-
isLoading?: boolean;
|
|
31
|
-
renderUserInfo?: (userInfo: UserInfo) => React.ReactNode;
|
|
32
|
-
theme?: ThemeOverride;
|
|
33
|
-
avatarComponent?: React.ReactNode;
|
|
34
|
-
skeletonProps?: Partial<React.ComponentProps<typeof SkeletonPlaceholder>>;
|
|
35
|
-
userInfoTextStyle?: UserInfoTextStyle;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
const UserSectionComponent: React.FC<UserSectionProps> = ({
|
|
39
|
-
userInfo,
|
|
40
|
-
isLoading,
|
|
41
|
-
renderUserInfo,
|
|
42
|
-
theme,
|
|
43
|
-
avatarComponent,
|
|
44
|
-
skeletonProps = {},
|
|
45
|
-
userInfoTextStyle = {},
|
|
46
|
-
}) => {
|
|
47
|
-
const { theme: appliedTheme } = useInternalTheme(theme);
|
|
48
|
-
|
|
49
|
-
// Memoize skeleton colors
|
|
50
|
-
const skeletonColors = useMemo(
|
|
51
|
-
() => ({
|
|
52
|
-
backgroundColor: appliedTheme.colors.skeletonBaseColor,
|
|
53
|
-
highlightColor: appliedTheme.colors.skeletonHighlightColor,
|
|
54
|
-
}),
|
|
55
|
-
[
|
|
56
|
-
appliedTheme.colors.skeletonBaseColor,
|
|
57
|
-
appliedTheme.colors.skeletonHighlightColor,
|
|
58
|
-
]
|
|
59
|
-
);
|
|
60
|
-
|
|
61
|
-
// Memoize edit button style
|
|
62
|
-
const editButtonStyle = useMemo(
|
|
63
|
-
() => [
|
|
64
|
-
styles.editButton,
|
|
65
|
-
{
|
|
66
|
-
borderColor: appliedTheme.colors.primary,
|
|
67
|
-
backgroundColor: appliedTheme.colors.surfaceVariant,
|
|
68
|
-
shadowColor: appliedTheme.colors.surface,
|
|
69
|
-
},
|
|
70
|
-
],
|
|
71
|
-
[
|
|
72
|
-
appliedTheme.colors.primary,
|
|
73
|
-
appliedTheme.colors.surfaceVariant,
|
|
74
|
-
appliedTheme.colors.surface,
|
|
75
|
-
]
|
|
76
|
-
);
|
|
77
|
-
|
|
78
|
-
// Memoize text styles
|
|
79
|
-
const userNameStyle = useMemo(
|
|
80
|
-
() => [
|
|
81
|
-
styles.userName,
|
|
82
|
-
{ color: appliedTheme.colors.onBackground },
|
|
83
|
-
userInfoTextStyle.nameStyle,
|
|
84
|
-
],
|
|
85
|
-
[appliedTheme.colors.onBackground, userInfoTextStyle.nameStyle]
|
|
86
|
-
);
|
|
87
|
-
|
|
88
|
-
const userEmailStyle = useMemo(
|
|
89
|
-
() => [
|
|
90
|
-
styles.userEmail,
|
|
91
|
-
{ color: appliedTheme.colors.onBackground },
|
|
92
|
-
userInfoTextStyle.emailStyle,
|
|
93
|
-
],
|
|
94
|
-
[appliedTheme.colors.onBackground, userInfoTextStyle.emailStyle]
|
|
95
|
-
);
|
|
96
|
-
|
|
97
|
-
// Memoize ripple color
|
|
98
|
-
const rippleColor = useMemo(
|
|
99
|
-
() => appliedTheme.colors.surfaceDisabled,
|
|
100
|
-
[appliedTheme.colors.surfaceDisabled]
|
|
101
|
-
);
|
|
102
|
-
|
|
103
|
-
// Memoize primary color
|
|
104
|
-
const primaryColor = useMemo(
|
|
105
|
-
() => appliedTheme.colors.primary,
|
|
106
|
-
[appliedTheme.colors.primary]
|
|
107
|
-
);
|
|
108
|
-
|
|
109
|
-
if (!userInfo) return null;
|
|
110
|
-
if (renderUserInfo) return renderUserInfo(userInfo);
|
|
111
|
-
|
|
112
|
-
if (isLoading) {
|
|
113
|
-
return (
|
|
114
|
-
<View style={styles.userInfoContainer}>
|
|
115
|
-
<SkeletonPlaceholder
|
|
116
|
-
backgroundColor={skeletonColors.backgroundColor}
|
|
117
|
-
highlightColor={skeletonColors.highlightColor}
|
|
118
|
-
borderRadius={moderateScale(8)}
|
|
119
|
-
{...skeletonProps}
|
|
120
|
-
>
|
|
121
|
-
<View style={styles.skeletonWrapper}>
|
|
122
|
-
<View style={styles.skeletonAvatar} />
|
|
123
|
-
<View style={styles.skeletonName} />
|
|
124
|
-
<View style={styles.skeletonEmail} />
|
|
125
|
-
</View>
|
|
126
|
-
</SkeletonPlaceholder>
|
|
127
|
-
</View>
|
|
128
|
-
);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
return (
|
|
132
|
-
<View style={styles.userInfoContainer}>
|
|
133
|
-
<View style={styles.avatarWrapper}>
|
|
134
|
-
{avatarComponent ?? (
|
|
135
|
-
<>
|
|
136
|
-
<UserAvatar avatarUri={userInfo.avatarUri} theme={theme} />
|
|
137
|
-
{userInfo.onEditPress && (
|
|
138
|
-
<Pressable
|
|
139
|
-
onPress={userInfo.onEditPress}
|
|
140
|
-
style={editButtonStyle}
|
|
141
|
-
android_ripple={{
|
|
142
|
-
color: rippleColor,
|
|
143
|
-
}}
|
|
144
|
-
>
|
|
145
|
-
<Edit3 size={moderateScale(13)} color={primaryColor} />
|
|
146
|
-
</Pressable>
|
|
147
|
-
)}
|
|
148
|
-
</>
|
|
149
|
-
)}
|
|
150
|
-
</View>
|
|
151
|
-
|
|
152
|
-
{userInfo.name && <Text style={userNameStyle}>{userInfo.name}</Text>}
|
|
153
|
-
{userInfo.emailOrPhone && (
|
|
154
|
-
<Text style={userEmailStyle}>{userInfo.emailOrPhone}</Text>
|
|
155
|
-
)}
|
|
156
|
-
</View>
|
|
157
|
-
);
|
|
158
|
-
};
|
|
159
|
-
|
|
160
|
-
const UserSection = memo(UserSectionComponent);
|
|
161
|
-
export default UserSection;
|
|
162
|
-
|
|
163
|
-
// Styles
|
|
164
|
-
const styles = {
|
|
165
|
-
userInfoContainer: {
|
|
166
|
-
alignItems: 'center',
|
|
167
|
-
justifyContent: 'center',
|
|
168
|
-
paddingVertical: verticalScale(10),
|
|
169
|
-
height: verticalScale(200),
|
|
170
|
-
} as ViewStyle,
|
|
171
|
-
avatarWrapper: {
|
|
172
|
-
position: 'relative',
|
|
173
|
-
} as ViewStyle,
|
|
174
|
-
editButton: {
|
|
175
|
-
position: 'absolute',
|
|
176
|
-
bottom: scale(2),
|
|
177
|
-
right: scale(2),
|
|
178
|
-
padding: scale(2),
|
|
179
|
-
width: scale(23),
|
|
180
|
-
height: scale(23),
|
|
181
|
-
overflow: 'hidden',
|
|
182
|
-
borderRadius: scale(11),
|
|
183
|
-
alignItems: 'center',
|
|
184
|
-
justifyContent: 'center',
|
|
185
|
-
borderWidth: 1,
|
|
186
|
-
elevation: 1,
|
|
187
|
-
shadowOffset: { width: 0, height: 0.5 },
|
|
188
|
-
shadowOpacity: 0.1,
|
|
189
|
-
shadowRadius: 0.5,
|
|
190
|
-
} as ViewStyle,
|
|
191
|
-
|
|
192
|
-
editLabel: {
|
|
193
|
-
fontSize: RFValue(8),
|
|
194
|
-
marginTop: verticalScale(1),
|
|
195
|
-
fontWeight: '500',
|
|
196
|
-
lineHeight: moderateScale(12),
|
|
197
|
-
} as TextStyle,
|
|
198
|
-
userName: {
|
|
199
|
-
fontSize: RFValue(15),
|
|
200
|
-
fontWeight: '600',
|
|
201
|
-
marginTop: verticalScale(10),
|
|
202
|
-
marginBottom: verticalScale(2),
|
|
203
|
-
} as TextStyle,
|
|
204
|
-
userEmail: {
|
|
205
|
-
fontSize: RFValue(13),
|
|
206
|
-
opacity: 0.7,
|
|
207
|
-
} as TextStyle,
|
|
208
|
-
skeletonWrapper: {
|
|
209
|
-
alignItems: 'center',
|
|
210
|
-
} as ViewStyle,
|
|
211
|
-
skeletonAvatar: {
|
|
212
|
-
width: scale(80),
|
|
213
|
-
height: scale(80),
|
|
214
|
-
borderRadius: scale(40),
|
|
215
|
-
marginBottom: verticalScale(12),
|
|
216
|
-
} as ViewStyle,
|
|
217
|
-
skeletonName: {
|
|
218
|
-
width: scale(120),
|
|
219
|
-
height: verticalScale(18),
|
|
220
|
-
borderRadius: moderateScale(4),
|
|
221
|
-
marginBottom: verticalScale(6),
|
|
222
|
-
} as ViewStyle,
|
|
223
|
-
skeletonEmail: {
|
|
224
|
-
width: scale(160),
|
|
225
|
-
height: verticalScale(14),
|
|
226
|
-
borderRadius: moderateScale(4),
|
|
227
|
-
} as ViewStyle,
|
|
228
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Naresh Dhamu
|
|
3
|
-
* @lastModified Tue 24 Jun 2025 at 05:02 PM
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { WatchHistory } from './WatchHistory/WatchHistory';
|
|
7
|
-
import { WatchLater } from './WatchLater/WatchLater';
|
|
8
|
-
import { DeviceSessions } from './DeviceSessions/DeviceSessions';
|
|
9
|
-
import { ProfileUpdate } from './ProfileUpdate/ProfileUpdate';
|
|
10
|
-
import { PurchaseHistory } from './PurchaseHistory/PurchaseHistory';
|
|
11
|
-
|
|
12
|
-
export {
|
|
13
|
-
WatchHistory,
|
|
14
|
-
WatchLater,
|
|
15
|
-
DeviceSessions,
|
|
16
|
-
ProfileUpdate,
|
|
17
|
-
PurchaseHistory,
|
|
18
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Naresh Dhamu
|
|
3
|
-
* @lastModified Mon 07 Jul 2025 at 11:49 AM
|
|
4
|
-
*/
|
|
5
|
-
import React, { useMemo } from 'react';
|
|
6
|
-
import {
|
|
7
|
-
View as RNView,
|
|
8
|
-
type ViewProps as RNViewProps,
|
|
9
|
-
type StyleProp,
|
|
10
|
-
type ViewStyle,
|
|
11
|
-
} from 'react-native';
|
|
12
|
-
|
|
13
|
-
export type ViewProps = RNViewProps & {
|
|
14
|
-
style?: StyleProp<ViewStyle> | undefined;
|
|
15
|
-
backgroundColor?: string;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export const View: React.FC<ViewProps> = ({
|
|
19
|
-
style,
|
|
20
|
-
backgroundColor = 'transparent',
|
|
21
|
-
children,
|
|
22
|
-
...rest
|
|
23
|
-
}) => {
|
|
24
|
-
// Memoize style array to prevent unnecessary re-renders
|
|
25
|
-
const computedStyle = useMemo(
|
|
26
|
-
() => [style, backgroundColor !== 'transparent' && { backgroundColor }],
|
|
27
|
-
[style, backgroundColor]
|
|
28
|
-
);
|
|
29
|
-
|
|
30
|
-
return (
|
|
31
|
-
<RNView style={computedStyle} {...rest}>
|
|
32
|
-
{children}
|
|
33
|
-
</RNView>
|
|
34
|
-
);
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
export default React.memo(View);
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Naresh Dhamu
|
|
3
|
-
* @lastModified Wed 22 Oct 2025 at 11:22 AM
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import React, { useMemo } from 'react';
|
|
7
|
-
import { StatusBar, Platform, type StatusBarStyle } from 'react-native';
|
|
8
|
-
import Color from 'color';
|
|
9
|
-
import type { ThemeOverride } from '../../theme/themes';
|
|
10
|
-
import { useInternalTheme } from '../../theme/hook';
|
|
11
|
-
|
|
12
|
-
type AppStatusBarProps = {
|
|
13
|
-
backgroundColor?: string;
|
|
14
|
-
barStyle?: StatusBarStyle;
|
|
15
|
-
transparent?: boolean;
|
|
16
|
-
translucent?: boolean;
|
|
17
|
-
hidden?: boolean;
|
|
18
|
-
theme?: ThemeOverride;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export const AppStatusBar: React.FC<AppStatusBarProps> = ({
|
|
22
|
-
backgroundColor,
|
|
23
|
-
barStyle,
|
|
24
|
-
transparent = false,
|
|
25
|
-
translucent = true,
|
|
26
|
-
hidden = false,
|
|
27
|
-
theme: overrideTheme,
|
|
28
|
-
}) => {
|
|
29
|
-
const { theme } = useInternalTheme(overrideTheme);
|
|
30
|
-
|
|
31
|
-
const resolvedBackground = useMemo(() => {
|
|
32
|
-
if (backgroundColor) return backgroundColor;
|
|
33
|
-
return theme.colors.background;
|
|
34
|
-
}, [backgroundColor, theme]);
|
|
35
|
-
|
|
36
|
-
// 🌗 Auto bar style
|
|
37
|
-
const resolvedBarStyle: StatusBarStyle = useMemo(() => {
|
|
38
|
-
if (barStyle) return barStyle;
|
|
39
|
-
const isDarkBg = Color(resolvedBackground).isDark();
|
|
40
|
-
return isDarkBg ? 'light-content' : 'dark-content';
|
|
41
|
-
}, [barStyle, resolvedBackground]);
|
|
42
|
-
|
|
43
|
-
return (
|
|
44
|
-
<StatusBar
|
|
45
|
-
translucent={translucent}
|
|
46
|
-
hidden={hidden}
|
|
47
|
-
barStyle={resolvedBarStyle}
|
|
48
|
-
backgroundColor={
|
|
49
|
-
Platform.OS === 'android'
|
|
50
|
-
? transparent
|
|
51
|
-
? 'transparent'
|
|
52
|
-
: resolvedBackground
|
|
53
|
-
: 'transparent'
|
|
54
|
-
}
|
|
55
|
-
/>
|
|
56
|
-
);
|
|
57
|
-
};
|
package/src/components/index.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Naresh Dhamu
|
|
3
|
-
* @lastModified Sun 08 Jun 2025 at 03:23 PM
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
export * from './Button';
|
|
7
|
-
export * from './Fallbacks';
|
|
8
|
-
export * from './Input/Input';
|
|
9
|
-
export * from './Loader/Loader';
|
|
10
|
-
export * from './Headers';
|
|
11
|
-
export * from './Content/Content';
|
|
12
|
-
export * from './Logo/Logo';
|
|
13
|
-
export * from './Auth';
|
|
14
|
-
export * from './layout';
|
|
15
|
-
export * from './Settings';
|
|
16
|
-
export * from './Account';
|
|
17
|
-
export * from './TabBar';
|
|
18
|
-
export * from './Text';
|
|
19
|
-
export * from './View';
|
|
20
|
-
export * from './User';
|
|
21
|
-
export * from './BlogView';
|
|
22
|
-
export * from './ContentView';
|
|
23
|
-
export * from './Search';
|
|
24
|
-
export * from './Subscription';
|
|
25
|
-
export * from './Alert';
|
|
26
|
-
export * from './Reels';
|
|
27
|
-
export * from './BlurView';
|
|
28
|
-
export * from './BottomSheet';
|
|
29
|
-
export * from './NewRelease';
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import React, { useMemo } from 'react';
|
|
2
|
-
import { StyleSheet, type ViewStyle } from 'react-native';
|
|
3
|
-
import { SafeAreaView } from 'react-native-safe-area-context';
|
|
4
|
-
import type { ThemeOverride } from '../../theme/themes';
|
|
5
|
-
import { useInternalTheme } from '../../theme/hook/useInternalTheme';
|
|
6
|
-
|
|
7
|
-
type SafeAreaWrapperProps = {
|
|
8
|
-
children: React.ReactNode;
|
|
9
|
-
style?: ViewStyle;
|
|
10
|
-
theme?: ThemeOverride;
|
|
11
|
-
edges?: ('top' | 'right' | 'bottom' | 'left')[];
|
|
12
|
-
fallbackBackground?: string;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export const SafeAreaWrapper: React.FC<SafeAreaWrapperProps> = ({
|
|
16
|
-
children,
|
|
17
|
-
style,
|
|
18
|
-
theme,
|
|
19
|
-
edges = ['top'],
|
|
20
|
-
fallbackBackground = '#fff',
|
|
21
|
-
}) => {
|
|
22
|
-
const { theme: appliedTheme } = useInternalTheme(theme);
|
|
23
|
-
|
|
24
|
-
const containerStyle = useMemo(() => {
|
|
25
|
-
return [
|
|
26
|
-
styles.container,
|
|
27
|
-
{
|
|
28
|
-
backgroundColor: appliedTheme?.colors?.background || fallbackBackground,
|
|
29
|
-
},
|
|
30
|
-
style,
|
|
31
|
-
];
|
|
32
|
-
}, [appliedTheme.colors.background, fallbackBackground, style]);
|
|
33
|
-
|
|
34
|
-
return (
|
|
35
|
-
<SafeAreaView edges={edges} style={containerStyle}>
|
|
36
|
-
{children}
|
|
37
|
-
</SafeAreaView>
|
|
38
|
-
);
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
const styles = StyleSheet.create({
|
|
42
|
-
container: {
|
|
43
|
-
flex: 1,
|
|
44
|
-
},
|
|
45
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './SafeAreaWrapper';
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import type { IContentData } from '@zezosoft/zezo-ott-api-client';
|
|
2
|
-
import type { IGetSectionData } from '../types';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Creates a dummy content data object for skeleton loading states
|
|
6
|
-
*/
|
|
7
|
-
export const dummyContentData = (
|
|
8
|
-
id: string = 'dummy-content-id'
|
|
9
|
-
): IContentData => {
|
|
10
|
-
return {
|
|
11
|
-
_id: id,
|
|
12
|
-
poster: '',
|
|
13
|
-
thumbnail: '',
|
|
14
|
-
content_offering_type: 'movie',
|
|
15
|
-
name: '',
|
|
16
|
-
slug: '',
|
|
17
|
-
u_age: '',
|
|
18
|
-
description: '',
|
|
19
|
-
release_date: '',
|
|
20
|
-
runtime: '',
|
|
21
|
-
duration: '',
|
|
22
|
-
genre: '',
|
|
23
|
-
director: '',
|
|
24
|
-
cast: [],
|
|
25
|
-
rating: '',
|
|
26
|
-
language: '',
|
|
27
|
-
subtitles: [],
|
|
28
|
-
audio_tracks: [],
|
|
29
|
-
type: 'movie',
|
|
30
|
-
year: '',
|
|
31
|
-
tags: [],
|
|
32
|
-
trailer: '',
|
|
33
|
-
trailer_source_link: '',
|
|
34
|
-
banner: '',
|
|
35
|
-
logo: '',
|
|
36
|
-
source_link: '',
|
|
37
|
-
source_type: '',
|
|
38
|
-
is_featured: false,
|
|
39
|
-
is_premium: false,
|
|
40
|
-
status: 'active',
|
|
41
|
-
views: 0,
|
|
42
|
-
likes: 0,
|
|
43
|
-
created_at: new Date().toISOString(),
|
|
44
|
-
updated_at: new Date().toISOString(),
|
|
45
|
-
} as unknown as IContentData;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
const generateDummySection = (
|
|
49
|
-
type: IGetSectionData['type']
|
|
50
|
-
): IGetSectionData => {
|
|
51
|
-
return {
|
|
52
|
-
_id: `dummy-${type}`,
|
|
53
|
-
name: `Loading ${type.charAt(0).toUpperCase() + type.slice(1)}`,
|
|
54
|
-
type,
|
|
55
|
-
content_ids: Array(5).fill(''),
|
|
56
|
-
category: {
|
|
57
|
-
_id: 'dummy-cat-id',
|
|
58
|
-
name: 'Dummy',
|
|
59
|
-
slug: 'dummy',
|
|
60
|
-
},
|
|
61
|
-
content: {
|
|
62
|
-
data: Array.from({ length: 5 }, (_, i) =>
|
|
63
|
-
dummyContentData(`dummy-content-${i}`)
|
|
64
|
-
),
|
|
65
|
-
meta: {
|
|
66
|
-
pagination: {
|
|
67
|
-
total: 5,
|
|
68
|
-
limit: 5,
|
|
69
|
-
page: 1,
|
|
70
|
-
hasNextPage: true,
|
|
71
|
-
length: 5,
|
|
72
|
-
nextPage: 2,
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
label: '',
|
|
77
|
-
order: 0,
|
|
78
|
-
status: false,
|
|
79
|
-
createdAt: new Date(),
|
|
80
|
-
updatedAt: new Date(),
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
export const dummySections = ({
|
|
85
|
-
headerStyle = 'one',
|
|
86
|
-
}: { headerStyle?: 'one' | 'two' | 'three' } = {}): IGetSectionData[] => [
|
|
87
|
-
headerStyle === 'three'
|
|
88
|
-
? generateDummySection('slider_style_3')
|
|
89
|
-
: generateDummySection('slider'),
|
|
90
|
-
generateDummySection('normal'),
|
|
91
|
-
generateDummySection('continue_watching'),
|
|
92
|
-
generateDummySection('card_style_2'),
|
|
93
|
-
generateDummySection('card_style_3'),
|
|
94
|
-
generateDummySection('card_style_4'),
|
|
95
|
-
generateDummySection('card_style_5'),
|
|
96
|
-
generateDummySection('card_style_6'),
|
|
97
|
-
generateDummySection('top_10'),
|
|
98
|
-
];
|