Page MenuHomePhabricator

[native] introduce user profile bottomsheet component
ClosedPublic

Authored by ginsu on Sep 7 2023, 10:05 AM.
Tags
None
Referenced Files
F2630890: D9101.diff
Sat, Sep 7, 7:40 PM
F2626096: D9101.id31005.diff
Sat, Sep 7, 4:20 AM
F2626095: D9101.id31002.diff
Sat, Sep 7, 4:20 AM
F2626094: D9101.id30849.diff
Sat, Sep 7, 4:20 AM
F2626093: D9101.id30850.diff
Sat, Sep 7, 4:20 AM
F2626070: D9101.id.diff
Sat, Sep 7, 4:19 AM
F2626045: D9101.diff
Sat, Sep 7, 4:16 AM
Unknown Object (File)
Tue, Aug 27, 5:35 AM
Subscribers

Details

Summary

This diff introduces the ProfileBottomSheet component. When designing this component/how bottomsheets should work in our app, I wanted to take a similar approach to how we currently handle popups/modals in the app today so I created a new screen in root navigator which we will navigate to when the user profile bottomsheet should appear. The "screen" we will navigate to is this ProfileBottomSheet component

Depends on D9098

Test Plan

Confirmed that I am able to navigate to and back from this new "screen".

I created this test function in RelationshipListItem:

onPressTestNav = userInfo => {
  this.props.navigate<'UserProfileBottomSheet'>({
    name: UserProfileBottomSheetRouteName,
    params: {
      userID: userInfo.id,
    },
  });
};

and got the following:

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 test plan for this revision. (Show Details)
ginsu edited the summary of this revision. (Show Details)

improve onClosed dep list

native/bottom-sheets/user-profile-bottom-sheet.react.js
13

This parameter/type is a bit of a naive and will be updated in a subsequent diff.

38
ginsu published this revision for review.Sep 7 2023, 10:28 AM
This revision is now accepted and ready to land.Sep 12 2023, 5:36 AM
This revision was landed with ongoing or failed builds.Sep 12 2023, 2:31 PM
This revision was automatically updated to reflect the committed changes.