react-dates

react-dates responsive daterangepicker

给你一囗甜甜゛ 提交于 2020-08-05 09:35:55
问题 I am using a react-dates plugin from Airbnb in one of my projects. I am using daterangepicker default calendar props like this one http://airbnb.io/react-dates/?path=/story/drp-calendar-props--default. But this is not responsive in smaller devices from tab to mobile. I want to make some changes here in the tab and mobile view like it would appear as a vertical calendar as this http://airbnb.io/react-dates/?path=/story/drp-calendar-props--vertical. I want to achieve this using the given props

Is Netlify able to receive nested values on Forms feature? [react-dates with Formik]

泪湿孤枕 提交于 2019-12-13 02:48:51
问题 I successfully set react-dates with Formik under Gatsbyjs. Here you have a working demo: https://codesandbox.io/s/723l233my1 Now, my problem concerns netlify (or the way in which react-dates nest the values). So depending on the problem I have two questions: - Is Netlify able to receive nested objects on the Forms feature? - Can I tell react-dates to give me shallow values instead of nested objects? In the working demo you can see that the values (startDate and endDate) seems shallow: "values

Has anyone successfully made an integration of react-dates DateRangePicker with formik?

流过昼夜 提交于 2019-12-12 10:28:17
问题 I'm confused about how to handle react-dates[DateRangePicker] onDatesChange and onFocusChange because they have two values each. onDatesChange should be able to set multiple values i.e both start date and end date. I was trying to build a custom wrapper around the daterangepicker with formik. Check console for errors `<div className="form-group"> <label>DatePickerWithFormik</label> <Field component={DatePickerWithFormik} name="DatePickerWithFormik" className="form-control" /> </div>` `export

using react-with-style to style a react-dates component

為{幸葍}努か 提交于 2019-12-10 17:12:58
问题 I use a react-dates date picker in my site and recently updated to version 16 (from a pre-13 version). Since the new version has pretty different markup from the previous versions, my custom style sheets are irrelevant and instead of customising stylesheets again I would prefer to use the react-with-styles option of customising. The problem is, I can't seem to work out how it works and the documentation is a little unclear. What I have now is basically this: // Css file imported elsewhere