Page MenuHomePhabricator

[native] Update height calculations for SIWEPanel
ClosedPublic

Authored by ashoat on Oct 9 2023, 1:14 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 10, 6:53 AM
Unknown Object (File)
Sat, Oct 19, 4:20 AM
Unknown Object (File)
Sat, Oct 19, 4:20 AM
Unknown Object (File)
Sat, Oct 19, 4:20 AM
Unknown Object (File)
Sat, Oct 19, 4:20 AM
Unknown Object (File)
Sat, Oct 19, 4:19 AM
Unknown Object (File)
Sat, Oct 19, 4:01 AM
Unknown Object (File)
Sep 20 2024, 10:52 AM
Subscribers

Details

Summary

Two changes here:

  1. I updated the manually-determined offsets we use for the WalletConnect modal height. I did this by playing around with the modal and picking numbers that made it look good.
  2. I added some consideration for the keyboard height, since it's possible to search the WalletConnect modal. To achieve this, I had to introduce a new useKeyboardHeight hook.

Depends on D9436

Test Plan

I tested the WalletConnect modal:

  1. Tested iOS and Android physical devices
  2. Tested in a public staging environment (comm.domains)
  3. Tested the QR code scan feature on web
  4. Tested expanding to see "All wallets"
  5. Tested selecting a wallet (Rainbow)
  6. Tested searching for a wallet by typing a query

Some videos of the testing can be seen in the final diff in the stack.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

I should mention that I did look at these docs:

Unfortunately none of those options helped us. It looks like they don't work well for a BottomSheet where the input element is coming from a WebView rather than React Native components.

Harbormaster returned this revision to the author for changes because remote builds failed.Oct 9 2023, 1:25 PM
Harbormaster failed remote builds in B23118: Diff 31825!

Remove console.logs to fix CI

Harbormaster returned this revision to the author for changes because remote builds failed.Oct 9 2023, 1:52 PM
Harbormaster failed remote builds in B23121: Diff 31828!
ashoat requested review of this revision.Oct 9 2023, 2:28 PM
This revision is now accepted and ready to land.Oct 9 2023, 2:42 PM