Skip to content
Snippets Groups Projects

Resolve "Add comments to all files"

5 files
+ 42
1
Compare changes
  • Side-by-side
  • Inline

Files

@@ -24,6 +24,14 @@ import {
toast500
} from "../../constants/toasts";
/**
* This component renders the screen where a user can change their email. To do this, the user has to re-authenicate due to it being a critical
* feature.
*
* @param {*} props - used for redux and navigation.
*
* @returns the component.
*/
const _ChangeEmailScreen = (props) => {
const { userReducer, onEditEmail } = props;
const [email, setEmail] = useState("");
@@ -32,7 +40,7 @@ const _ChangeEmailScreen = (props) => {
const { user } = userReducer;
// for navigation to work on android
// To make the back-button on android behave correctly and not go to the VerifyPasswordScreen
useEffect(() => {
props.navigation.addListener('beforeRemove', (e) => {
e.preventDefault();
Loading