[native] Replace savedEmojiAvatarSelector with savedEmojiAvatarFunc
Summary:
This simple refactor diff moves the useSelector to the parent component, allowing the child component to take any generic function.
This slightly improves performance in the case where selection from Redux state is not needed, which is the case in the new registration flow.
Depends on D8041
Test Plan:
Flow, along with the testing I did for the whole stack:
- 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
Reviewers: atul, ginsu
Reviewed By: atul
Subscribers: tomek
Differential Revision: https://phab.comm.dev/D8042