🛂Client Support

Screens with information that help the user to be able to establish communication with the application support team.

Integrations

In order to obtain the information that is going to be displayed on the screens, an integration with the API is needed, for which the following environment variables are required:

API_CLIENT_SUPPORT_SUBJECTS='/supports/subject-options'
API_CLIENT_SUPPORT_CREATE_TICKET='/supports/create-ticket'

How to use it?

  • Import SUPPORT_SCREENS constant where you have the Stack.Navigator you want to display the screens:

import {SUPPORT_SCREENS} from 'LinkerStudio/modules/clientSupport/constants';
  • Add this code block to the Stack.Navigator you want to display the screens:

<Stack.Navigator>
  {SUPPORT_SCREENS.map(screen => (
    <Stack.Screen
      key={screen.name}
      name={screen.name}
      component={screen.component}
      options={{headerShown: false}}
    />
  ))}
</Stack.Navigator>
  • Import SupportStackParams type where you have the stack params list type of the Stack.Navigator you want to display the support screens. It is usually the types.ts file:

import {SupportStackParams} from 'LinkerStudio/modules/clientSupport/navigation/types';
  • Add SupportStackParams type to your stack params list type, so your stack navigator can recognize the support screens:

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

Last updated