Page MenuHomePhabricator

[native, lib] Move community drawer related code that can be reused on web from native to lib
ClosedPublic

Authored by inka on Jan 4 2023, 3:12 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 27, 6:43 PM
Unknown Object (File)
Fri, Dec 27, 6:43 PM
Unknown Object (File)
Fri, Dec 27, 6:43 PM
Unknown Object (File)
Fri, Dec 27, 6:43 PM
Unknown Object (File)
Fri, Dec 27, 6:43 PM
Unknown Object (File)
Fri, Dec 27, 6:43 PM
Unknown Object (File)
Fri, Dec 27, 6:43 PM
Unknown Object (File)
Fri, Dec 27, 6:43 PM
Subscribers

Details

Summary

Some code used for community drawer on native can be reused for community drawer on web, so I moved it to lib.

Test Plan

run iOS simulator, checked that communinty drawer works as expected.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

inka requested review of this revision.Jan 4 2023, 3:26 AM
native/navigation/community-drawer-content.react.js
45–56 ↗(On Diff #20562)

This now can be simplified.

This revision is now accepted and ready to land.Jan 5 2023, 4:07 AM
This revision now requires review to proceed.Jan 10 2023, 2:40 AM
tomek added inline comments.
lib/utils/drawer-utils.react.js
7 ↗(On Diff #20672)

We usually prefer more descriptive type parameters. Maybe LabelStyleType?

This revision is now accepted and ready to land.Jan 10 2023, 9:09 AM

Make type parameter more descriptive