Page MenuHomePhabricator

[native][landing] Resize BottomSheet when WalletConnect opened
ClosedPublic

Authored by ashoat on Dec 23 2022, 1:35 PM.
Tags
None
Referenced Files
F2208582: D6017.id20080.diff
Sun, Jul 7, 2:23 PM
F2208179: D6017.id20091.diff
Sun, Jul 7, 12:26 PM
F2208098: D6017.id20084.diff
Sun, Jul 7, 11:47 AM
F2208095: D6017.id.diff
Sun, Jul 7, 11:46 AM
F2208030: D6017.id20081.diff
Sun, Jul 7, 11:17 AM
Unknown Object (File)
Fri, Jul 5, 2:54 AM
Unknown Object (File)
Thu, Jul 4, 7:44 AM
Unknown Object (File)
Tue, Jul 2, 7:22 PM
Subscribers

Details

Summary

WalletConnect needs more space. See video.

Test Plan

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Don't need the snapToPosition stuff actually

Three changes:

  1. Make it possible to increase the size of the BottomSheet. User may want to do this if eg. they don't have Coinbase wallet installed and they select it
  2. As a result, when the user closes WalletConnect modal, the WalletConnect snap point is not removed, so the BottomSheet doesn't resize. Added a React useEffect hook to keep the old behavior
  3. Factor bottom inset into bottom sheet heights for consistency between iOS and Android
atul added inline comments.
landing/siwe.react.js
136 ↗(On Diff #20084)

nit: think a newline after this would help visually separate the useCallback and useEffect with all the indentation

This revision is now accepted and ready to land.Dec 23 2022, 4:03 PM
This revision was landed with ongoing or failed builds.Dec 23 2022, 8:27 PM
This revision was automatically updated to reflect the committed changes.