@finspringinnovations/fdsdk 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +184 -0
- package/lib/api/applicationApi.d.ts +1 -0
- package/lib/api/applicationApi.js +11 -0
- package/lib/api/bankApi.d.ts +352 -0
- package/lib/api/bankApi.js +54 -0
- package/lib/api/baseApi.d.ts +8 -0
- package/lib/api/baseApi.js +456 -0
- package/lib/api/customerApi.d.ts +855 -0
- package/lib/api/customerApi.js +213 -0
- package/lib/api/fdApi.d.ts +979 -0
- package/lib/api/fdApi.js +112 -0
- package/lib/api/fdCalculatorApi.d.ts +179 -0
- package/lib/api/fdCalculatorApi.js +36 -0
- package/lib/api/index.d.ts +14 -0
- package/lib/api/index.js +45 -0
- package/lib/api/interestRateApi.d.ts +585 -0
- package/lib/api/interestRateApi.js +101 -0
- package/lib/api/kycApi.d.ts +486 -0
- package/lib/api/kycApi.js +71 -0
- package/lib/api/masterDataApi.d.ts +158 -0
- package/lib/api/masterDataApi.js +32 -0
- package/lib/api/nomineeApi.d.ts +325 -0
- package/lib/api/nomineeApi.js +46 -0
- package/lib/api/onboardingApi.d.ts +192 -0
- package/lib/api/onboardingApi.js +41 -0
- package/lib/api/panApi.d.ts +0 -0
- package/lib/api/panApi.js +23 -0
- package/lib/api/paymentApi.d.ts +325 -0
- package/lib/api/paymentApi.js +46 -0
- package/lib/api/workflowApi.d.ts +654 -0
- package/lib/api/workflowApi.js +90 -0
- package/lib/assets/images/images.d.ts +4 -0
- package/lib/assets/images/images.js +10 -0
- package/lib/components/AadhaarInput.d.ts +13 -0
- package/lib/components/AadhaarInput.js +47 -0
- package/lib/components/ActionButton.d.ts +12 -0
- package/lib/components/ActionButton.js +87 -0
- package/lib/components/ActiveFDCard.d.ts +16 -0
- package/lib/components/ActiveFDCard.js +95 -0
- package/lib/components/AmountInput.d.ts +20 -0
- package/lib/components/AmountInput.js +144 -0
- package/lib/components/CheckboxOption.d.ts +11 -0
- package/lib/components/CheckboxOption.js +41 -0
- package/lib/components/CompanyHeader.d.ts +7 -0
- package/lib/components/CompanyHeader.js +57 -0
- package/lib/components/DropdownSelector.d.ts +9 -0
- package/lib/components/DropdownSelector.js +49 -0
- package/lib/components/EmptyState.d.ts +17 -0
- package/lib/components/EmptyState.js +44 -0
- package/lib/components/ErrorDisplay.d.ts +17 -0
- package/lib/components/ErrorDisplay.js +69 -0
- package/lib/components/FAQItem.d.ts +9 -0
- package/lib/components/FAQItem.js +52 -0
- package/lib/components/FDCard.d.ts +21 -0
- package/lib/components/FDCard.js +96 -0
- package/lib/components/FormDropdown.d.ts +18 -0
- package/lib/components/FormDropdown.js +155 -0
- package/lib/components/FormSection.d.ts +14 -0
- package/lib/components/FormSection.js +38 -0
- package/lib/components/Header.d.ts +14 -0
- package/lib/components/Header.js +52 -0
- package/lib/components/IFSCSearchResultCard.d.ts +13 -0
- package/lib/components/IFSCSearchResultCard.js +70 -0
- package/lib/components/InfoBox.d.ts +8 -0
- package/lib/components/InfoBox.js +39 -0
- package/lib/components/InterestRateCard.d.ts +8 -0
- package/lib/components/InterestRateCard.js +46 -0
- package/lib/components/LoadingIndicator.d.ts +12 -0
- package/lib/components/LoadingIndicator.js +30 -0
- package/lib/components/OTPInput.d.ts +17 -0
- package/lib/components/OTPInput.js +144 -0
- package/lib/components/PaymentDetailsCard.d.ts +20 -0
- package/lib/components/PaymentDetailsCard.js +68 -0
- package/lib/components/PendingFDBottomSheet.d.ts +18 -0
- package/lib/components/PendingFDBottomSheet.js +122 -0
- package/lib/components/SafeAreaWrapper.d.ts +13 -0
- package/lib/components/SafeAreaWrapper.js +41 -0
- package/lib/components/ScreenHeader.d.ts +11 -0
- package/lib/components/ScreenHeader.js +46 -0
- package/lib/components/StatusDisplay.d.ts +15 -0
- package/lib/components/StatusDisplay.js +88 -0
- package/lib/components/TextFieldWithLabel.d.ts +46 -0
- package/lib/components/TextFieldWithLabel.js +326 -0
- package/lib/components/TrustBox.d.ts +8 -0
- package/lib/components/TrustBox.js +45 -0
- package/lib/components/ValidationErrorAlert.d.ts +23 -0
- package/lib/components/ValidationErrorAlert.js +39 -0
- package/lib/components/ValidationMessage.d.ts +9 -0
- package/lib/components/ValidationMessage.js +98 -0
- package/lib/components/index.d.ts +35 -0
- package/lib/components/index.js +64 -0
- package/lib/config/apiConfig.d.ts +34 -0
- package/lib/config/apiConfig.js +158 -0
- package/lib/config/appDataConfig.d.ts +114 -0
- package/lib/config/appDataConfig.js +264 -0
- package/lib/config/encryptionConfig.d.ts +21 -0
- package/lib/config/encryptionConfig.js +61 -0
- package/lib/config/workflowConstants.d.ts +37 -0
- package/lib/config/workflowConstants.js +38 -0
- package/lib/constants/strings/bank.d.ts +72 -0
- package/lib/constants/strings/bank.js +86 -0
- package/lib/constants/strings/base64Images.d.ts +25 -0
- package/lib/constants/strings/base64Images.js +28 -0
- package/lib/constants/strings/common.d.ts +53 -0
- package/lib/constants/strings/common.js +62 -0
- package/lib/constants/strings/employee.d.ts +61 -0
- package/lib/constants/strings/employee.js +77 -0
- package/lib/constants/strings/faq.d.ts +14 -0
- package/lib/constants/strings/faq.js +20 -0
- package/lib/constants/strings/fd.d.ts +122 -0
- package/lib/constants/strings/fd.js +151 -0
- package/lib/constants/strings/home.d.ts +49 -0
- package/lib/constants/strings/home.js +62 -0
- package/lib/constants/strings/index.d.ts +16 -0
- package/lib/constants/strings/index.js +44 -0
- package/lib/constants/strings/kyc.d.ts +80 -0
- package/lib/constants/strings/kyc.js +94 -0
- package/lib/constants/strings/nominee.d.ts +64 -0
- package/lib/constants/strings/nominee.js +81 -0
- package/lib/hooks/useAuth.d.ts +25 -0
- package/lib/hooks/useAuth.js +39 -0
- package/lib/hooks/useFDData.d.ts +11 -0
- package/lib/hooks/useFDData.js +40 -0
- package/lib/index.d.ts +69 -0
- package/lib/index.js +182 -0
- package/lib/navigation/RootNavigator.d.ts +8 -0
- package/lib/navigation/RootNavigator.js +205 -0
- package/lib/navigation/SimpleNavigator.d.ts +11 -0
- package/lib/navigation/SimpleNavigator.js +107 -0
- package/lib/navigation/helpers.d.ts +11 -0
- package/lib/navigation/helpers.js +83 -0
- package/lib/navigation/index.d.ts +15 -0
- package/lib/navigation/index.js +42 -0
- package/lib/navigation/types.d.ts +113 -0
- package/lib/navigation/types.js +2 -0
- package/lib/navigation/workflowNavigator.d.ts +22 -0
- package/lib/navigation/workflowNavigator.js +104 -0
- package/lib/providers/ApiProvider.d.ts +7 -0
- package/lib/providers/ApiProvider.js +34 -0
- package/lib/providers/MasterDataProvider.d.ts +10 -0
- package/lib/providers/MasterDataProvider.js +54 -0
- package/lib/screens/AadhaarVerification.d.ts +7 -0
- package/lib/screens/AadhaarVerification.js +627 -0
- package/lib/screens/AddBankAccount.d.ts +22 -0
- package/lib/screens/AddBankAccount.js +381 -0
- package/lib/screens/BankDetail.d.ts +16 -0
- package/lib/screens/BankDetail.js +596 -0
- package/lib/screens/BookFD.d.ts +0 -0
- package/lib/screens/BookFD.js +315 -0
- package/lib/screens/Employee.d.ts +18 -0
- package/lib/screens/Employee.js +594 -0
- package/lib/screens/FDCalculator.d.ts +18 -0
- package/lib/screens/FDCalculator.js +759 -0
- package/lib/screens/FDList.d.ts +27 -0
- package/lib/screens/FDList.js +1008 -0
- package/lib/screens/FindIFSC.d.ts +16 -0
- package/lib/screens/FindIFSC.js +248 -0
- package/lib/screens/Home.d.ts +0 -0
- package/lib/screens/Home.js +143 -0
- package/lib/screens/NomineeDetail.d.ts +17 -0
- package/lib/screens/NomineeDetail.js +592 -0
- package/lib/screens/PayNow.d.ts +14 -0
- package/lib/screens/PayNow.js +230 -0
- package/lib/screens/Payment.d.ts +11 -0
- package/lib/screens/Payment.js +191 -0
- package/lib/screens/PaymentStatus.d.ts +16 -0
- package/lib/screens/PaymentStatus.js +397 -0
- package/lib/screens/ReviewKYC.d.ts +21 -0
- package/lib/screens/ReviewKYC.js +660 -0
- package/lib/state/paymentSession.d.ts +8 -0
- package/lib/state/paymentSession.js +13 -0
- package/lib/store/fdListSelectedSlice.d.ts +21 -0
- package/lib/store/fdListSelectedSlice.js +26 -0
- package/lib/store/hooks.d.ts +8 -0
- package/lib/store/hooks.js +31 -0
- package/lib/store/index.d.ts +3 -0
- package/lib/store/index.js +8 -0
- package/lib/store/onboardingSlice.d.ts +12 -0
- package/lib/store/onboardingSlice.js +32 -0
- package/lib/store/store.d.ts +13 -0
- package/lib/store/store.js +33 -0
- package/lib/theme/ThemeContext.d.ts +210 -0
- package/lib/theme/ThemeContext.js +90 -0
- package/lib/theme/colors.d.ts +80 -0
- package/lib/theme/colors.js +85 -0
- package/lib/theme/index.d.ts +34 -0
- package/lib/theme/index.js +69 -0
- package/lib/theme/shadows.d.ts +53 -0
- package/lib/theme/shadows.js +58 -0
- package/lib/theme/typography.d.ts +134 -0
- package/lib/theme/typography.js +143 -0
- package/lib/types/dataTypes.d.ts +34 -0
- package/lib/types/dataTypes.js +2 -0
- package/lib/types/workflowTypes.d.ts +2 -0
- package/lib/types/workflowTypes.js +2 -0
- package/lib/utils/apiLogger.d.ts +48 -0
- package/lib/utils/apiLogger.js +105 -0
- package/lib/utils/encryption.d.ts +28 -0
- package/lib/utils/encryption.js +113 -0
- package/lib/utils/getFDData.d.ts +48 -0
- package/lib/utils/getFDData.js +154 -0
- package/lib/utils/globalData.d.ts +2 -0
- package/lib/utils/globalData.js +10 -0
- package/package.json +76 -0
- package/src/api/applicationApi.ts +12 -0
- package/src/api/bankApi.ts +42 -0
- package/src/api/baseApi.ts +513 -0
- package/src/api/customerApi.ts +291 -0
- package/src/api/fdApi.ts +150 -0
- package/src/api/fdCalculatorApi.ts +41 -0
- package/src/api/index.ts +29 -0
- package/src/api/interestRateApi.ts +143 -0
- package/src/api/kycApi.ts +63 -0
- package/src/api/masterDataApi.ts +34 -0
- package/src/api/nomineeApi.ts +34 -0
- package/src/api/onboardingApi.ts +64 -0
- package/src/api/panApi.ts +25 -0
- package/src/api/paymentApi.ts +34 -0
- package/src/api/workflowApi.ts +94 -0
- package/src/assets/images/arrow-filled.png +0 -0
- package/src/assets/images/arrow-left.png +0 -0
- package/src/assets/images/backicon.png +0 -0
- package/src/assets/images/calendar.png +0 -0
- package/src/assets/images/chevron-down.png +0 -0
- package/src/assets/images/chevron-down@2x.png +0 -0
- package/src/assets/images/chevron-down@3x.png +0 -0
- package/src/assets/images/images.js +8 -0
- package/src/components/AadhaarInput.tsx +91 -0
- package/src/components/ActionButton.tsx +129 -0
- package/src/components/ActiveFDCard.tsx +158 -0
- package/src/components/AmountInput.tsx +217 -0
- package/src/components/CheckboxOption.tsx +93 -0
- package/src/components/CompanyHeader.tsx +78 -0
- package/src/components/DropdownSelector.tsx +77 -0
- package/src/components/EmptyState.tsx +109 -0
- package/src/components/ErrorDisplay.tsx +135 -0
- package/src/components/FAQItem.tsx +90 -0
- package/src/components/FDCard.tsx +165 -0
- package/src/components/FormDropdown.tsx +214 -0
- package/src/components/FormSection.tsx +86 -0
- package/src/components/Header.tsx +110 -0
- package/src/components/IFSCSearchResultCard.tsx +139 -0
- package/src/components/InfoBox.tsx +55 -0
- package/src/components/InterestRateCard.tsx +77 -0
- package/src/components/LoadingIndicator.tsx +63 -0
- package/src/components/OTPInput.tsx +213 -0
- package/src/components/PaymentDetailsCard.tsx +120 -0
- package/src/components/PendingFDBottomSheet.tsx +235 -0
- package/src/components/README.md +210 -0
- package/src/components/SafeAreaWrapper.tsx +68 -0
- package/src/components/ScreenHeader.tsx +83 -0
- package/src/components/StatusDisplay.tsx +139 -0
- package/src/components/TextFieldWithLabel.tsx +502 -0
- package/src/components/TrustBox.tsx +63 -0
- package/src/components/ValidationErrorAlert.tsx +57 -0
- package/src/components/ValidationMessage.tsx +134 -0
- package/src/components/index.tsx +47 -0
- package/src/config/apiConfig.ts +217 -0
- package/src/config/appDataConfig.ts +279 -0
- package/src/config/encryptionConfig.ts +65 -0
- package/src/config/workflowConstants.ts +43 -0
- package/src/constants/strings/README.md +146 -0
- package/src/constants/strings/bank.ts +92 -0
- package/src/constants/strings/base64Images.ts +29 -0
- package/src/constants/strings/common.ts +63 -0
- package/src/constants/strings/employee.ts +85 -0
- package/src/constants/strings/faq.ts +23 -0
- package/src/constants/strings/fd.ts +172 -0
- package/src/constants/strings/home.ts +67 -0
- package/src/constants/strings/index.ts +21 -0
- package/src/constants/strings/kyc.ts +100 -0
- package/src/constants/strings/nominee.ts +90 -0
- package/src/hooks/useAuth.ts +42 -0
- package/src/hooks/useFDData.ts +48 -0
- package/src/index.tsx +173 -0
- package/src/navigation/RootNavigator.tsx +352 -0
- package/src/navigation/SimpleNavigator.tsx +107 -0
- package/src/navigation/helpers.ts +85 -0
- package/src/navigation/index.tsx +81 -0
- package/src/navigation/types.ts +124 -0
- package/src/navigation/workflowNavigator.ts +131 -0
- package/src/providers/ApiProvider.tsx +43 -0
- package/src/providers/MasterDataProvider.tsx +30 -0
- package/src/screens/AadhaarVerification.tsx +809 -0
- package/src/screens/AddBankAccount.tsx +541 -0
- package/src/screens/BankDetail.tsx +826 -0
- package/src/screens/BookFD.tsx +330 -0
- package/src/screens/Employee.tsx +822 -0
- package/src/screens/FDCalculator.tsx +987 -0
- package/src/screens/FDList.tsx +1284 -0
- package/src/screens/FindIFSC.tsx +332 -0
- package/src/screens/Home.tsx +152 -0
- package/src/screens/NomineeDetail.tsx +800 -0
- package/src/screens/PayNow.tsx +282 -0
- package/src/screens/Payment.tsx +224 -0
- package/src/screens/PaymentStatus.tsx +561 -0
- package/src/screens/ReviewKYC.tsx +956 -0
- package/src/state/paymentSession.ts +13 -0
- package/src/store/fdListSelectedSlice.ts +42 -0
- package/src/store/hooks.ts +27 -0
- package/src/store/index.ts +3 -0
- package/src/store/onboardingSlice.ts +37 -0
- package/src/store/store.ts +35 -0
- package/src/theme/ThemeContext.tsx +82 -0
- package/src/theme/colors.ts +90 -0
- package/src/theme/index.ts +64 -0
- package/src/theme/shadows.ts +61 -0
- package/src/theme/typography.ts +151 -0
- package/src/types/dataTypes.ts +37 -0
- package/src/types/env.d.ts +93 -0
- package/src/types/workflowTypes.ts +12 -0
- package/src/utils/apiLogger.ts +166 -0
- package/src/utils/encryption.ts +159 -0
- package/src/utils/getFDData.ts +175 -0
- package/src/utils/globalData.ts +7 -0
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
// import React, { useState } from 'react';
|
|
2
|
+
// import {
|
|
3
|
+
// View,
|
|
4
|
+
// Text,
|
|
5
|
+
// StyleSheet,
|
|
6
|
+
// TouchableOpacity,
|
|
7
|
+
// TextInput,
|
|
8
|
+
// ScrollView,
|
|
9
|
+
// Alert,
|
|
10
|
+
// Platform,
|
|
11
|
+
// } from 'react-native';
|
|
12
|
+
// import SafeAreaWrapper from '../components/SafeAreaWrapper';
|
|
13
|
+
|
|
14
|
+
// export interface BookFDProps {
|
|
15
|
+
// onBookingComplete?: (data: FDBookingData) => void;
|
|
16
|
+
// onGoBack?: () => void;
|
|
17
|
+
// fdData?: {
|
|
18
|
+
// id: string;
|
|
19
|
+
// name: string;
|
|
20
|
+
// accountNumber: string;
|
|
21
|
+
// roi: string;
|
|
22
|
+
// tenure: string;
|
|
23
|
+
// amount: number;
|
|
24
|
+
// maturityDate: string;
|
|
25
|
+
// status: 'active' | 'matured' | 'pending';
|
|
26
|
+
// creditRating: string;
|
|
27
|
+
// };
|
|
28
|
+
// customStyles?: {
|
|
29
|
+
// container?: object;
|
|
30
|
+
// title?: object;
|
|
31
|
+
// input?: object;
|
|
32
|
+
// button?: object;
|
|
33
|
+
// buttonText?: object;
|
|
34
|
+
// };
|
|
35
|
+
// }
|
|
36
|
+
|
|
37
|
+
// export interface FDBookingData {
|
|
38
|
+
// amount: string;
|
|
39
|
+
// tenure: string;
|
|
40
|
+
// interestRate: string;
|
|
41
|
+
// customerName: string;
|
|
42
|
+
// mobileNumber: string;
|
|
43
|
+
// }
|
|
44
|
+
|
|
45
|
+
// const BookFD: React.FC<BookFDProps> = ({
|
|
46
|
+
// onBookingComplete,
|
|
47
|
+
// onGoBack,
|
|
48
|
+
// customStyles = {},
|
|
49
|
+
// }) => {
|
|
50
|
+
// const [formData, setFormData] = useState<FDBookingData>({
|
|
51
|
+
// amount: '',
|
|
52
|
+
// tenure: '',
|
|
53
|
+
// interestRate: '7.5',
|
|
54
|
+
// customerName: '',
|
|
55
|
+
// mobileNumber: '',
|
|
56
|
+
// });
|
|
57
|
+
|
|
58
|
+
// const handleInputChange = (field: keyof FDBookingData, value: string) => {
|
|
59
|
+
// setFormData(prev => ({
|
|
60
|
+
// ...prev,
|
|
61
|
+
// [field]: value,
|
|
62
|
+
// }));
|
|
63
|
+
// };
|
|
64
|
+
|
|
65
|
+
// const validateForm = (): boolean => {
|
|
66
|
+
// if (!formData.amount || parseFloat(formData.amount) < 1000) {
|
|
67
|
+
// Alert.alert('Error', 'Minimum amount should be ₹1,000');
|
|
68
|
+
// return false;
|
|
69
|
+
// }
|
|
70
|
+
// if (!formData.tenure || parseInt(formData.tenure) < 12) {
|
|
71
|
+
// Alert.alert('Error', 'Minimum tenure should be 12 months');
|
|
72
|
+
// return false;
|
|
73
|
+
// }
|
|
74
|
+
// if (!formData.customerName.trim()) {
|
|
75
|
+
// Alert.alert('Error', 'Please enter customer name');
|
|
76
|
+
// return false;
|
|
77
|
+
// }
|
|
78
|
+
// if (!formData.mobileNumber || formData.mobileNumber.length !== 10) {
|
|
79
|
+
// Alert.alert('Error', 'Please enter valid 10-digit mobile number');
|
|
80
|
+
// return false;
|
|
81
|
+
// }
|
|
82
|
+
// return true;
|
|
83
|
+
// };
|
|
84
|
+
|
|
85
|
+
// const handleBookFD = () => {
|
|
86
|
+
// if (validateForm()) {
|
|
87
|
+
// Alert.alert(
|
|
88
|
+
// 'Success',
|
|
89
|
+
// 'Fixed Deposit booked successfully!',
|
|
90
|
+
// [
|
|
91
|
+
// {
|
|
92
|
+
// text: 'OK',
|
|
93
|
+
// onPress: () => onBookingComplete?.(formData),
|
|
94
|
+
// },
|
|
95
|
+
// ]
|
|
96
|
+
// );
|
|
97
|
+
// }
|
|
98
|
+
// };
|
|
99
|
+
|
|
100
|
+
// return (
|
|
101
|
+
// <SafeAreaWrapper
|
|
102
|
+
// style={customStyles.container}
|
|
103
|
+
// statusBarColor="#f8f9fa"
|
|
104
|
+
// statusBarStyle="dark-content"
|
|
105
|
+
// >
|
|
106
|
+
// <ScrollView style={styles.scrollView} showsVerticalScrollIndicator={false}>
|
|
107
|
+
// <View style={styles.header}>
|
|
108
|
+
// <TouchableOpacity style={styles.backButton} onPress={onGoBack}>
|
|
109
|
+
// <Text style={styles.backButtonText}>← Back</Text>
|
|
110
|
+
// </TouchableOpacity>
|
|
111
|
+
// <Text style={[styles.title, customStyles.title]}>
|
|
112
|
+
// Book Fixed Deposit
|
|
113
|
+
// </Text>
|
|
114
|
+
// </View>
|
|
115
|
+
|
|
116
|
+
// <View style={styles.form}>
|
|
117
|
+
// <View style={styles.inputGroup}>
|
|
118
|
+
// <Text style={styles.label}>Investment Amount (₹)</Text>
|
|
119
|
+
// <TextInput
|
|
120
|
+
// style={[styles.input, customStyles.input]}
|
|
121
|
+
// value={formData.amount}
|
|
122
|
+
// onChangeText={(value) => handleInputChange('amount', value)}
|
|
123
|
+
// placeholder="Enter amount (min ₹1,000)"
|
|
124
|
+
// keyboardType="numeric"
|
|
125
|
+
// />
|
|
126
|
+
// </View>
|
|
127
|
+
|
|
128
|
+
// <View style={styles.inputGroup}>
|
|
129
|
+
// <Text style={styles.label}>Tenure (Months)</Text>
|
|
130
|
+
// <TextInput
|
|
131
|
+
// style={[styles.input, customStyles.input]}
|
|
132
|
+
// value={formData.tenure}
|
|
133
|
+
// onChangeText={(value) => handleInputChange('tenure', value)}
|
|
134
|
+
// placeholder="Enter tenure (min 12 months)"
|
|
135
|
+
// keyboardType="numeric"
|
|
136
|
+
// />
|
|
137
|
+
// </View>
|
|
138
|
+
|
|
139
|
+
// <View style={styles.inputGroup}>
|
|
140
|
+
// <Text style={styles.label}>Interest Rate (%)</Text>
|
|
141
|
+
// <TextInput
|
|
142
|
+
// style={[styles.input, styles.disabledInput]}
|
|
143
|
+
// value={formData.interestRate}
|
|
144
|
+
// editable={false}
|
|
145
|
+
// />
|
|
146
|
+
// </View>
|
|
147
|
+
|
|
148
|
+
// <View style={styles.inputGroup}>
|
|
149
|
+
// <Text style={styles.label}>Customer Name</Text>
|
|
150
|
+
// <TextInput
|
|
151
|
+
// style={[styles.input, customStyles.input]}
|
|
152
|
+
// value={formData.customerName}
|
|
153
|
+
// onChangeText={(value) => handleInputChange('customerName', value)}
|
|
154
|
+
// placeholder="Enter full name"
|
|
155
|
+
// />
|
|
156
|
+
// </View>
|
|
157
|
+
|
|
158
|
+
// <View style={styles.inputGroup}>
|
|
159
|
+
// <Text style={styles.label}>Mobile Number</Text>
|
|
160
|
+
// <TextInput
|
|
161
|
+
// style={[styles.input, customStyles.input]}
|
|
162
|
+
// value={formData.mobileNumber}
|
|
163
|
+
// onChangeText={(value) => handleInputChange('mobileNumber', value)}
|
|
164
|
+
// placeholder="Enter 10-digit mobile number"
|
|
165
|
+
// keyboardType="phone-pad"
|
|
166
|
+
// maxLength={10}
|
|
167
|
+
// />
|
|
168
|
+
// </View>
|
|
169
|
+
|
|
170
|
+
// <View style={styles.summaryContainer}>
|
|
171
|
+
// <Text style={styles.summaryTitle}>Investment Summary</Text>
|
|
172
|
+
// {formData.amount && formData.tenure && (
|
|
173
|
+
// <>
|
|
174
|
+
// <Text style={styles.summaryText}>
|
|
175
|
+
// Principal: ₹{formData.amount}
|
|
176
|
+
// </Text>
|
|
177
|
+
// <Text style={styles.summaryText}>
|
|
178
|
+
// Tenure: {formData.tenure} months
|
|
179
|
+
// </Text>
|
|
180
|
+
// <Text style={styles.summaryText}>
|
|
181
|
+
// Interest Rate: {formData.interestRate}% p.a.
|
|
182
|
+
// </Text>
|
|
183
|
+
// <Text style={styles.summaryText}>
|
|
184
|
+
// Maturity Amount: ₹{
|
|
185
|
+
// formData.amount && formData.tenure
|
|
186
|
+
// ? (
|
|
187
|
+
// parseFloat(formData.amount) *
|
|
188
|
+
// Math.pow(
|
|
189
|
+
// 1 + parseFloat(formData.interestRate) / 100 / 12,
|
|
190
|
+
// parseInt(formData.tenure)
|
|
191
|
+
// )
|
|
192
|
+
// ).toFixed(2)
|
|
193
|
+
// : '0'
|
|
194
|
+
// }
|
|
195
|
+
// </Text>
|
|
196
|
+
// </>
|
|
197
|
+
// )}
|
|
198
|
+
// </View>
|
|
199
|
+
|
|
200
|
+
// <TouchableOpacity
|
|
201
|
+
// style={[styles.button, customStyles.button]}
|
|
202
|
+
// onPress={handleBookFD}
|
|
203
|
+
// activeOpacity={0.8}
|
|
204
|
+
// >
|
|
205
|
+
// <Text style={[styles.buttonText, customStyles.buttonText]}>
|
|
206
|
+
// Book Fixed Deposit
|
|
207
|
+
// </Text>
|
|
208
|
+
// </TouchableOpacity>
|
|
209
|
+
// </View>
|
|
210
|
+
// </ScrollView>
|
|
211
|
+
// </SafeAreaWrapper>
|
|
212
|
+
// );
|
|
213
|
+
// };
|
|
214
|
+
|
|
215
|
+
// const styles = StyleSheet.create({
|
|
216
|
+
// container: {
|
|
217
|
+
// flex: 1,
|
|
218
|
+
// backgroundColor: '#f5f5f5',
|
|
219
|
+
// },
|
|
220
|
+
// scrollView: {
|
|
221
|
+
// flex: 1,
|
|
222
|
+
// },
|
|
223
|
+
// header: {
|
|
224
|
+
// paddingHorizontal: 20,
|
|
225
|
+
// paddingTop: 20,
|
|
226
|
+
// paddingBottom: 10,
|
|
227
|
+
// },
|
|
228
|
+
// backButton: {
|
|
229
|
+
// marginBottom: 10,
|
|
230
|
+
// },
|
|
231
|
+
// backButtonText: {
|
|
232
|
+
// fontSize: 16,
|
|
233
|
+
// color: '#3498db',
|
|
234
|
+
// fontWeight: '500',
|
|
235
|
+
// },
|
|
236
|
+
// title: {
|
|
237
|
+
// fontSize: 24,
|
|
238
|
+
// fontWeight: 'bold',
|
|
239
|
+
// color: '#2c3e50',
|
|
240
|
+
// textAlign: 'center',
|
|
241
|
+
// },
|
|
242
|
+
// form: {
|
|
243
|
+
// paddingHorizontal: 20,
|
|
244
|
+
// paddingBottom: 30,
|
|
245
|
+
// },
|
|
246
|
+
// inputGroup: {
|
|
247
|
+
// marginBottom: 20,
|
|
248
|
+
// },
|
|
249
|
+
// label: {
|
|
250
|
+
// fontSize: 16,
|
|
251
|
+
// fontWeight: '600',
|
|
252
|
+
// color: '#34495e',
|
|
253
|
+
// marginBottom: 8,
|
|
254
|
+
// },
|
|
255
|
+
// input: {
|
|
256
|
+
// borderWidth: 1,
|
|
257
|
+
// borderColor: '#bdc3c7',
|
|
258
|
+
// borderRadius: 8,
|
|
259
|
+
// paddingHorizontal: 15,
|
|
260
|
+
// paddingVertical: 12,
|
|
261
|
+
// fontSize: 16,
|
|
262
|
+
// backgroundColor: '#ffffff',
|
|
263
|
+
// ...Platform.select({
|
|
264
|
+
// ios: {
|
|
265
|
+
// shadowColor: '#000',
|
|
266
|
+
// shadowOffset: { width: 0, height: 1 },
|
|
267
|
+
// shadowOpacity: 0.1,
|
|
268
|
+
// shadowRadius: 2,
|
|
269
|
+
// },
|
|
270
|
+
// android: {
|
|
271
|
+
// elevation: 2,
|
|
272
|
+
// },
|
|
273
|
+
// }),
|
|
274
|
+
// },
|
|
275
|
+
// disabledInput: {
|
|
276
|
+
// backgroundColor: '#ecf0f1',
|
|
277
|
+
// color: '#7f8c8d',
|
|
278
|
+
// },
|
|
279
|
+
// summaryContainer: {
|
|
280
|
+
// backgroundColor: '#ffffff',
|
|
281
|
+
// padding: 20,
|
|
282
|
+
// borderRadius: 8,
|
|
283
|
+
// marginBottom: 30,
|
|
284
|
+
// ...Platform.select({
|
|
285
|
+
// ios: {
|
|
286
|
+
// shadowColor: '#000',
|
|
287
|
+
// shadowOffset: { width: 0, height: 2 },
|
|
288
|
+
// shadowOpacity: 0.1,
|
|
289
|
+
// shadowRadius: 4,
|
|
290
|
+
// },
|
|
291
|
+
// android: {
|
|
292
|
+
// elevation: 3,
|
|
293
|
+
// },
|
|
294
|
+
// }),
|
|
295
|
+
// },
|
|
296
|
+
// summaryTitle: {
|
|
297
|
+
// fontSize: 18,
|
|
298
|
+
// fontWeight: 'bold',
|
|
299
|
+
// color: '#2c3e50',
|
|
300
|
+
// marginBottom: 15,
|
|
301
|
+
// },
|
|
302
|
+
// summaryText: {
|
|
303
|
+
// fontSize: 16,
|
|
304
|
+
// color: '#34495e',
|
|
305
|
+
// marginBottom: 8,
|
|
306
|
+
// },
|
|
307
|
+
// button: {
|
|
308
|
+
// backgroundColor: '#3498db',
|
|
309
|
+
// paddingVertical: 15,
|
|
310
|
+
// paddingHorizontal: 30,
|
|
311
|
+
// borderRadius: 8,
|
|
312
|
+
// alignItems: 'center',
|
|
313
|
+
// shadowColor: '#000',
|
|
314
|
+
// shadowOffset: {
|
|
315
|
+
// width: 0,
|
|
316
|
+
// height: 2,
|
|
317
|
+
// },
|
|
318
|
+
// shadowOpacity: 0.25,
|
|
319
|
+
// shadowRadius: 3.84,
|
|
320
|
+
// elevation: 5,
|
|
321
|
+
// },
|
|
322
|
+
// buttonText: {
|
|
323
|
+
// color: '#ffffff',
|
|
324
|
+
// fontSize: 18,
|
|
325
|
+
// fontWeight: '600',
|
|
326
|
+
// },
|
|
327
|
+
// });
|
|
328
|
+
|
|
329
|
+
// export { BookFD };
|
|
330
|
+
// export default BookFD;
|