dx: Upgrade from legacy method UNSAFE_componentWillMount
With this MR, I remove the usage of React's legacy method componentWillMount
and move the logic to componentDidMount
as recommended by React's documentation.
FlagSecure prevents users from taking screenshots of sensitive data. In Manyverse's case, the account recovery code.
I tested the module is still working correctly on a Pixel 4 with Android 11.
Note: please merge after MR !151 (merged)
Edited by David Gomez