[native] Pull displayFailureAlert out of EditUserAvatarProvider
Summary:
As part of making EditUserAvatarProvider "platform-agnostic" so it can be used across web and native, we're pulling displayFailureAlert (which uses react-native:Alert.alert(...)) out of EditUserAvatarProvider.
We will similarly need to pass selectFromGallery(...) and useUploadSelectedMedia as props to make EditUserAvatarProvider "fully" platform-agnostic.
Test Plan:
- Killed keyserver to ensure update avatar request would fail
- Ensured that Alert was displayed on native as expected:
Reviewers: ashoat, ginsu
Reviewed By: ginsu
Subscribers: tomek
Differential Revision: https://phab.comm.dev/D8213