@propel-nsl/propel-react-native-sdk 1.0.0

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 (221) hide show
  1. package/assets/fonts/Lexend-Black.ttf +0 -0
  2. package/assets/fonts/Lexend-Bold.ttf +0 -0
  3. package/assets/fonts/Lexend-ExtraBold.ttf +0 -0
  4. package/assets/fonts/Lexend-ExtraLight.ttf +0 -0
  5. package/assets/fonts/Lexend-Light.ttf +0 -0
  6. package/assets/fonts/Lexend-Medium.ttf +0 -0
  7. package/assets/fonts/Lexend-Regular.ttf +0 -0
  8. package/assets/fonts/Lexend-SemiBold.ttf +0 -0
  9. package/assets/fonts/Lexend-Thin.ttf +0 -0
  10. package/assets/images/HomeGoods.png +0 -0
  11. package/assets/images/accessories.png +0 -0
  12. package/assets/images/amazon.png +0 -0
  13. package/assets/images/apnaClubLogo.png +0 -0
  14. package/assets/images/apparel.png +0 -0
  15. package/assets/images/backgroundblue.png +0 -0
  16. package/assets/images/bannerCard.png +0 -0
  17. package/assets/images/bottomWave.png +0 -0
  18. package/assets/images/coin_1_1.png +0 -0
  19. package/assets/images/flipkart.png +0 -0
  20. package/assets/images/frame_1171278967.png +0 -0
  21. package/assets/images/gift.png +0 -0
  22. package/assets/images/herobanner.png +0 -0
  23. package/assets/images/hinduPencilsLogo.png +0 -0
  24. package/assets/images/icons/addwhiteicon.png +0 -0
  25. package/assets/images/icons/arrow-back.png +0 -0
  26. package/assets/images/icons/arrowgreen.png +0 -0
  27. package/assets/images/icons/arrowred.png +0 -0
  28. package/assets/images/icons/arrowright.png +0 -0
  29. package/assets/images/icons/arrowup.png +0 -0
  30. package/assets/images/icons/blackarrowdown.png +0 -0
  31. package/assets/images/icons/blackarrowup.png +0 -0
  32. package/assets/images/icons/blackcross.png +0 -0
  33. package/assets/images/icons/call.png +0 -0
  34. package/assets/images/icons/camera.png +0 -0
  35. package/assets/images/icons/cart.png +0 -0
  36. package/assets/images/icons/chat.png +0 -0
  37. package/assets/images/icons/circleblack.png +0 -0
  38. package/assets/images/icons/copy.png +0 -0
  39. package/assets/images/icons/cross.png +0 -0
  40. package/assets/images/icons/delete.png +0 -0
  41. package/assets/images/icons/delivery.png +0 -0
  42. package/assets/images/icons/eVoucher.png +0 -0
  43. package/assets/images/icons/editIcon.png +0 -0
  44. package/assets/images/icons/email.png +0 -0
  45. package/assets/images/icons/eye.png +0 -0
  46. package/assets/images/icons/faq.png +0 -0
  47. package/assets/images/icons/filtericon.png +0 -0
  48. package/assets/images/icons/greyDownArrow.png +0 -0
  49. package/assets/images/icons/help.png +0 -0
  50. package/assets/images/icons/home.png +0 -0
  51. package/assets/images/icons/homeinactive.png +0 -0
  52. package/assets/images/icons/i_blackicon.png +0 -0
  53. package/assets/images/icons/i_icon.png +0 -0
  54. package/assets/images/icons/location.png +0 -0
  55. package/assets/images/icons/logout.png +0 -0
  56. package/assets/images/icons/minus.png +0 -0
  57. package/assets/images/icons/myOrders.png +0 -0
  58. package/assets/images/icons/orders.png +0 -0
  59. package/assets/images/icons/pencillogo.png +0 -0
  60. package/assets/images/icons/pending.png +0 -0
  61. package/assets/images/icons/plus.png +0 -0
  62. package/assets/images/icons/redCross.png +0 -0
  63. package/assets/images/icons/redCrossicon.png +0 -0
  64. package/assets/images/icons/redWarningicon.png +0 -0
  65. package/assets/images/icons/redeem.png +0 -0
  66. package/assets/images/icons/redeemactive.png +0 -0
  67. package/assets/images/icons/redemptionHistory.png +0 -0
  68. package/assets/images/icons/redhelpicon.png +0 -0
  69. package/assets/images/icons/search.png +0 -0
  70. package/assets/images/icons/stopwatch.png +0 -0
  71. package/assets/images/icons/successTick.gif +0 -0
  72. package/assets/images/icons/tick.png +0 -0
  73. package/assets/images/icons/tnc.png +0 -0
  74. package/assets/images/icons/user.png +0 -0
  75. package/assets/images/icons/userredicon.png +0 -0
  76. package/assets/images/icons/wavecorner.png +0 -0
  77. package/assets/images/logo.png +0 -0
  78. package/assets/images/myntra_copy.png +0 -0
  79. package/assets/images/nike.png +0 -0
  80. package/assets/images/oq3p0u0_1.png +0 -0
  81. package/assets/images/profileicon.png +0 -0
  82. package/assets/images/topWave.png +0 -0
  83. package/assets/images/zagglePropelLogo.png +0 -0
  84. package/index.ts +23 -0
  85. package/lib/index.ts +25 -0
  86. package/package.json +70 -0
  87. package/src/PropelSDKScreen.tsx +98 -0
  88. package/src/SDKApp.tsx +540 -0
  89. package/src/bridge/SDKBridge.ts +104 -0
  90. package/src/bridge/index.ts +3 -0
  91. package/src/components/SDKBackHandler.tsx +187 -0
  92. package/src/components/SDKProfile.tsx +87 -0
  93. package/src/components/SDKProfileWrapper.tsx +51 -0
  94. package/src/constants.ts +10 -0
  95. package/src/contexts/SDKContext.tsx +72 -0
  96. package/src/hooks/useSDKBackNavigation.ts +61 -0
  97. package/src/navigation/SDKMainTabNavigator.tsx +315 -0
  98. package/src/navigation/SDKNavigator.tsx +41 -0
  99. package/src/redux/store.ts +32 -0
  100. package/src/screens/Dashboard/index.tsx +531 -0
  101. package/src/screens/Dashboard/styles.ts +512 -0
  102. package/src/screens/DeliveryAddress/index.tsx +221 -0
  103. package/src/screens/DeliveryAddress/styles.ts +122 -0
  104. package/src/screens/E-Vouchers/index.tsx +157 -0
  105. package/src/screens/E-Vouchers/styles.ts +106 -0
  106. package/src/screens/Faq/Faq.constants.ts +164 -0
  107. package/src/screens/Faq/index.tsx +114 -0
  108. package/src/screens/Faq/styles.ts +131 -0
  109. package/src/screens/Help/index.tsx +128 -0
  110. package/src/screens/Help/styles.ts +121 -0
  111. package/src/screens/Login/index.tsx +215 -0
  112. package/src/screens/Login/styles.ts +134 -0
  113. package/src/screens/MyCart/MyCart.constants.ts +13 -0
  114. package/src/screens/MyCart/index.tsx +318 -0
  115. package/src/screens/MyCart/styles.ts +249 -0
  116. package/src/screens/MyOrders/index.tsx +87 -0
  117. package/src/screens/MyOrders/styles.ts +281 -0
  118. package/src/screens/MyProfile/index.tsx +72 -0
  119. package/src/screens/MyProfile/styles.ts +47 -0
  120. package/src/screens/NewDeliveryAddress/index.tsx +360 -0
  121. package/src/screens/NewDeliveryAddress/styles.ts +68 -0
  122. package/src/screens/Onboarding/index.tsx +57 -0
  123. package/src/screens/Onboarding/styles.ts +60 -0
  124. package/src/screens/OrdersDetails/index.tsx +333 -0
  125. package/src/screens/OrdersDetails/styles.ts +262 -0
  126. package/src/screens/OtpVerification/index.tsx +283 -0
  127. package/src/screens/OtpVerification/styles.ts +197 -0
  128. package/src/screens/PaymentMethod/index.tsx +389 -0
  129. package/src/screens/PaymentMethod/styles.ts +246 -0
  130. package/src/screens/PointsLog/index.tsx +286 -0
  131. package/src/screens/PointsLog/styles.ts +156 -0
  132. package/src/screens/ProductDetails/index.tsx +682 -0
  133. package/src/screens/ProductDetails/styles.ts +372 -0
  134. package/src/screens/Profile/index.tsx +368 -0
  135. package/src/screens/Profile/styles.ts +158 -0
  136. package/src/screens/RedemptionHistory/RedemptionHistory.constants.ts +4 -0
  137. package/src/screens/RedemptionHistory/index.tsx +304 -0
  138. package/src/screens/RedemptionHistory/styles.ts +84 -0
  139. package/src/screens/Reedem/index.tsx +345 -0
  140. package/src/screens/Reedem/styles.ts +269 -0
  141. package/src/screens/TnC/TnC.constants.ts +169 -0
  142. package/src/screens/TnC/index.tsx +83 -0
  143. package/src/screens/TnC/styles.ts +88 -0
  144. package/src/screens/TransactionSuccessful/index.tsx +77 -0
  145. package/src/screens/TransactionSuccessful/styles.ts +77 -0
  146. package/src/screens/Verification/index.tsx +58 -0
  147. package/src/screens/Verification/styles.ts +74 -0
  148. package/src/screens/index.ts +23 -0
  149. package/src/types/index.ts +46 -0
  150. package/src-app/components/AmountBreakDownModal/index.tsx +86 -0
  151. package/src-app/components/AmountBreakDownModal/styles.ts +110 -0
  152. package/src-app/components/BottomNavIcons.tsx +125 -0
  153. package/src-app/components/Button.tsx +120 -0
  154. package/src-app/components/Card.tsx +47 -0
  155. package/src-app/components/ConfirmPopup/ConfirmPopup.constants.ts +25 -0
  156. package/src-app/components/ConfirmPopup/index.tsx +48 -0
  157. package/src-app/components/ConfirmPopup/styles.ts +167 -0
  158. package/src-app/components/CustomButton/index.tsx +67 -0
  159. package/src-app/components/CustomButton/styles.ts +44 -0
  160. package/src-app/components/CustomCard/index.tsx +221 -0
  161. package/src-app/components/CustomCard/styles.ts +184 -0
  162. package/src-app/components/CustomError/index.tsx +54 -0
  163. package/src-app/components/CustomError/styles.ts +41 -0
  164. package/src-app/components/CustomImage/index.tsx +37 -0
  165. package/src-app/components/CustomImage/styles.ts +5 -0
  166. package/src-app/components/CustomLoader/index.tsx +45 -0
  167. package/src-app/components/CustomLoader/styles.ts +35 -0
  168. package/src-app/components/CustomMessagePopUp/index.tsx +51 -0
  169. package/src-app/components/CustomMessagePopUp/styles.ts +74 -0
  170. package/src-app/components/CustomProductCard/index.tsx +13 -0
  171. package/src-app/components/CustomProductCard/styles.ts +5 -0
  172. package/src-app/components/FilterModal.tsx +372 -0
  173. package/src-app/components/Footer/index.tsx +23 -0
  174. package/src-app/components/Footer/styles.ts +37 -0
  175. package/src-app/components/Icon.tsx +80 -0
  176. package/src-app/components/Logout/index.tsx +82 -0
  177. package/src-app/components/Logout/styles.ts +116 -0
  178. package/src-app/components/MobileHeader.tsx +141 -0
  179. package/src-app/components/NoDataFound/index.tsx +18 -0
  180. package/src-app/components/NoDataFound/styles.ts +26 -0
  181. package/src-app/components/OTPModal.tsx +747 -0
  182. package/src-app/components/ProfileField.tsx +47 -0
  183. package/src-app/components/QuantityModal/index.tsx +113 -0
  184. package/src-app/components/QuantityModal/styles.ts +84 -0
  185. package/src-app/components/TabBarIcons.tsx +110 -0
  186. package/src-app/components/TextInput.tsx +79 -0
  187. package/src-app/components/ToastConfig.tsx +60 -0
  188. package/src-app/components/index.ts +18 -0
  189. package/src-app/config/env.ts +22 -0
  190. package/src-app/constants/Fonts.ts +12 -0
  191. package/src-app/constants/Formatter.ts +39 -0
  192. package/src-app/constants/HtmlSanitization.ts +46 -0
  193. package/src-app/constants/Images.ts +81 -0
  194. package/src-app/constants/Labels.ts +8 -0
  195. package/src-app/constants/Messages.ts +108 -0
  196. package/src-app/constants/Routes.ts +17 -0
  197. package/src-app/constants/Scaling.ts +5 -0
  198. package/src-app/constants/Text.ts +8 -0
  199. package/src-app/constants/offSets.ts +18 -0
  200. package/src-app/hooks/useAppDispatch.ts +4 -0
  201. package/src-app/hooks/useAppSelector.ts +4 -0
  202. package/src-app/hooks/useBackHandler.ts +47 -0
  203. package/src-app/hooks/useScreenBackHandler.ts +91 -0
  204. package/src-app/navigation/AppNavigator.tsx +34 -0
  205. package/src-app/navigation/MainTabNavigator.tsx +294 -0
  206. package/src-app/redux/authSaga.ts +605 -0
  207. package/src-app/redux/authSlice.ts +754 -0
  208. package/src-app/redux/rootSaga.ts +6 -0
  209. package/src-app/redux/store.ts +25 -0
  210. package/src-app/services/api.ts +14 -0
  211. package/src-app/services/endpoints.ts +33 -0
  212. package/src-app/services/index.ts +574 -0
  213. package/src-app/services/sdkCredentials.ts +44 -0
  214. package/src-app/styles/colors.ts +85 -0
  215. package/src-app/styles/shared.ts +112 -0
  216. package/src-app/types/authTypes.ts +155 -0
  217. package/src-app/types/navigation.ts +99 -0
  218. package/src-app/utils/Validation.ts +48 -0
  219. package/src-app/utils/filterPins.ts +29 -0
  220. package/src-app/utils/navigationUtils.ts +43 -0
  221. package/src-app/utils/useHardwareBack.ts +21 -0
