@zezosoft/zezo-ott-react-native-ui-kit 1.1.5 → 1.1.6

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.
Files changed (252) hide show
  1. package/package.json +1 -14
  2. package/src/Styles/globalStyles.ts +0 -70
  3. package/src/assets/animations/135037-payment-processing-error.json +0 -1347
  4. package/src/assets/animations/7227-vui-animation.json +0 -3377
  5. package/src/assets/animations/Failed.json +0 -2103
  6. package/src/assets/animations/Pending.json +0 -522
  7. package/src/assets/animations/Successful.json +0 -2289
  8. package/src/assets/animations/heart.json +0 -788
  9. package/src/assets/animations/succesfull-payment.json +0 -2379
  10. package/src/assets/animations/voice-icon.json +0 -542
  11. package/src/assets/img/back.png +0 -0
  12. package/src/assets/img/bottom-panel.png +0 -0
  13. package/src/assets/img/camera.png +0 -0
  14. package/src/assets/img/camera2.png +0 -0
  15. package/src/assets/img/home.png +0 -0
  16. package/src/assets/img/lock.png +0 -0
  17. package/src/assets/img/play.png +0 -0
  18. package/src/assets/img/profile.jpg +0 -0
  19. package/src/assets/img/qr-code.png +0 -0
  20. package/src/assets/img/shadow.png +0 -0
  21. package/src/assets/img/shadow2.png +0 -0
  22. package/src/assets/img/user.png +0 -0
  23. package/src/assets/svg/Account.svg +0 -4
  24. package/src/assets/svg/Favourite.svg +0 -14
  25. package/src/assets/svg/Upcoming.svg +0 -4
  26. package/src/assets/svg/content-error.svg +0 -28
  27. package/src/assets/svg/download.svg +0 -3
  28. package/src/assets/svg/eye-off.svg +0 -10
  29. package/src/assets/svg/favorites.svg +0 -3
  30. package/src/assets/svg/h.svg +0 -4
  31. package/src/assets/svg/home.svg +0 -5
  32. package/src/assets/svg/home1.svg +0 -3
  33. package/src/assets/svg/menu-bar.svg +0 -4
  34. package/src/assets/svg/my-space.svg +0 -14
  35. package/src/assets/svg/play-icon-with-bg.svg +0 -5
  36. package/src/assets/svg/profile.svg +0 -4
  37. package/src/assets/svg/search.svg +0 -5
  38. package/src/assets/svg/search1.svg +0 -4
  39. package/src/assets/svg/server-error.svg +0 -139
  40. package/src/components/Account/Account.tsx +0 -367
  41. package/src/components/Account/index.ts +0 -1
  42. package/src/components/Alert/AlertDialog.tsx +0 -247
  43. package/src/components/Alert/UAAlert.tsx +0 -170
  44. package/src/components/Alert/index.ts +0 -2
  45. package/src/components/Auth/AuthProvider/AuthProvider.tsx +0 -419
  46. package/src/components/Auth/One/ForgotPassword/ForgotPassword.tsx +0 -324
  47. package/src/components/Auth/One/Login/LoginWithEmail.tsx +0 -455
  48. package/src/components/Auth/One/Login/LoginWithPhone.tsx +0 -306
  49. package/src/components/Auth/One/OTP/OTP.tsx +0 -465
  50. package/src/components/Auth/One/QrLogin/QrLogin.tsx +0 -602
  51. package/src/components/Auth/One/QrLogin/components/QrViewArea.tsx +0 -423
  52. package/src/components/Auth/One/SignUp/SignUp.tsx +0 -479
  53. package/src/components/Auth/One/SplashScreen/SplashScreen.tsx +0 -249
  54. package/src/components/Auth/One/SplashScreen/components/SplashImage/SplashImage.tsx +0 -103
  55. package/src/components/Auth/One/SplashScreen/components/SplashLottie/SplashLottie.tsx +0 -77
  56. package/src/components/Auth/One/SplashScreen/components/SplashVideo/SplashVideo.tsx +0 -174
  57. package/src/components/Auth/One/index.ts +0 -24
  58. package/src/components/Auth/Two/AuthHeader/AuthHeader.tsx +0 -108
  59. package/src/components/Auth/Two/ForgotPassword/ForgotPassword.tsx +0 -335
  60. package/src/components/Auth/Two/Login/AuthLoginShell.tsx +0 -173
  61. package/src/components/Auth/Two/Login/LoginWithEmail.tsx +0 -279
  62. package/src/components/Auth/Two/Login/LoginWithPhone.tsx +0 -188
  63. package/src/components/Auth/Two/OTP/OTP.tsx +0 -465
  64. package/src/components/Auth/Two/QrLogin/QrLogin.tsx +0 -602
  65. package/src/components/Auth/Two/QrLogin/components/QrViewArea.tsx +0 -423
  66. package/src/components/Auth/Two/SignUp/SignUp.tsx +0 -472
  67. package/src/components/Auth/Two/SplashScreen/SplashScreen.tsx +0 -248
  68. package/src/components/Auth/Two/SplashScreen/components/SplashImage/SplashImage.tsx +0 -92
  69. package/src/components/Auth/Two/SplashScreen/components/SplashLottie/SplashLottie.tsx +0 -77
  70. package/src/components/Auth/Two/SplashScreen/components/SplashVideo/SplashVideo.tsx +0 -178
  71. package/src/components/Auth/Two/index.ts +0 -28
  72. package/src/components/Auth/index.ts +0 -11
  73. package/src/components/BackgroundLayout/BackgroundLayout.tsx +0 -174
  74. package/src/components/BackgroundLayout/BackgroundLayoutOne.tsx +0 -56
  75. package/src/components/BlogView/BlogView.tsx +0 -276
  76. package/src/components/BlogView/index.ts +0 -8
  77. package/src/components/BlurView/BlurView.tsx +0 -199
  78. package/src/components/BlurView/index.ts +0 -7
  79. package/src/components/BottomSheet/BottomSheet.tsx +0 -200
  80. package/src/components/BottomSheet/BottomSheetOne.tsx +0 -220
  81. package/src/components/BottomSheet/index.ts +0 -4
  82. package/src/components/Button/BackBtn.tsx +0 -168
  83. package/src/components/Button/MenuBtn.tsx +0 -229
  84. package/src/components/Button/PrimaryBtn.tsx +0 -134
  85. package/src/components/Button/SecondaryBtn.tsx +0 -132
  86. package/src/components/Button/TextButton.tsx +0 -145
  87. package/src/components/Button/index.ts +0 -18
  88. package/src/components/Content/Card/Category/Category.tsx +0 -436
  89. package/src/components/Content/Card/Category/CategroyTwo.tsx +0 -429
  90. package/src/components/Content/Card/NowWatching/NowWatching.tsx +0 -624
  91. package/src/components/Content/Card/Sliders/Styles/One.tsx +0 -490
  92. package/src/components/Content/Card/Sliders/Styles/Three.tsx +0 -935
  93. package/src/components/Content/Card/Sliders/Styles/Two.tsx +0 -391
  94. package/src/components/Content/Card/Sliders/index.ts +0 -17
  95. package/src/components/Content/Card/Styles/Five.tsx +0 -385
  96. package/src/components/Content/Card/Styles/Four.tsx +0 -379
  97. package/src/components/Content/Card/Styles/One.tsx +0 -386
  98. package/src/components/Content/Card/Styles/RotateInOut.tsx +0 -413
  99. package/src/components/Content/Card/Styles/Six.tsx +0 -392
  100. package/src/components/Content/Card/Styles/Three.tsx +0 -314
  101. package/src/components/Content/Card/Styles/TopTen.tsx +0 -412
  102. package/src/components/Content/Card/Styles/Two.tsx +0 -416
  103. package/src/components/Content/Card/components/AdsPoster.tsx +0 -202
  104. package/src/components/Content/Card/components/CardPoster.tsx +0 -377
  105. package/src/components/Content/Card/components/NavigateToMore.tsx +0 -97
  106. package/src/components/Content/Card/components/RentOrBuyIcon.tsx +0 -129
  107. package/src/components/Content/Card/components/ShowAllButton.tsx +0 -92
  108. package/src/components/Content/Card/components/ThumbnailCard.tsx +0 -234
  109. package/src/components/Content/Card/components/index.ts +0 -1
  110. package/src/components/Content/Card/index.ts +0 -30
  111. package/src/components/Content/Content.tsx +0 -315
  112. package/src/components/Content/Sections.tsx +0 -238
  113. package/src/components/Content/types.ts +0 -176
  114. package/src/components/ContentView/MoreContentList.tsx +0 -327
  115. package/src/components/ContentView/One/ContentViewOne.tsx +0 -243
  116. package/src/components/ContentView/One/components/AboutSection.tsx +0 -216
  117. package/src/components/ContentView/One/components/CastCard.tsx +0 -265
  118. package/src/components/ContentView/One/components/EpisodeCard.tsx +0 -535
  119. package/src/components/ContentView/One/components/GenreTags.tsx +0 -132
  120. package/src/components/ContentView/One/components/HeroBanner.tsx +0 -357
  121. package/src/components/ContentView/One/components/MiniInfo.tsx +0 -356
  122. package/src/components/ContentView/One/components/PlayButton.tsx +0 -56
  123. package/src/components/ContentView/One/components/Title.tsx +0 -149
  124. package/src/components/ContentView/One/components/TrailerButton.tsx +0 -76
  125. package/src/components/ContentView/Two/ContentViewTwo.tsx +0 -343
  126. package/src/components/ContentView/Two/components/AboutSection.tsx +0 -216
  127. package/src/components/ContentView/Two/components/Details.tsx +0 -193
  128. package/src/components/ContentView/Two/components/EpisodeCard.tsx +0 -602
  129. package/src/components/ContentView/Two/components/GenreTags.tsx +0 -123
  130. package/src/components/ContentView/Two/components/HeroBanner.tsx +0 -402
  131. package/src/components/ContentView/Two/components/LikeShareActions.tsx +0 -125
  132. package/src/components/ContentView/Two/components/MoreLikeThisContentList .tsx +0 -305
  133. package/src/components/ContentView/Two/components/PlayOrTrailer.tsx +0 -133
  134. package/src/components/ContentView/Two/components/SectionTabs.tsx +0 -177
  135. package/src/components/ContentView/Two/components/Title.tsx +0 -226
  136. package/src/components/ContentView/Two/components/index.ts +0 -15
  137. package/src/components/ContentView/index.ts +0 -13
  138. package/src/components/Fallbacks/NoContentFallback.tsx +0 -176
  139. package/src/components/Fallbacks/NotFoundFallback.tsx +0 -94
  140. package/src/components/Fallbacks/index.ts +0 -2
  141. package/src/components/Headers/AppHeader.tsx +0 -150
  142. package/src/components/Headers/Four.tsx +0 -83
  143. package/src/components/Headers/One.tsx +0 -115
  144. package/src/components/Headers/Three.tsx +0 -135
  145. package/src/components/Headers/Two.tsx +0 -100
  146. package/src/components/Headers/index.ts +0 -18
  147. package/src/components/Input/Input.ts +0 -20
  148. package/src/components/Input/InputOne.tsx +0 -259
  149. package/src/components/Input/InputThree.tsx +0 -212
  150. package/src/components/Input/InputTwo.tsx +0 -212
  151. package/src/components/Input/PhoneNumberInput.tsx +0 -431
  152. package/src/components/Input/PhoneNumberInputTwo.tsx +0 -418
  153. package/src/components/Keyboard/HideKeyboard.tsx +0 -88
  154. package/src/components/Loader/Loader.tsx +0 -44
  155. package/src/components/Logo/Logo.tsx +0 -145
  156. package/src/components/NewRelease/NewReleaseSheet.tsx +0 -250
  157. package/src/components/NewRelease/index.ts +0 -1
  158. package/src/components/Reels/ReelsSeries/MediaControls/BottomControls.tsx +0 -221
  159. package/src/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.tsx +0 -314
  160. package/src/components/Reels/ReelsSeries/MediaControls/MiddleControls.tsx +0 -196
  161. package/src/components/Reels/ReelsSeries/MediaControls/RightControls.tsx +0 -95
  162. package/src/components/Reels/ReelsSeries/MediaControls/TopControls.tsx +0 -163
  163. package/src/components/Reels/ReelsSeries/Model/DetailsModal.tsx +0 -210
  164. package/src/components/Reels/ReelsSeries/Model/SettingModal.tsx +0 -146
  165. package/src/components/Reels/ReelsSeries/Model/UnlockModal.tsx +0 -154
  166. package/src/components/Reels/ReelsSeries/ReelsSeries.tsx +0 -264
  167. package/src/components/Reels/ReelsSeries/ReelsSeriesItem.tsx +0 -494
  168. package/src/components/Reels/ReelsSeries/components/AnimatedThreeLines.tsx +0 -184
  169. package/src/components/Reels/ReelsSeries/components/Episodes.tsx +0 -154
  170. package/src/components/Reels/ReelsSeries/components/GradientOverlay.tsx +0 -41
  171. package/src/components/Reels/ReelsSeries/components/Like.tsx +0 -40
  172. package/src/components/Reels/ReelsSeries/components/RotatingLoader.tsx +0 -79
  173. package/src/components/Reels/ReelsSeries/components/Synopsis.tsx +0 -332
  174. package/src/components/Reels/ReelsSeries/components/VideoControls/QualityControl.tsx +0 -187
  175. package/src/components/Reels/ReelsSeries/components/VideoControls/SpeedControl.tsx +0 -80
  176. package/src/components/Reels/ReelsSeries/components/VideoControls/index.ts +0 -2
  177. package/src/components/Reels/ReelsSeries/types.ts +0 -54
  178. package/src/components/Reels/ReelsSeries/useReelsWatchProgress.ts +0 -85
  179. package/src/components/Reels/ReelsSeries/utils/quality.ts +0 -48
  180. package/src/components/Reels/index.ts +0 -9
  181. package/src/components/Reels/utils/Controls/gestureUtils.ts +0 -42
  182. package/src/components/Reels/utils/Controls/index.ts +0 -4
  183. package/src/components/Reels/utils/Controls/overlayUtils.ts +0 -35
  184. package/src/components/Reels/utils/Controls/videoControlsConstants.ts +0 -25
  185. package/src/components/Reels/utils/Controls/videoRef.ts +0 -4
  186. package/src/components/Reels/utils/index.ts +0 -1
  187. package/src/components/Reels/utils/timeoutUtils.ts +0 -29
  188. package/src/components/Search/One.tsx +0 -256
  189. package/src/components/Search/components/RecentSearchesSection.tsx +0 -181
  190. package/src/components/Search/components/SearchCard.tsx +0 -275
  191. package/src/components/Search/index.ts +0 -16
  192. package/src/components/Settings/AppSettings.tsx +0 -428
  193. package/src/components/Settings/index.ts +0 -1
  194. package/src/components/Subscription/SubOne.tsx +0 -874
  195. package/src/components/Subscription/index.ts +0 -12
  196. package/src/components/TabBar/One.tsx +0 -148
  197. package/src/components/TabBar/Three.tsx +0 -169
  198. package/src/components/TabBar/Two.tsx +0 -189
  199. package/src/components/TabBar/index.ts +0 -20
  200. package/src/components/Text/Text.tsx +0 -85
  201. package/src/components/Text/index.ts +0 -5
  202. package/src/components/User/DeviceSessions/DeviceSessions.tsx +0 -468
  203. package/src/components/User/ProfileUpdate/ProfileUpdate.tsx +0 -278
  204. package/src/components/User/PurchaseHistory/PurchaseHistory.tsx +0 -494
  205. package/src/components/User/WatchHistory/WatchHistory.tsx +0 -227
  206. package/src/components/User/WatchLater/WatchLater.tsx +0 -397
  207. package/src/components/User/components/UserAvatar.tsx +0 -120
  208. package/src/components/User/components/UserSection.tsx +0 -228
  209. package/src/components/User/index.ts +0 -18
  210. package/src/components/View/View.tsx +0 -37
  211. package/src/components/View/index.ts +0 -5
  212. package/src/components/common/AppStatusBar.tsx +0 -57
  213. package/src/components/index.ts +0 -29
  214. package/src/components/layout/SafeAreaWrapper.tsx +0 -45
  215. package/src/components/layout/index.ts +0 -1
  216. package/src/constants/dummySections.ts +0 -98
  217. package/src/hooks/Images/index.ts +0 -2
  218. package/src/hooks/Images/useImageLoader.ts +0 -206
  219. package/src/hooks/Images/useImageValidation.ts +0 -36
  220. package/src/hooks/index.ts +0 -17
  221. package/src/hooks/useAdTracking.ts +0 -349
  222. package/src/hooks/useCards.ts +0 -228
  223. package/src/hooks/useDebounce.ts +0 -35
  224. package/src/hooks/useKeyboard.ts +0 -43
  225. package/src/hooks/useNavigationMode.ts +0 -46
  226. package/src/hooks/usePaginatedSection.ts +0 -101
  227. package/src/hooks/usePrevious.ts +0 -28
  228. package/src/hooks/useSafeCallback.ts +0 -43
  229. package/src/hooks/useSkeletonItems.ts +0 -30
  230. package/src/hooks/useSplashCache.ts +0 -186
  231. package/src/hooks/useThemeColors.ts +0 -51
  232. package/src/index.tsx +0 -8
  233. package/src/store/RecentSearchesStore.ts +0 -78
  234. package/src/store/splashStore.ts +0 -91
  235. package/src/store/themeStore.ts +0 -43
  236. package/src/theme/ThemeProvider.tsx +0 -112
  237. package/src/theme/hook/index.ts +0 -1
  238. package/src/theme/hook/useInternalTheme.ts +0 -98
  239. package/src/theme/index.ts +0 -7
  240. package/src/theme/themes.ts +0 -336
  241. package/src/theme/utils/validateColor.ts +0 -127
  242. package/src/types/content/content-view.types.ts +0 -206
  243. package/src/types/hook/index.ts +0 -5
  244. package/src/types/hook/usePaginatedSetion.ts +0 -19
  245. package/src/types/index.ts +0 -7
  246. package/src/types/sections/index.ts +0 -84
  247. package/src/utils/Display.ts +0 -14
  248. package/src/utils/Formater.ts +0 -14
  249. package/src/utils/PlatformSelector.ts +0 -29
  250. package/src/utils/SizeMatters.ts +0 -7
  251. package/src/utils/Spacing.ts +0 -27
  252. package/src/utils/colorUtils.ts +0 -70
