Tcomb-form-native: TimePickerAndroid not showing on mode datetime only DatePicker.

Created on 22 Dec 2016  路  7Comments  路  Source: gcanti/tcomb-form-native

  • tcomb-form-native v0.6.1
  • react-native v0.38.0
const dateForm = {
      auto: 'none',
      fields: {
        date_time: {
          minimumDate: new Date(new Date().getTime() + (24 * 60 * 60 * 1000)),
          minuteInterval: 10,
          mode: 'datetime',
          config: {
            format: date => String(moment(date).format('D MMM YYYY HH:MM A')),
          },
        },
      },
    };

only datepicker shows not timepicker in android.

Most helpful comment

Anything on this? Having the same issue here, I think a workaround would be to show first datepicker and then timepicker on android

All 7 comments

Anything on this? Having the same issue here, I think a workaround would be to show first datepicker and then timepicker on android

We are also having the same issue here. Agree with @luisguilhermemsalmeida datepicker then timepicker seems like a reasonable approach.

no datetime mode. I also need this features.

There are two components in react-native, TimePickerAndroid and DatePickerAndroid. This library exposes both, but AFAIK there is no DateTimePickerAndroid or similar stuff in RN.

Feel free to ping me if I'm wrong :)

What is the status of this issue?
Has anyone implemented a solution already?

Hi all!

I'm currently working on this, please feel free to test the initial implementation: https://github.com/gcanti/tcomb-form-native/pull/410

Merged in master.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

newbreedofgeek picture newbreedofgeek  路  6Comments

ilyadoroshin picture ilyadoroshin  路  4Comments

dvlprmartins picture dvlprmartins  路  4Comments

alexicum picture alexicum  路  6Comments

timdoes picture timdoes  路  4Comments