From efe74d0633330fedbf43ce351482183266cf668b Mon Sep 17 00:00:00 2001 From: "aman.singh" Date: Thu, 27 Jul 2023 13:17:40 +0530 Subject: [PATCH] TP-34932 |removed the react-native-datetime-picker| Aman Singh --- .gitmodules | 2 +- RN-UI-LIB | 2 +- package.json | 9 ++++----- src/components/form/components/DateInput.tsx | 8 ++++---- src/components/form/components/TimeInput.tsx | 8 ++++---- yarn.lock | 7 ------- 6 files changed, 14 insertions(+), 22 deletions(-) diff --git a/.gitmodules b/.gitmodules index 1d027a4e..69c457a9 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "RN-UI-LIB"] path = RN-UI-LIB - url = git@github.cmd.navi-tech.in:medici/RN-UI-LIB.git + url = git@github.com:navi-medici/RN-UI-LIB.git diff --git a/RN-UI-LIB b/RN-UI-LIB index 86c41c7d..465107f4 160000 --- a/RN-UI-LIB +++ b/RN-UI-LIB @@ -1 +1 @@ -Subproject commit 86c41c7d185fabedaa22976a0ce640d65f4ac2c9 +Subproject commit 465107f46286d09e6fcd10063353f8c11212886e diff --git a/package.json b/package.json index 1e2e87e6..3e29deb7 100644 --- a/package.json +++ b/package.json @@ -53,10 +53,10 @@ "react": "18.1.0", "react-hook-form": "7.40.0", "react-native": "0.70.6", + "react-native-blob-util": "0.17.3", "react-native-call-log": "2.1.2", "react-native-code-push": "7.1.0", "react-native-contacts": "7.0.5", - "react-native-date-picker": "4.2.10", "react-native-device-info": "10.3.0", "react-native-fast-image": "8.6.3", "react-native-geolocation-service": "5.3.1", @@ -74,11 +74,10 @@ "react-native-toast-message": "2.1.5", "react-native-vector-icons": "9.2.0", "react-native-version-number": "0.3.6", + "react-native-webview": "12.0.2", "react-redux": "8.0.5", "redux": "4.2.0", - "redux-persist": "6.0.0", - "react-native-webview": "12.0.2", - "react-native-blob-util": "0.17.3" + "redux-persist": "6.0.0" }, "devDependencies": { "@babel/core": "7.12.9", @@ -102,6 +101,7 @@ "eslint-config-airbnb-base": "^15.0.0", "eslint-config-airbnb-typescript": "17.0.0", "eslint-config-prettier": "^8.8.0", + "eslint-config-prettier-react": "0.0.24", "eslint-config-standard-with-typescript": "^34.0.1", "eslint-plugin-import": "^2.25.2", "eslint-plugin-jsx-a11y": "6.6.1", @@ -117,7 +117,6 @@ "miragejs": "0.1.47", "prettier": "^2.8.7", "react-test-renderer": "18.1.0", - "eslint-config-prettier-react": "0.0.24", "typescript": "4.8.3" }, "jest": { diff --git a/src/components/form/components/DateInput.tsx b/src/components/form/components/DateInput.tsx index 026ec2b7..495167ee 100644 --- a/src/components/form/components/DateInput.tsx +++ b/src/components/form/components/DateInput.tsx @@ -10,12 +10,12 @@ import ErrorMessage from './ErrorMessage'; import { addClickstreamEvent } from '../../../services/clickstreamEventService'; import { CLICKSTREAM_EVENT_NAMES } from '../../../common/Constants'; import { AnswerType } from '../interface'; -import DateTimePicker, { +import WebBasedDatePicker from '../../../../RN-UI-LIB/src/components/WebBasedDatePicker'; +import { + BUSINESS_DATE_FORMAT, DefaultPickerModeVisibleFormatMapping, IDateTimePickerMode, -} from '../../../../RN-UI-LIB/src/components/dateTimePicker/DateTimePicker'; -import WebBasedDatePicker from '../../../../RN-UI-LIB/src/components/WebBasedDatePicker'; -import { BUSINESS_DATE_FORMAT } from '../../../../RN-UI-LIB/src/utlis/dates'; +} from '../../../../RN-UI-LIB/src/utlis/dates'; interface IDateInput { questionType: string; diff --git a/src/components/form/components/TimeInput.tsx b/src/components/form/components/TimeInput.tsx index 7cad221a..125d35b0 100644 --- a/src/components/form/components/TimeInput.tsx +++ b/src/components/form/components/TimeInput.tsx @@ -10,12 +10,12 @@ import ErrorMessage from './ErrorMessage'; import { addClickstreamEvent } from '../../../services/clickstreamEventService'; import { CLICKSTREAM_EVENT_NAMES } from '../../../common/Constants'; import { AnswerType } from '../interface'; -import DateTimePicker, { - DefaultPickerModeVisibleFormatMapping, - IDateTimePickerMode, -} from '../../../../RN-UI-LIB/src/components/dateTimePicker/DateTimePicker'; import { convertTo24HourFormat } from '../../utlis/commonFunctions'; import WebBasedDatePicker from '../../../../RN-UI-LIB/src/components/WebBasedDatePicker'; +import { + DefaultPickerModeVisibleFormatMapping, + IDateTimePickerMode, +} from '../../../../RN-UI-LIB/src/utlis/dates'; interface ITimeInput { questionType: string; diff --git a/yarn.lock b/yarn.lock index bf83f2c3..91b07a01 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7705,13 +7705,6 @@ react-native-contacts@7.0.5: resolved "https://registry.yarnpkg.com/react-native-contacts/-/react-native-contacts-7.0.5.tgz#648b6500ac1f67b79acb2b73b111d31a01f6037f" integrity sha512-RsWf5udhL/wpnBVu/oKVoIzogKcd7IwnxvNK48M4abICGtHxxv+te7hi4q04QjClytIsa5SylpJC2VsnpFDS2A== -react-native-date-picker@4.2.10: - version "4.2.10" - resolved "https://registry.yarnpkg.com/react-native-date-picker/-/react-native-date-picker-4.2.10.tgz#e84cba21ce413d72b2da1c784af3a8a4b2020df3" - integrity sha512-Qtu5mvuESjhSKCsecl5+V3kcGxjB3yUUJbbAq6u8JVZj9/fRf8+IV/yfDSREqMoiLM1ljMumxFT2Qdqkw/++Lw== - dependencies: - prop-types "^15.8.1" - react-native-device-info@10.3.0: version "10.3.0" resolved "https://registry.yarnpkg.com/react-native-device-info/-/react-native-device-info-10.3.0.tgz#6bab64d84d3415dd00cc446c73ec5e2e61fddbe7"