Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use setTimeout hack to get paste context back #1449

Merged
merged 2 commits into from
Mar 24, 2020
Merged

Conversation

rickycodes
Copy link
Contributor

@rickycodes rickycodes commented Mar 22, 2020

super weird workaround that I found here: facebook/react-native#23653 (comment). that issue is for multiline, but it appears to work here none the less.

looking at the existing code a little bit more closely and I see a link to this: facebook/react-native#9958. (@estebanmino it appears we ran into the same problem before?) if you look at the hack outlined, they actually used a setTimeout... It doesn't seem to work unless the width is reset a little later.

Before (paste context does not appear on Rinkeby):

Screenshot_20200322-120323

After:

Screenshot_20200322-120406

Checklist

  • There is a related GitHub issue
  • Tests are included if applicable (not applicable)
  • Any added code is fully documented

Issue

Resolves #1442

@rickycodes rickycodes requested a review from estebanmino March 22, 2020 16:59
@rickycodes rickycodes added the needs-qa Any New Features that needs a full manual QA prior to being added to a release. label Mar 23, 2020
Copy link
Contributor

@estebanmino estebanmino left a comment

Choose a reason for hiding this comment

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

LGTM!

@estebanmino
Copy link
Contributor

actually, this is going to update the whole view twice because we have two setState there now, did you try calling setstate with all the params after 100?

@rickycodes
Copy link
Contributor Author

@estebanmino I didn't, but I will try that and if it works I will update the PR :)

@rickycodes
Copy link
Contributor Author

@estebanmino yep, that worked! Just updated :)

Copy link
Contributor

@ibrahimtaveras00 ibrahimtaveras00 left a comment

Choose a reason for hiding this comment

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

Looks good, QA Passed 👍

@rickycodes rickycodes merged commit bcab9d8 into develop Mar 24, 2020
@rickycodes rickycodes deleted the issue-1442 branch March 24, 2020 22:30
rickycodes added a commit that referenced this pull request Jan 31, 2022
* Use setTimeout hack to get paste context back

Super weird workaround that I found here: facebook/react-native#23653 (comment)

* Move everything into a single setState call
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-qa Any New Features that needs a full manual QA prior to being added to a release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Copy/Paste functionality for addresses on testnet (Kovan, Rinkeby or Görli)
4 participants