Skip to content

dx: Upgrade from legacy method UNSAFE_componentWillMount

David Gomez requested to merge update-flag-secure into master

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

Merge request reports