@@ -0,0 +1,286 @@
1
+ import React, { useEffect, useState } from "react";
2
+ import {
3
+ View,
4
+ Text,
5
+ ScrollView,
6
+ TouchableOpacity,
7
+ Image,
8
+ ActivityIndicator,
9
+ } from "react-native";
10
+ import { StackNavigationProp } from "@react-navigation/stack";
11
+ import { AppStackParamList } from "../../../src-app/types/navigation";
12
+ import { colors } from "../../../src-app/styles/colors";
13
+ import MobileHeader from "../../../src-app/components/MobileHeader";
14
+ import Icon from "../../../src-app/components/Icon";
15
+ import Button from "../../../src-app/components/Button";
16
+ import styles from "./styles";
17
+ import { useAppDispatch } from "../../../src-app/hooks/useAppDispatch";
18
+ import {
19
+ dashboardInfoRequest,
20
+ pointsLogRequest,
21
+ redemptionHistoryRequest,
22
+ } from "../../../src-app/redux/authSlice";
23
+ import { useAppSelector } from "../../../src-app/hooks/useAppSelector";
24
+ import { RootState } from "../../../src-app/redux/store";
25
+ import { useIsFocused } from "@react-navigation/native";
26
+ import Images from "../../../src-app/constants/Images";
27
+ import { CustomImage, NoDataFound } from "../../../src-app/components";
28
+
29
+ type PointsLogNavigationProp = StackNavigationProp<
30
+ AppStackParamList,
31
+ "PointsLog"
32
+ >;
33
+
34
+ interface Props {
35
+ navigation: PointsLogNavigationProp;
36
+ }
37
+
38
+ const PointsLog: React.FC<Props> = ({ navigation }) => {
39
+ const focus = useIsFocused();
40
+ const [activeTab, setActiveTab] = useState<"log" | "history">("log");
41
+ const dispatch = useAppDispatch();
42
+ const {
43
+ pointsLogLoading,
44
+ pointsLogData,
45
+ redemptionHistoryData,
46
+ redemptionHistoryLoading,
47
+ dashboardInfoData,
48
+ } = useAppSelector((state: RootState) => state.auth);
49
+
50
+ useEffect(() => {
51
+ dispatch(dashboardInfoRequest());
52
+ }, []);
53
+
54
+ useEffect(() => {
55
+ if (focus) {
56
+ if (activeTab === "log") {
57
+ dispatch(pointsLogRequest({}));
58
+ } else if (dashboardInfoData?.id) {
59
+ // Only call redemptionHistoryRequest when dashboardInfoData.id is available
60
+ console.log('Calling redemptionHistoryRequest with id:', dashboardInfoData.id);
61
+ dispatch(
62
+ redemptionHistoryRequest({
63
+ id: dashboardInfoData.id,
64
+ })
65
+ );
66
+ }
67
+ }
68
+ }, [focus, activeTab, dashboardInfoData]);
69
+
70
+ const handleTabChange = (tab: "log" | "history") => {
71
+ setActiveTab(tab);
72
+
73
+ if (tab === "log") {
74
+ dispatch(pointsLogRequest({}));
75
+ } else {
76
+ dispatch(
77
+ redemptionHistoryRequest({
78
+ id: dashboardInfoData.id,
79
+ })
80
+ );
81
+ }
82
+ };
83
+
84
+ const renderPointsCard = () => (
85
+ <View style={styles.pointsCard}>
86
+ <View style={styles.pointsInfo}>
87
+ <Image
88
+ source={{
89
+ uri: "https://api.builder.io/api/v1/image/assets/TEMP/e4b22688789024f193d03ad18d3ba19cb8dfba9c?width=96",
90
+ }}
91
+ style={styles.coinIcon}
92
+ />
93
+ <Text style={styles.pointsValue}>{(dashboardInfoData?.current_balance)}</Text>
94
+ </View>
95
+ <Button
96
+ title="Redeem Now"
97
+ variant="primary"
98
+ size="small"
99
+ onPress={() => navigation.navigate("Redeem")}
100
+ style={styles.redeemButton}
101
+ />
102
+ </View>
103
+ );
104
+
105
+ const renderTabs = () => (
106
+ <View style={styles.tabContainer}>
107
+ <TouchableOpacity
108
+ style={[styles.tab, activeTab === "log" && styles.activeTab]}
109
+ onPress={() => handleTabChange("log")}
110
+ >
111
+ <Text
112
+ style={[styles.tabText, activeTab === "log" && styles.activeTabText]}
113
+ >
114
+ Points Log
115
+ </Text>
116
+ {activeTab === "log" && <View style={styles.tabIndicator} />}
117
+ </TouchableOpacity>
118
+ <TouchableOpacity
119
+ style={[styles.tab, activeTab === "history" && styles.activeTab]}
120
+ onPress={() => handleTabChange("history")}
121
+ >
122
+ <Text
123
+ style={[
124
+ styles.tabText,
125
+ activeTab === "history" && styles.activeTabText,
126
+ ]}
127
+ >
128
+ Redemption History
129
+ </Text>
130
+ {activeTab === "history" && <View style={styles.tabIndicator} />}
131
+ </TouchableOpacity>
132
+ </View>
133
+ );
134
+
135
+ const formatDate = (dateTimeStr: string) => {
136
+ if (!dateTimeStr) return "";
137
+
138
+ const [datePart] = dateTimeStr.split(" - ");
139
+ const [day, month, year] = datePart.split("/");
140
+
141
+ const monthNames = [
142
+ "January",
143
+ "February",
144
+ "March",
145
+ "April",
146
+ "May",
147
+ "June",
148
+ "July",
149
+ "August",
150
+ "September",
151
+ "October",
152
+ "November",
153
+ "December",
154
+ ];
155
+
156
+ const formatted = `${day} ${monthNames[parseInt(month) - 1]}, ${year}`;
157
+ return formatted;
158
+ };
159
+
160
+
161
+ const renderPointsLogContent = () => {
162
+ if (pointsLogLoading) {
163
+ return <ActivityIndicator size="small" color={colors.primary} />;
164
+ }
165
+ return (
166
+ <View style={styles.listContent}>
167
+ {Array.isArray(pointsLogData) && pointsLogData.length > 0 ? (
168
+ pointsLogData.map((item, index) => (
169
+ <View key={item.id}>
170
+ <View style={styles.logItem}>
171
+ <View style={styles.itemDetails}>
172
+ <Text style={styles.itemTitle}>{item?.transaction_type}</Text>
173
+ <Text style={styles.itemDescription}>
174
+ {item?.transaction_type === "Credit"
175
+ ? "Credited On : "
176
+ : "Debited On : "}
177
+ {formatDate(item?.date_and_time)}
178
+ </Text>
179
+ </View>
180
+ <View style={styles.itemPoints}>
181
+ <CustomImage
182
+ source={
183
+ item?.transaction_type === "Credit"
184
+ ? Images.arrowgreen
185
+ : Images.arrowred
186
+ }
187
+ imgStyle={styles.arrowIcon}
188
+ />
189
+ <Text style={styles.pointsValue}>{item?.amount}</Text>
190
+ </View>
191
+ </View>
192
+ {index < pointsLogData.length - 1 && (
193
+ <View style={styles.separator} />
194
+ )}
195
+ </View>
196
+ ))
197
+ ) : (
198
+ <NoDataFound containerstyle={styles.noDataFound} />
199
+ )}
200
+ </View>
201
+ );
202
+ };
203
+
204
+ const formatRedemptionDate = (isoDate: string) => {
205
+ const date = new Date(isoDate);
206
+ const day = date.toLocaleString("en-GB", { day: "2-digit" });
207
+ const month = date.toLocaleString("en-GB", { month: "long" });
208
+ const year = date.getFullYear();
209
+ return `${day} ${month}, ${year}`;
210
+ };
211
+
212
+ const renderRedemptionHistoryContent = () => {
213
+ if (redemptionHistoryLoading) {
214
+ return <ActivityIndicator size="small" color={colors.primary} />;
215
+ }
216
+
217
+ return (
218
+ <View style={styles.listContent}>
219
+ {Array.isArray(redemptionHistoryData) &&
220
+ redemptionHistoryData.length > 0 ? (
221
+ redemptionHistoryData.map((item, index) => (
222
+ <View key={index}>
223
+ <View style={styles.redemptionItem}>
224
+ <View style={styles.itemDetails}>
225
+ <Text style={styles.itemTitle}>Points Redeemed</Text>
226
+ <Text style={styles.itemOrderNo}>
227
+ Order No : {item?.order_no}
228
+ </Text>
229
+ <Text style={styles.itemDate}>
230
+ {formatRedemptionDate(item?.date)}
231
+ </Text>
232
+ </View>
233
+ <View style={styles.itemPoints}>
234
+ <CustomImage
235
+ source={Images.arrowred}
236
+ imgStyle={styles.arrowIcon}
237
+ />
238
+ <Text style={styles.pointsValue}>
239
+ {item?.amount}
240
+ </Text>
241
+ </View>
242
+ </View>
243
+ {index < redemptionHistoryData.length - 1 && (
244
+ <View style={styles.separator} />
245
+ )}
246
+ </View>
247
+ ))
248
+ ) : (
249
+ <NoDataFound containerstyle={styles.noDataFound} />
250
+ )}
251
+ </View>
252
+ );
253
+ };
254
+
255
+ return (
256
+ <View style={styles.container}>
257
+ <MobileHeader
258
+ title="Apna Points"
259
+ showBack
260
+ onBack={() => {
261
+ if (navigation.canGoBack()) {
262
+ navigation.goBack();
263
+ } else {
264
+ navigation.navigate('DashboardTab' as never, { screen: 'Dashboard' });
265
+ }
266
+ }}
267
+ disableSafeAreaPadding={true}
268
+ />
269
+
270
+ <ScrollView
271
+ style={styles.scrollView}
272
+ showsVerticalScrollIndicator={false}
273
+ >
274
+ <View style={styles.content}>
275
+ {renderPointsCard()}
276
+ {renderTabs()}
277
+ {activeTab === "log"
278
+ ? renderPointsLogContent()
279
+ : renderRedemptionHistoryContent()}
280
+ </View>
281
+ </ScrollView>
282
+ </View>
283
+ );
284
+ };
285
+
286
+ export default PointsLog;
@@ -0,0 +1,156 @@
1
+ import { StyleSheet } from 'react-native';
2
+ import { borderRadius, spacing, typography } from '../../../src-app/styles/shared';
3
+ import { VSCALE } from '../../../src-app/constants/Scaling';
4
+ import { colors } from '../../../src-app/styles/colors';
5
+
6
+ const styles = StyleSheet.create({
7
+ container: {
8
+ flex: 1,
9
+ backgroundColor: colors.background,
10
+ },
11
+ scrollView: {
12
+ flex: 1,
13
+ },
14
+ content: {
15
+ paddingHorizontal: spacing.lg,
16
+ paddingTop: spacing.lg,
17
+ paddingBottom: 120, // Space for tab bar
18
+ },
19
+ pointsCard: {
20
+ flexDirection: 'row',
21
+ alignItems: 'center',
22
+ justifyContent: 'space-between',
23
+ backgroundColor: colors.background,
24
+ borderRadius: borderRadius.md,
25
+ borderWidth: 1,
26
+ borderColor: colors.primary,
27
+ padding: spacing.md,
28
+ marginBottom: spacing.xl,
29
+ },
30
+ pointsInfo: {
31
+ flexDirection: 'row',
32
+ alignItems: 'center',
33
+ gap: spacing.sm,
34
+ },
35
+ coinIcon: {
36
+ width: 48,
37
+ height: 48,
38
+ },
39
+ pointsValue: {
40
+ ...typography.h3,
41
+ color: colors.onSurface,
42
+ fontWeight: '700',
43
+ },
44
+ redeemButton: {
45
+ paddingHorizontal: spacing.md,
46
+ paddingVertical: spacing.sm,
47
+ },
48
+ tabContainer: {
49
+ flexDirection: 'row',
50
+ justifyContent: 'center',
51
+ alignItems: 'center',
52
+ borderBottomWidth: 1,
53
+ borderBottomColor: colors.outline,
54
+ marginBottom: spacing.md,
55
+ gap: spacing.lg,
56
+ },
57
+ tab: {
58
+ flex: 1,
59
+ alignItems: 'center',
60
+ paddingBottom: spacing.md,
61
+ position: 'relative',
62
+ },
63
+ activeTab: {
64
+ // Additional styling for active tab if needed
65
+ },
66
+ tabText: {
67
+ ...typography.caption,
68
+ color: colors.onSurfaceVariant,
69
+ textAlign: 'center',
70
+ },
71
+ activeTabText: {
72
+ ...typography.caption,
73
+ color: colors.primary,
74
+ fontWeight: '600',
75
+ },
76
+ tabIndicator: {
77
+ position: 'absolute',
78
+ bottom: -1,
79
+ left: 0,
80
+ right: 0,
81
+ height: 3,
82
+ backgroundColor: colors.primary,
83
+ borderRadius: borderRadius.lg,
84
+ },
85
+ listContent: {
86
+ gap: spacing.sm,
87
+ },
88
+ logItem: {
89
+ flexDirection: 'row',
90
+ justifyContent: 'space-between',
91
+ alignItems: 'flex-start',
92
+ paddingVertical: spacing.md,
93
+ },
94
+ redemptionItem: {
95
+ flexDirection: 'row',
96
+ justifyContent: 'space-between',
97
+ alignItems: 'flex-start',
98
+ paddingVertical: spacing.sm,
99
+ },
100
+ itemDetails: {
101
+ flex: 1,
102
+ gap: spacing.sm,
103
+ },
104
+ itemTitle: {
105
+ ...typography.caption,
106
+ color: colors.onSurface,
107
+ fontWeight: '600',
108
+ textTransform: 'capitalize',
109
+ },
110
+ itemDescription: {
111
+ ...typography.caption,
112
+ color: colors.onSurfaceVariant,
113
+ fontSize: 10,
114
+ textTransform: 'capitalize',
115
+ },
116
+ itemOrderNo: {
117
+ ...typography.caption,
118
+ color: colors.onSurfaceVariant,
119
+ fontSize: 12,
120
+ textTransform: 'capitalize',
121
+ },
122
+ itemDate: {
123
+ ...typography.caption,
124
+ color: colors.onSurfaceVariant,
125
+ fontSize: 10,
126
+ textTransform: 'capitalize',
127
+ },
128
+ itemPoints: {
129
+ flexDirection: 'row',
130
+ alignItems: 'center',
131
+ gap: spacing.sm,
132
+ },
133
+ arrowContainer: {
134
+ width: 16,
135
+ height: 16,
136
+ justifyContent: 'center',
137
+ alignItems: 'center',
138
+ },
139
+ arrowIcon: {
140
+ height: 8,
141
+ width: 10,
142
+ resizeMode: 'contain',
143
+ },
144
+ separator: {
145
+ width: '100%',
146
+ height: 1.2,
147
+ backgroundColor: 'rgba(209, 213, 219, 0.45)',
148
+ marginTop: spacing.sm,
149
+ },
150
+ noDataFound: {
151
+ marginTop: VSCALE(80),
152
+ // borderWidth:1
153
+ },
154
+ });
155
+
156
+ export default styles;