📧Verify Email

This screen is used when the user is required to confirm the email address with which they registered.

How to use it?

  • Import AUTH_VALIDATION_SCREENS constant where you have the Stack.Navigator you want to display the email verification screens.

import {AUTH_VALIDATION_SCREENS} from 'LinkerStudio/modules/authentication/common/constants';
  • Add this code block to the Stack.Navigator you want to display the email verification screen.

<Stack.Group>
  {AUTH_VALIDATION_SCREENS.map(screen => {
     return (
       <Stack.Screen
          key={screen.name}
          name={screen.name}
          component={screen.component}
        />
      );
   })}
</Stack.Group>
  • Import AuthConfirmStackParams type where you have the stack params list type of the Stack.Navigator you want to display the email verification screen. It is usually the types.ts file.

import {AuthConfirmStackParams} from 'LinkerStudio/modules/authentication/common/navigation/types';
  • Add the AuthConfirmStackParams type to your stack params list type, so your stack navigator can recognize the email verification screen.

    Take the following as an example:

export type RootStackParamsList = {MY SCREENS TYPES} & AuthConfirmStackParams;

Last updated