ordering-ui-react-native 0.22.43-test → 0.24.43-test
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ordering-ui-react-native",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.43-test",
|
|
4
4
|
"description": "Reusable components made in react native",
|
|
5
5
|
"main": "src/index.tsx",
|
|
6
6
|
"author": "ordering.inc",
|
|
@@ -76,9 +76,9 @@
|
|
|
76
76
|
"react-native-color-matrix-image-filters": "^5.2.10",
|
|
77
77
|
"react-native-country-picker-modal": "^2.0.0",
|
|
78
78
|
"react-native-credit-card-input": "^0.4.1",
|
|
79
|
+
"react-native-date-picker": "^4.2.13",
|
|
79
80
|
"react-native-device-info": "^8.7.1",
|
|
80
81
|
"react-native-document-picker": "^5.2.0",
|
|
81
|
-
"react-datepicker": "^4.12.0",
|
|
82
82
|
"react-native-elements": "^3.0.0-alpha.1",
|
|
83
83
|
"react-native-fast-image": "^8.3.3",
|
|
84
84
|
"react-native-fbsdk-next": "^7.0.1",
|
|
@@ -14,7 +14,7 @@ import { PhoneInputNumber } from '../PhoneInputNumber';
|
|
|
14
14
|
import { sortInputFields } from '../../utils';
|
|
15
15
|
import { ListItem } from '../UserProfile/styles';
|
|
16
16
|
import moment from 'moment';
|
|
17
|
-
import DatePicker from 'react-
|
|
17
|
+
import DatePicker from 'react-native-date-picker'
|
|
18
18
|
|
|
19
19
|
export const UserFormDetailsUI = (props: any) => {
|
|
20
20
|
const {
|
|
@@ -83,7 +83,7 @@ export const UserFormDetailsUI = (props: any) => {
|
|
|
83
83
|
const [isValid, setIsValid] = useState(false)
|
|
84
84
|
const [isChanged, setIsChanged] = useState(false)
|
|
85
85
|
const [isModalOpen, setIsModalOpen] = useState(false)
|
|
86
|
-
const [birthdate, setBirthdate] = useState(
|
|
86
|
+
const [birthdate, setBirthdate] = useState(user?.birthdate ? new Date(user?.birthdate) : new Date())
|
|
87
87
|
const [phoneInputData, setPhoneInputData] = useState({
|
|
88
88
|
error: '',
|
|
89
89
|
phone: {
|
|
@@ -384,11 +384,9 @@ export const UserFormDetailsUI = (props: any) => {
|
|
|
384
384
|
</OText>
|
|
385
385
|
<DateContainer>
|
|
386
386
|
<DatePicker
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
name='birthdate'
|
|
391
|
-
onChange={_handleChangeDate}
|
|
387
|
+
mode='date'
|
|
388
|
+
date={birthdate}
|
|
389
|
+
onDateChange={_handleChangeDate}
|
|
392
390
|
/>
|
|
393
391
|
</DateContainer>
|
|
394
392
|
</WrapperPhone>
|