@hoddy-ui/core 2.5.48 → 2.5.49
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 +1 -1
- package/src/Components/TextField.tsx +13 -1
package/package.json
CHANGED
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
TouchableOpacity,
|
|
8
8
|
View,
|
|
9
9
|
} from "react-native";
|
|
10
|
+
import DateTimePickerModal from "react-native-modal-datetime-picker";
|
|
10
11
|
import {
|
|
11
12
|
ScaledSheet,
|
|
12
13
|
moderateScale,
|
|
13
14
|
ms,
|
|
14
15
|
verticalScale,
|
|
15
16
|
} from "react-native-size-matters";
|
|
16
|
-
import DateTimePickerModal from "react-native-modal-datetime-picker";
|
|
17
17
|
import { useColors } from "../hooks";
|
|
18
18
|
import { TextFieldProps } from "../types";
|
|
19
19
|
import { getFontFamily } from "../utility";
|
|
@@ -679,6 +679,18 @@ export const TextField2 = React.forwardRef<TextInput, TextFieldProps>(
|
|
|
679
679
|
</View>
|
|
680
680
|
)}
|
|
681
681
|
</View>
|
|
682
|
+
{isDate && (
|
|
683
|
+
<DateTimePickerModal
|
|
684
|
+
isVisible={datePickerVisible}
|
|
685
|
+
mode="date"
|
|
686
|
+
date={parseDateValue()}
|
|
687
|
+
onConfirm={handleDateConfirm}
|
|
688
|
+
onCancel={() => {
|
|
689
|
+
setDatePickerVisible(false);
|
|
690
|
+
setFocused(false);
|
|
691
|
+
}}
|
|
692
|
+
/>
|
|
693
|
+
)}
|
|
682
694
|
{options && (
|
|
683
695
|
<SelectMenu
|
|
684
696
|
options={options}
|