Skip to content

Commit

Permalink
remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
kosmydel committed Jan 8, 2024
1 parent 7bd9335 commit e0f5bf5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@ function reduceReportRoutes(routes: Routes): Routes {
}

function FullScreenNavigator(props: FullScreenNavigatorProps) {
const {isSmallScreenWidth} = useWindowDimensions();

const isSmallScreenWidthRef = useRef<boolean>(isSmallScreenWidth);

isSmallScreenWidthRef.current = isSmallScreenWidth;

const {navigation, state, descriptors, NavigationContent} = useNavigationBuilder<
StackNavigationState<ParamListBase>,
FullScreenNavigatorRouterOptions,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ type FullScreenNavigatorConfig = {

type FullScreenNavigatorRouterOptions = StackRouterOptions;

type FullScreenNavigatorProps = DefaultNavigatorOptions<ParamListBase, StackNavigationState<ParamListBase>, StackNavigationOptions, StackNavigationEventMap> &
FullScreenNavigatorConfig;
type FullScreenNavigatorProps = DefaultNavigatorOptions<ParamListBase, StackNavigationState<ParamListBase>, StackNavigationOptions, StackNavigationEventMap> & FullScreenNavigatorConfig;

export type {FullScreenNavigatorConfig, FullScreenNavigatorProps, FullScreenNavigatorRouterOptions};

0 comments on commit e0f5bf5

Please sign in to comment.