@@ -1,12 +0,0 @@
1
- /**
2
- * @author Ashok Desai
3
- * @lastModified jul 10 Jul 2025 at 6:40 PM
4
- */
5
-
6
- import SubscriptionOne from './SubOne';
7
-
8
- const Subscription = {
9
- One: SubscriptionOne,
10
- };
11
-
12
- export { Subscription };
@@ -1,148 +0,0 @@
1
- /**
2
- * @author Naresh Dhamu
3
- * @lastModified Thu 06 Nov 2025 at 11:50 AM
4
- */
5
-
6
- import React from 'react';
7
- import { View, StyleSheet, Pressable, Platform } from 'react-native';
8
- import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
9
- import type { BottomTabBarButtonProps } from '@react-navigation/bottom-tabs';
10
- import { scale } from 'react-native-size-matters';
11
- import { useInternalTheme } from '../../theme/hook/useInternalTheme';
12
- import type { ThemeOverride } from '../../theme/themes';
13
- import { RFValue } from 'react-native-responsive-fontsize';
14
- import { useSafeAreaInsets } from 'react-native-safe-area-context';
15
- import { useNavigationMode } from '../../hooks/useNavigationMode';
16
-
17
- type ITab = {
18
- key: string;
19
- name: string;
20
- screenComponent: React.ComponentType<any>;
21
- icon: React.ComponentType<{
22
- width: number;
23
- height: number;
24
- color: string;
25
- }>;
26
- };
27
-
28
- export type TabBarOneProps = {
29
- tabs: ITab[];
30
- onTabPress?: (key: string) => void;
31
- theme?: ThemeOverride;
32
- renderIcon?: ({
33
- icon,
34
- color,
35
- size,
36
- }: {
37
- icon: React.ComponentType<{ width: number; height: number; color: string }>;
38
- color: string;
39
- size: number;
40
- }) => React.ReactNode;
41
- };
42
-
43
- const Tab = createBottomTabNavigator();
44
-
45
- const TabBarOne = ({ tabs, theme, onTabPress, renderIcon }: TabBarOneProps) => {
46
- const { isGestureNav } = useNavigationMode();
47
- const insets = useSafeAreaInsets();
48
- const { theme: appliedTheme } = useInternalTheme(theme);
49
-
50
- const baseHeight =
51
- Platform.OS === 'android'
52
- ? isGestureNav
53
- ? scale(53)
54
- : scale(68)
55
- : scale(35);
56
-
57
- const tabBarHeight = baseHeight + insets.bottom;
58
-
59
- return (
60
- <Tab.Navigator
61
- screenOptions={{
62
- headerShown: false,
63
- tabBarHideOnKeyboard: true,
64
- tabBarStyle: {
65
- backgroundColor: appliedTheme.colors.background,
66
- borderColor: appliedTheme.colors.border,
67
- borderTopWidth: scale(0.5),
68
- paddingHorizontal: scale(5),
69
- height: tabBarHeight,
70
- },
71
-
72
- tabBarActiveTintColor: appliedTheme.colors.primary,
73
- tabBarInactiveTintColor: appliedTheme.colors.textPrimary,
74
-
75
- tabBarLabelStyle: {
76
- fontSize: RFValue(10),
77
- },
78
- }}
79
- >
80
- {tabs.map((tab) => (
81
- <Tab.Screen
82
- key={tab.key}
83
- name={tab.key}
84
- component={tab.screenComponent}
85
- options={{
86
- tabBarButton: (props: BottomTabBarButtonProps) => {
87
- const {
88
- onPress,
89
- onLongPress,
90
- accessibilityRole,
91
- accessibilityState,
92
- testID,
93
- style,
94
- children,
95
- } = props;
96
- return (
97
- <Pressable
98
- android_ripple={{
99
- color: appliedTheme.colors.border,
100
- borderless: true,
101
- radius: scale(30),
102
- }}
103
- onPress={onPress}
104
- onLongPress={onLongPress}
105
- accessibilityRole={accessibilityRole}
106
- accessibilityState={accessibilityState}
107
- testID={testID}
108
- style={style}
109
- >
110
- {children}
111
- </Pressable>
112
- );
113
- },
114
- onTabPress: () => onTabPress?.(tab.key),
115
- tabBarLabel: tab.name,
116
- tabBarIcon: ({
117
- color,
118
- }: {
119
- color: string;
120
- focused: boolean;
121
- size: number;
122
- }) => {
123
- const iconSize = scale(24);
124
- return renderIcon ? (
125
- <View style={styles.iconContainer}>
126
- {renderIcon({ icon: tab.icon, color, size: iconSize })}
127
- </View>
128
- ) : (
129
- <View style={styles.iconContainer}>
130
- <tab.icon width={iconSize} height={iconSize} color={color} />
131
- </View>
132
- );
133
- },
134
- }}
135
- />
136
- ))}
137
- </Tab.Navigator>
138
- );
139
- };
140
-
141
- export default TabBarOne;
142
-
143
- const styles = StyleSheet.create({
144
- iconContainer: {
145
- justifyContent: 'center',
146
- alignItems: 'center',
147
- },
148
- });
@@ -1,169 +0,0 @@
1
- /**
2
- * @author Naresh Dhamu
3
- * @lastModified Sun 09 Nov 2025 at 01:33 PM
4
- */
5
-
6
- import React from 'react';
7
- import { View, Pressable, StyleSheet, Platform } from 'react-native';
8
- import {
9
- createBottomTabNavigator,
10
- type BottomTabBarProps,
11
- } from '@react-navigation/bottom-tabs';
12
- import { scale } from 'react-native-size-matters';
13
- import { useSafeAreaInsets } from 'react-native-safe-area-context';
14
- import { BlurView } from '@react-native-community/blur';
15
-
16
- import type { ThemeOverride } from '../../theme/themes';
17
- import { useInternalTheme } from '../../theme/hook/useInternalTheme';
18
-
19
- export interface ITab {
20
- key: string;
21
- name: string;
22
- screenComponent: React.ComponentType<any>;
23
- icon: React.ComponentType<{ width: number; height: number; color: string }>;
24
- }
25
-
26
- export interface TabBarThreeProps {
27
- tabs: ITab[];
28
- theme?: ThemeOverride;
29
- onTabPress?: (key: string) => void;
30
- tabBarHeight?: number;
31
- }
32
-
33
- const Tab = createBottomTabNavigator();
34
- const TAB_BAR_HEIGHT = scale(65);
35
- const TAB_BAR_OFFSET = Platform.OS === 'android' ? scale(5) : -scale(8);
36
-
37
- const TabBarThree: React.FC<TabBarThreeProps> = ({
38
- tabs,
39
- theme,
40
- onTabPress,
41
- tabBarHeight = TAB_BAR_HEIGHT,
42
- }) => {
43
- const insets = useSafeAreaInsets();
44
- const { theme: appliedTheme } = useInternalTheme(theme);
45
-
46
- const tabWidth = tabBarHeight - scale(10);
47
- const tabPadding = scale(7);
48
- const tabGap = scale(8);
49
- const totalWidth =
50
- tabs.length * tabWidth + tabPadding * 2 + tabGap * (tabs.length - 1);
51
-
52
- const renderTabBar = (props: BottomTabBarProps) => (
53
- <View
54
- style={[styles.container, { bottom: insets.bottom + TAB_BAR_OFFSET }]}
55
- >
56
- <View
57
- style={[
58
- styles.tabBar,
59
- {
60
- height: tabBarHeight,
61
- width: totalWidth,
62
- paddingHorizontal: tabPadding,
63
- gap: tabGap,
64
- borderRadius: scale(tabBarHeight / 2),
65
- borderColor: appliedTheme.colors.border,
66
- backgroundColor:
67
- Platform.OS === 'android'
68
- ? appliedTheme.colors.backdrop
69
- : 'transparent',
70
- },
71
- ]}
72
- >
73
- {Platform.OS !== 'web' && (
74
- <BlurView
75
- style={StyleSheet.absoluteFillObject}
76
- blurType="light"
77
- blurAmount={25}
78
- reducedTransparencyFallbackColor="transparent"
79
- />
80
- )}
81
-
82
- {tabs.map((tab, index) => {
83
- const isFocused = props.state.index === index;
84
-
85
- return (
86
- <Pressable
87
- key={tab.key}
88
- onPress={() => {
89
- onTabPress?.(tab.key);
90
- props.navigation.navigate(tab.key);
91
- }}
92
- style={[
93
- styles.tab,
94
- {
95
- padding: scale(tabBarHeight / 5.1),
96
- borderWidth: Platform.select({
97
- ios: scale(1),
98
- android: scale(1.5),
99
- }),
100
- backgroundColor: isFocused
101
- ? appliedTheme.colors.button
102
- : appliedTheme.colors.background,
103
- borderColor: isFocused
104
- ? appliedTheme.colors.button
105
- : appliedTheme.colors.border,
106
- },
107
- ]}
108
- >
109
- <tab.icon
110
- width={scale(tabBarHeight / 3.1)}
111
- height={scale(tabBarHeight / 3.1)}
112
- color={
113
- isFocused
114
- ? appliedTheme.colors.buttonText
115
- : appliedTheme.colors.textPrimary
116
- }
117
- />
118
- </Pressable>
119
- );
120
- })}
121
- </View>
122
- </View>
123
- );
124
-
125
- return (
126
- <Tab.Navigator
127
- screenOptions={{
128
- headerShown: false,
129
- tabBarShowLabel: false,
130
- tabBarHideOnKeyboard: true,
131
- }}
132
- tabBar={renderTabBar}
133
- >
134
- {tabs.map((tab) => (
135
- <Tab.Screen
136
- key={tab.key}
137
- name={tab.key}
138
- component={tab.screenComponent}
139
- />
140
- ))}
141
- </Tab.Navigator>
142
- );
143
- };
144
-
145
- const styles = StyleSheet.create({
146
- container: {
147
- position: 'absolute',
148
- left: 0,
149
- right: 0,
150
- alignItems: 'center',
151
- },
152
- tabBar: {
153
- flexDirection: 'row',
154
- justifyContent: 'space-between',
155
- alignItems: 'center',
156
-
157
- borderWidth: Platform.select({ ios: scale(1), android: scale(1.5) }),
158
- overflow: 'hidden',
159
- marginHorizontal: 'auto',
160
- },
161
- tab: {
162
- justifyContent: 'center',
163
- alignItems: 'center',
164
- borderRadius: scale(100),
165
- aspectRatio: 1,
166
- },
167
- });
168
-
169
- export default TabBarThree;
@@ -1,189 +0,0 @@
1
- /**
2
- * @author Naresh Dhamu
3
- * @lastModified Thu 06 Nov 2025 at 12:30 PM
4
- */
5
-
6
- import React, { useMemo } from 'react';
7
- import { View, StyleSheet, Pressable, Platform } from 'react-native';
8
- import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
9
- import type { BottomTabBarButtonProps } from '@react-navigation/bottom-tabs';
10
- import { scale } from 'react-native-size-matters';
11
- import { useInternalTheme } from '../../theme/hook/useInternalTheme';
12
- import type { ThemeOverride } from '../../theme/themes';
13
- import { RFValue } from 'react-native-responsive-fontsize';
14
- import { useSafeAreaInsets } from 'react-native-safe-area-context';
15
-
16
- export type ITab = {
17
- key: string;
18
- name: string;
19
- screenComponent: React.ComponentType<any>;
20
- icon: React.ComponentType<{
21
- width: number;
22
- height: number;
23
- color: string;
24
- }>;
25
- };
26
-
27
- export type TabBarTwoProps = {
28
- tabs: ITab[];
29
- onTabPress?: (key: string) => void;
30
- theme?: ThemeOverride;
31
- renderIcon?: ({
32
- icon,
33
- color,
34
- size,
35
- }: {
36
- icon: React.ComponentType<{ width: number; height: number; color: string }>;
37
- color: string;
38
- size: number;
39
- }) => React.ReactNode;
40
- };
41
-
42
- const Tab = createBottomTabNavigator();
43
-
44
- const ICON_SIZE = scale(24);
45
- const RIPPLE_RADIUS = scale(35);
46
- const TAB_BAR_HEIGHT = scale(60);
47
- const TAB_BAR_BORDER_RADIUS = scale(40);
48
- const TAB_BAR_MARGIN = scale(16);
49
- const TAB_BAR_BORDER_WIDTH = scale(2);
50
- const TAB_BAR_BOTTOM_OFFSET = Platform.OS === 'android' ? scale(5) : -scale(8);
51
-
52
- const CustomTabButton = React.memo(
53
- ({
54
- props,
55
- rippleColor,
56
- }: {
57
- props: BottomTabBarButtonProps;
58
- rippleColor?: string;
59
- }) => {
60
- const {
61
- onPress,
62
- onLongPress,
63
- accessibilityRole,
64
- accessibilityState,
65
- testID,
66
- style,
67
- children,
68
- } = props;
69
-
70
- return (
71
- <Pressable
72
- android_ripple={{
73
- color: rippleColor,
74
- borderless: true,
75
- radius: RIPPLE_RADIUS,
76
- }}
77
- onPress={onPress}
78
- onLongPress={onLongPress}
79
- accessibilityRole={accessibilityRole}
80
- accessibilityState={accessibilityState}
81
- testID={testID}
82
- style={[style, styles.tabButton]}
83
- >
84
- {children}
85
- </Pressable>
86
- );
87
- }
88
- );
89
-
90
- CustomTabButton.displayName = 'CustomTabButton';
91
-
92
- const TabBarTwo = ({ tabs, theme, onTabPress, renderIcon }: TabBarTwoProps) => {
93
- const insets = useSafeAreaInsets();
94
- const { theme: appliedTheme } = useInternalTheme(theme);
95
-
96
- const screenOptions = useMemo(
97
- () => ({
98
- headerShown: false,
99
- tabBarHideOnKeyboard: true,
100
-
101
- tabBarStyle: {
102
- backgroundColor: appliedTheme.colors.background,
103
- position: 'absolute' as const,
104
- borderRadius: TAB_BAR_BORDER_RADIUS,
105
- marginHorizontal: TAB_BAR_MARGIN,
106
- paddingHorizontal: scale(5),
107
- paddingBottom: 0,
108
- borderColor: appliedTheme.colors.border,
109
- borderWidth: TAB_BAR_BORDER_WIDTH,
110
- height: TAB_BAR_HEIGHT,
111
- borderTopWidth: TAB_BAR_BORDER_WIDTH,
112
- bottom: insets.bottom + TAB_BAR_BOTTOM_OFFSET,
113
- },
114
-
115
- tabBarActiveTintColor: appliedTheme.colors.primary,
116
- tabBarInactiveTintColor: appliedTheme.colors.textPrimary,
117
-
118
- tabBarLabelStyle: {
119
- fontSize: RFValue(10),
120
- },
121
- }),
122
- [appliedTheme.colors, insets.bottom]
123
- );
124
-
125
- return (
126
- <Tab.Navigator screenOptions={screenOptions}>
127
- {tabs.map((tab) => {
128
- const handleTabPress = () => onTabPress?.(tab.key);
129
-
130
- const renderTabIcon = ({
131
- color,
132
- }: {
133
- color: string;
134
- focused: boolean;
135
- size: number;
136
- }) => {
137
- if (renderIcon) {
138
- return (
139
- <View style={styles.iconContainer}>
140
- {renderIcon({ icon: tab.icon, color, size: ICON_SIZE })}
141
- </View>
142
- );
143
- }
144
-
145
- return (
146
- <View style={styles.iconContainer}>
147
- <tab.icon width={ICON_SIZE} height={ICON_SIZE} color={color} />
148
- </View>
149
- );
150
- };
151
-
152
- const renderTabButton = (props: BottomTabBarButtonProps) => (
153
- <CustomTabButton
154
- props={props}
155
- rippleColor={appliedTheme.colors.border}
156
- />
157
- );
158
-
159
- return (
160
- <Tab.Screen
161
- key={tab.key}
162
- name={tab.key}
163
- component={tab.screenComponent}
164
- options={{
165
- tabBarButton: renderTabButton,
166
- tabBarLabel: tab.name,
167
- tabBarIcon: renderTabIcon,
168
- onTabPress: handleTabPress,
169
- }}
170
- />
171
- );
172
- })}
173
- </Tab.Navigator>
174
- );
175
- };
176
-
177
- export default TabBarTwo;
178
-
179
- const styles = StyleSheet.create({
180
- tabButton: {
181
- flex: 1,
182
- justifyContent: 'center',
183
- alignItems: 'center',
184
- },
185
- iconContainer: {
186
- justifyContent: 'center',
187
- alignItems: 'center',
188
- },
189
- });
@@ -1,20 +0,0 @@
1
- /**
2
- * @author Ashok Desai
3
- * @lastModified jun 23 Jun 2025 at 11:40 AM
4
- */
5
-
6
- import TabBarOne from './One';
7
- import TabBarTwo from './Two';
8
- import TabBarThree from './Three';
9
-
10
- const TabBar = {
11
- One: TabBarOne,
12
- Two: TabBarTwo,
13
- Three: TabBarThree,
14
- };
15
-
16
- export type { TabBarOneProps } from './One';
17
- export type { TabBarTwoProps } from './Two';
18
- export type { TabBarThreeProps } from './Three';
19
-
20
- export { TabBar };
@@ -1,85 +0,0 @@
1
- import React, { useMemo } from 'react';
2
- import {
3
- Text as RNText,
4
- type TextProps as RNTextProps,
5
- type TextStyle,
6
- } from 'react-native';
7
- import { useInternalTheme } from '../../theme/hook/useInternalTheme';
8
- import { RFValue } from 'react-native-responsive-fontsize';
9
- import type { ThemeOverride } from '../../theme/themes';
10
-
11
- export interface TextProps extends RNTextProps {
12
- children: React.ReactNode;
13
- type?: 'title' | 'subtitle' | 'body' | 'caption';
14
- size?: number;
15
- color?: string;
16
- weight?: TextStyle['fontWeight'];
17
- align?: TextStyle['textAlign'];
18
- fontFamily?: string;
19
- numberOfLines?: number;
20
- allowFontScaling?: boolean;
21
- theme?: ThemeOverride;
22
- }
23
-
24
- const Text: React.FC<TextProps> = ({
25
- children,
26
- type = 'body',
27
- size,
28
- color,
29
- weight,
30
- align = 'left',
31
- fontFamily,
32
- numberOfLines,
33
- allowFontScaling = false,
34
- style,
35
- theme: overrideTheme,
36
- ...rest
37
- }) => {
38
- const { theme } = useInternalTheme(overrideTheme);
39
-
40
- // Memoize default styles for each type
41
- const typeStyles = useMemo<
42
- Record<
43
- string,
44
- { size: number; weight: TextStyle['fontWeight']; color?: string }
45
- >
46
- >(
47
- () => ({
48
- title: { size: 18, weight: '700', color: theme.colors.textPrimary },
49
- subtitle: { size: 14, weight: '500', color: theme.colors.textSecondary },
50
- body: { size: 12, weight: '400', color: theme.colors.textPrimary },
51
- caption: { size: 10, weight: '400', color: theme.colors.textSecondary },
52
- }),
53
- [theme.colors.textPrimary, theme.colors.textSecondary]
54
- );
55
-
56
- const typeStyle = typeStyles[type] || typeStyles.body;
57
-
58
- // Memoize computed style
59
- const computedStyle = useMemo(
60
- () => [
61
- {
62
- color: color ?? typeStyle?.color,
63
- fontSize: size ? RFValue(size) : RFValue(Number(typeStyle?.size)),
64
- fontWeight: weight ?? typeStyle?.weight,
65
- textAlign: align,
66
- fontFamily,
67
- },
68
- style,
69
- ],
70
- [color, typeStyle, size, weight, align, fontFamily, style]
71
- );
72
-
73
- return (
74
- <RNText
75
- {...rest}
76
- allowFontScaling={allowFontScaling}
77
- numberOfLines={numberOfLines}
78
- style={computedStyle}
79
- >
80
- {children}
81
- </RNText>
82
- );
83
- };
84
-
85
- export default React.memo(Text);
@@ -1,5 +0,0 @@
1
- /**
2
- * @author Naresh Dhamu
3
- * @lastModified Tue 24 Jun 2025 at 05:02 PM
4
- */
5
- export { default as Text } from './Text';