Page MenuHomePhabricator

[native] introduce EditAvatar component
ClosedPublic

Authored by ginsu on Apr 13 2023, 3:32 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 10, 7:58 PM
Unknown Object (File)
Tue, Nov 5, 4:24 AM
Unknown Object (File)
Sun, Oct 27, 2:20 AM
Unknown Object (File)
Sun, Oct 27, 2:20 AM
Unknown Object (File)
Sun, Oct 27, 2:20 AM
Unknown Object (File)
Sun, Oct 27, 2:20 AM
Unknown Object (File)
Sun, Oct 27, 2:19 AM
Unknown Object (File)
Sun, Oct 27, 2:14 AM
Subscribers

Details

Summary

EditAvatar is a component that handles all the common logic between editing a user and thread avatar. Following diffs will handle the introduction of the logic for things like the action sheet, image picker, camera modal, loading, etc. in this component

Depends on D7324

Test Plan

I am able to navigate to EmojiAvatarCreation using this new component from both the thread settings and profile. Please watch the demo video to see the changes I made

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ginsu edited the test plan for this revision. (Show Details)
ginsu added reviewers: atul, ashoat.
ginsu edited the test plan for this revision. (Show Details)
ginsu requested review of this revision.Apr 13 2023, 3:51 PM

It's cool how the ThreadAvatar / ChildAvatar is a child of EditAvatar

native/components/edit-avatar.react.js
43 ↗(On Diff #25148)

Realize this is just a refactor diff, but I think we should TouchableOpacity or something instead of TouchableWithoutFeedback

This revision is now accepted and ready to land.Apr 14 2023, 6:42 AM

address comments and rebase before landing

This revision was automatically updated to reflect the committed changes.