Skip to content

Commit

Permalink
rename FullScreenNavigator to CustomFullScreenNavigator
Browse files Browse the repository at this point in the history
  • Loading branch information
kosmydel committed Jan 9, 2024
1 parent ee17a33 commit a8e38cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {StackView} from '@react-navigation/stack';
import CustomFullScreenRouter from './CustomFullScreenRouter';
import type {FullScreenNavigatorProps, FullScreenNavigatorRouterOptions} from './types';

function FullScreenNavigator(props: FullScreenNavigatorProps) {
function CustomFullScreenNavigator(props: FullScreenNavigatorProps) {
const {navigation, state, descriptors, NavigationContent} = useNavigationBuilder<
StackNavigationState<ParamListBase>,
FullScreenNavigatorRouterOptions,
Expand All @@ -31,6 +31,6 @@ function FullScreenNavigator(props: FullScreenNavigatorProps) {
);
}

FullScreenNavigator.displayName = 'FullScreenNavigator';
CustomFullScreenNavigator.displayName = 'CustomFullScreenNavigator';

export default createNavigatorFactory<StackNavigationState<ParamListBase>, StackNavigationOptions, StackNavigationEventMap, typeof FullScreenNavigator>(FullScreenNavigator);
export default createNavigatorFactory<StackNavigationState<ParamListBase>, StackNavigationOptions, StackNavigationEventMap, typeof CustomFullScreenNavigator>(CustomFullScreenNavigator);
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function reduceReportRoutes(routes: Routes): Routes {
return result.reverse();
}

function FullScreenNavigator(props: FullScreenNavigatorProps) {
function CustomFullScreenNavigator(props: FullScreenNavigatorProps) {
const {navigation, state, descriptors, NavigationContent} = useNavigationBuilder<
StackNavigationState<ParamListBase>,
FullScreenNavigatorRouterOptions,
Expand Down Expand Up @@ -65,6 +65,6 @@ function FullScreenNavigator(props: FullScreenNavigatorProps) {
);
}

FullScreenNavigator.displayName = 'FullScreenNavigator';
CustomFullScreenNavigator.displayName = 'CustomFullScreenNavigator';

export default createNavigatorFactory<StackNavigationState<ParamListBase>, StackNavigationOptions, StackNavigationEventMap, typeof FullScreenNavigator>(FullScreenNavigator);
export default createNavigatorFactory<StackNavigationState<ParamListBase>, StackNavigationOptions, StackNavigationEventMap, typeof CustomFullScreenNavigator>(CustomFullScreenNavigator);

0 comments on commit a8e38cf

Please sign in to comment.