@@ -2,10 +2,10 @@ import * as React from 'react'
22import { View } from 'react-native'
33import { Text , IconButton } from 'react-native-paper'
44
5- import TextInputWithMask from '../TextInputMask'
65import DatePickerModal from './DatePickerModal'
76
8- export default function DateRangeInput ( ) {
7+ // WORK IN PROGRESS
8+ export default function DateRangeInput ( { locale } : { locale : string } ) {
99 const [ visible , setVisible ] = React . useState < boolean > ( false )
1010 const onDismiss = React . useCallback ( ( ) => {
1111 setVisible ( false )
@@ -22,13 +22,13 @@ export default function DateRangeInput() {
2222 return (
2323 < View style = { { flexDirection : 'row' , alignItems : 'center' } } >
2424 < View style = { { flex : 1 } } >
25- < TextInputWithMask
26- value = { '' }
27- keyboardType = { 'numeric' }
28- placeholder = { 'DD-MM-YYY' }
29- mask = { 'DD-MM-YYY' }
30- onChangeText = { ( ) => { } }
31- />
25+ { /*<DatePickerInput*/ }
26+ { /* value={''}*/ }
27+ { /* keyboardType={'numeric'}*/ }
28+ { /* placeholder={'DD-MM-YYY'}*/ }
29+ { /* mask={'DD-MM-YYY'}*/ }
30+ { /* onChangeText={() => {}}*/ }
31+ { /*/>*/ }
3232 < Text > Van</ Text >
3333 </ View >
3434 < View >
@@ -40,13 +40,13 @@ export default function DateRangeInput() {
4040 </ Text >
4141 </ View >
4242 < View style = { { flex : 1 } } >
43- < TextInputWithMask
44- value = { '' }
45- keyboardType = { 'numeric' }
46- placeholder = { 'DD-MM-YYY' }
47- mask = { 'DD-MM-YYY' }
48- onChangeText = { ( ) => { } }
49- />
43+ { /*<DatePickerInput*/ }
44+ { /* // value={''}*/ }
45+ { /* // keyboardType={'numeric'}*/ }
46+ { /* // placeholder={'DD-MM-YYY'}*/ }
47+ { /* // mask={'DD-MM-YYY'}*/ }
48+ { /* // onChangeText={() => {}}*/ }
49+ { /*/>*/ }
5050 < Text > Tot</ Text >
5151 </ View >
5252 < View >
@@ -56,6 +56,7 @@ export default function DateRangeInput() {
5656 </ Text >
5757 </ View >
5858 < DatePickerModal
59+ locale = { locale }
5960 mode = "range"
6061 visible = { visible }
6162 onDismiss = { onDismiss }
0 commit comments