08-26-2019 16:53
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-26-2019 16:53
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi guys,
Has anyone got a suggestion as to how to select a date in the companion settings in settings.jsx?
If a full date picker is too hard, is there a way to dynamically show the last 60 days in a select?
Thanks.

10-22-2019 00:39
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-22-2019 00:39
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I just answered this in another post, but here it is for reference.
You can get a date picker using the <TextInput> in the index.jsx file in Settings. Just add the type="date" attribute.
Also, just for reference, here are other types, but just know, not all of them are supported by Fitbit.
<TextInput
label="Day"
title="Day input"
settingsKey="day"
type="date" />

10-22-2019 01:21
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-22-2019 01:21
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Awesome , thanks James.

