[native] Use currently selected theme for alerts.
Summary:
Solution for ENG-3935.
This diff introduces a wrapper for React Native alerts, which synchronizes currently selected theme in the app with alert style. Right now userInterfaceStyle is only supported on iOS.
Light theme alert:
Dark theme alert:
Test Plan:
- Select a location where you want to implement an alert (for example, you can add useEffect in root.react.js).
- Verify whether the alert theme is consistent with the app theme.
- Navigate to profile > appearance, alter the theme, and check if the same transformation applies to the other theme.
Reviewers: bartek, tomek, michal, inka
Reviewed By: tomek, inka
Subscribers: ashoat, tomek
Differential Revision: https://phab.comm.dev/D8586