Skip to content

[FIX] UiKit/DatePicker is broken#4607

Merged
reinaldonetof merged 3 commits into
developfrom
fix.ui-datepicker
Oct 21, 2022
Merged

[FIX] UiKit/DatePicker is broken#4607
reinaldonetof merged 3 commits into
developfrom
fix.ui-datepicker

Conversation

@reinaldonetof

@reinaldonetof reinaldonetof commented Oct 14, 2022

Copy link
Copy Markdown
Contributor

Proposed changes

To access this functionality, you need to login open.rocket.chat and send /remind into the message box

image

Then, when clicking the input When? the iOS is crashing, and the Android is returning Invalid Date after selecting the data.

Issue(s)

How to test or reproduce

  • Log in into open.rocket.chat
  • Go to a channel and type /remind, then send it

Screenshots

iOS

Screen.Recording.2022-10-14.at.15.02.34.mov

Android

Screen.Recording.2022-10-14.at.16.18.41.mov

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • Improvement (non-breaking change which improves a current function)
  • New feature (non-breaking change which adds functionality)
  • Documentation update (if none of the other choices apply)

Checklist

  • I have read the CONTRIBUTING doc
  • I have signed the CLA
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works (if applicable)
  • I have added necessary documentation (if applicable)
  • Any dependent changes have been merged and published in downstream modules

Further comments

Jira: NATIVE-91

@reinaldonetof reinaldonetof self-assigned this Oct 14, 2022
onShow(false);
if (date || timestamp) {
const newDate = date || new Date(timestamp);
unstable_batchedUpdates(() => {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need this unstable_batchedUpdates to avoid double re-render of the calendar when using Android

@reinaldonetof reinaldonetof merged commit ec03f49 into develop Oct 21, 2022
@reinaldonetof reinaldonetof deleted the fix.ui-datepicker branch October 21, 2022 16:52
diegolmello pushed a commit that referenced this pull request Dec 2, 2022
* [FIX] UiKit/DatePicker is broken

* minor tweak
diegolmello pushed a commit that referenced this pull request Dec 2, 2022
* [FIX] UiKit/DatePicker is broken

* minor tweak
ivnxyz pushed a commit to NextiaDev/Rocket.Chat.ReactNative that referenced this pull request May 26, 2023
* [FIX] UiKit/DatePicker is broken

* minor tweak
ivnxyz pushed a commit to NextiaDev/Rocket.Chat.ReactNative that referenced this pull request May 26, 2023
* [FIX] UiKit/DatePicker is broken

* minor tweak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants