Closed danilovq closed 3 years ago
@danilovq Yes. The 'value' prop is, as mentioned, the initial value. If you want to update it we your screen's state change you should pass the 'key' prop as well to get a new instance of the component (as it is an uncontrolled component).
@Inbal-Tish
Maybe we should consider renaming the prop name to initialValue
for v6
@ethanshar The 'value' prop name is based on the community's DateTimePicker prop. I thought of keeping it the same for smoother migration.
And the community component is controlled or uncontrolled?
Controlled
Do you think it's possible to keep it controlled? Controlled considered best practice in general, we should aim for that for v6..
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@Inbal-Tish This one has been resolved, right?
Yes
how can I change the theme colour of the icon of Datetimepicker RNUILIB, @Inbal-Tish @ethanshar
I am not sure is it a bug or feature request, but I am trying to set DateTimePicker value depends on the my component state. It seems, that the DateTimePicker component ignores the value prop when it's already initialized.
Here is the code snippet: