|
@ -72,6 +72,7 @@ const FormDatePicker = (props) => { |
|
|
value={new Date(auxDate)} |
|
|
value={new Date(auxDate)} |
|
|
mode={mode} |
|
|
mode={mode} |
|
|
is24Hour={true} |
|
|
is24Hour={true} |
|
|
|
|
|
locale={"pt-br"} |
|
|
minimumDate={new Date(moment().subtract(1, "month"))} |
|
|
minimumDate={new Date(moment().subtract(1, "month"))} |
|
|
maximumDate={new Date(moment())} |
|
|
maximumDate={new Date(moment())} |
|
|
formatChosenDate={(selectedDate) => { |
|
|
formatChosenDate={(selectedDate) => { |
|
@ -91,9 +92,9 @@ const FormDatePicker = (props) => { |
|
|
<TouchableOpacity onPress={() => setShow(true)}> |
|
|
<TouchableOpacity onPress={() => setShow(true)}> |
|
|
<View |
|
|
<View |
|
|
style={{ |
|
|
style={{ |
|
|
flex: 1, |
|
|
|
|
|
|
|
|
width: "100%", |
|
|
flexDirection: "row", |
|
|
flexDirection: "row", |
|
|
alignItems: "center", |
|
|
|
|
|
|
|
|
alignItems: "flex-start", |
|
|
justifyContent: "space-between", |
|
|
justifyContent: "space-between", |
|
|
}} |
|
|
}} |
|
|
> |
|
|
> |
|
@ -107,8 +108,7 @@ const FormDatePicker = (props) => { |
|
|
</View> |
|
|
</View> |
|
|
<View style={styles.dateInput}> |
|
|
<View style={styles.dateInput}> |
|
|
<Text style={{ fontSize: dimensions.text.default }}> |
|
|
<Text style={{ fontSize: dimensions.text.default }}> |
|
|
{" "} |
|
|
|
|
|
{date.format("DD/MM/YYYY")} {"\n "} {time.format("HH:mm")} |
|
|
|
|
|
|
|
|
{" "}{date.format("DD/MM/YYYY")} {"\n"} {time.format("HH:mm")} |
|
|
</Text> |
|
|
</Text> |
|
|
</View> |
|
|
</View> |
|
|
</View> |
|
|
</View> |
|
@ -200,8 +200,7 @@ const styles = StyleSheet.create({ |
|
|
dateInput: { |
|
|
dateInput: { |
|
|
flex: 0.8, |
|
|
flex: 0.8, |
|
|
backgroundColor: colors.white, |
|
|
backgroundColor: colors.white, |
|
|
borderRadius: 25, |
|
|
|
|
|
marginVertical: 10, |
|
|
|
|
|
|
|
|
paddingLeft: 5, |
|
|
}, |
|
|
}, |
|
|
dateIcon: { |
|
|
dateIcon: { |
|
|
backgroundColor: colors.primary, |
|
|
backgroundColor: colors.primary, |
|
|