[native] Construct synthetic UserInfo to pass to EditUserAvatar
Summary:
EditUserAvatar renders an avatar via UserAvatar, which currently only works when the data (UserInfo or CurrentUserInfo) is in Redux.
For the registration flow, we want to render a "pending" avatar that hasn't been saved into Redux yet. To that end, this diff introduces a way to pass UserInfo to UserAvatar and EditUserAvatar.
Depends on D8045
Test Plan:
This was tested in combination with the rest of the stack. I tested:
- ENS flow, both when user has an ENS avatar and when they don't
- Setting an emoji avatar
- Setting an image avatar via camera
- Setting an image avatar via media library
- Tested avatar update flow after being logged in to make sure I didn't regress anything
To see the UI in action, check out the video in D8049!
Reviewers: ginsu, atul
Reviewed By: atul
Subscribers: tomek
Differential Revision: https://phab.comm.dev/D8046