Page MenuHomePhabricator

[native] add BottomSheetModalProvider to the root component
ClosedPublic

Authored by ginsu on Aug 24 2023, 1:01 PM.
Tags
None
Referenced Files
F3364619: D8935.id30448.diff
Mon, Nov 25, 4:26 AM
Unknown Object (File)
Mon, Nov 4, 2:09 PM
Unknown Object (File)
Sun, Nov 3, 1:47 PM
Unknown Object (File)
Oct 20 2024, 9:30 AM
Unknown Object (File)
Oct 20 2024, 9:30 AM
Unknown Object (File)
Oct 20 2024, 9:30 AM
Unknown Object (File)
Oct 20 2024, 9:29 AM
Unknown Object (File)
Oct 20 2024, 9:24 AM
Subscribers

Details

Summary

This diff adds the BottomSheetModalProvider to our tree of providers in the root component. We need to add this provider so we can open up and use the bottom sheet from anywhere in the app

Used the following docs to help me with this implementation:

Test Plan

Please see demo video below showing that I can present the bottom sheet

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

ginsu edited the test plan for this revision. (Show Details)
ginsu added reviewers: atul, inka.
ginsu edited the summary of this revision. (Show Details)
ginsu added inline comments.
native/root.react.js
271

Decided to stick this right under the ActionSheetProvider. Eventually once we fully move onto the bottomsheet we should be able to remove the ActionSheetProvider

ginsu requested review of this revision.Aug 24 2023, 1:22 PM

Haven't seen how BottomSheetModalProvider was implemented, but this seems like a reasonable place to place the provider in the hierarchy.

This revision is now accepted and ready to land.Aug 27 2023, 10:38 AM
ginsu edited the summary of this revision. (Show Details)

rebase before landing