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
externalCodeSetup.addGroupScreenApi.setNavigateToTab((props) => {
const {
defaultNavigation,
currentTab,
nextTab,
group,
navigation
} = props;
if (nextTab === 'Invites'){
return navigation.navigate(
CommonActions.navigate({
name: "CustomScreen",
})
);
}
defaultNavigation();
});