Class

AddGroupScreenApi

AddGroupScreenApi()

Add Group Screen Hooks. Instance name: addGroupScreenHooksApi

The AddGroupScreenHooksApi() can be used to modify the "Add Group" screen options.

Constructor

# new AddGroupScreenApi()

Example
externalCodeSetup.addGroupScreenHooksApi.METHOD_NAME

Methods

# setNavigateToTab(NavigateToTabCallback)

You can use this hook to modify how each screens in the group creation process is navigating. For example, you can use this to navigate to a custom screen after the group creation process instead of the default behavior of navigating to the Groups screen.

Parameters:
Name Type Description
NavigateToTabCallback NavigateToTabCallback
Example

Navigate to a custom screen after the Invites screen

externalCodeSetup.addGroupScreenApi.setNavigateToTab((props) => {

        const {
            defaultNavigation,
            currentTab,
            nextTab,
            group,
            navigation
        } = props;


        if (nextTab === 'Invites'){
            return navigation.navigate(
                NavigationActions.navigate({
                    routeName: "CustomScreen",
                })
            );
        }

        defaultNavigation();
});