Skip to content

Commit

Permalink
Update display name, run linter
Browse files Browse the repository at this point in the history
  • Loading branch information
VickyStash committed Oct 30, 2023
1 parent e06dde2 commit c0166dd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/withNavigationFallback.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import React, {ComponentType, RefAttributes, ForwardedRef, ReactElement, forwardRef, useContext, useMemo} from 'react';
import {NavigationContext} from '@react-navigation/core';
import {NavigationProp} from '@react-navigation/native';
import {ParamListBase} from '@react-navigation/routers';
import getComponentDisplayName from '../libs/getComponentDisplayName';
import React, {ComponentType, ForwardedRef, forwardRef, ReactElement, RefAttributes, useContext, useMemo} from 'react';

type AddListenerCallback = () => void;

Expand Down Expand Up @@ -44,7 +43,7 @@ export default function <TProps, TRef>(WrappedComponent: ComponentType<TProps &
);
}

WithNavigationFallback.displayName = `WithNavigationFocusWithFallback(${getComponentDisplayName(WrappedComponent)})`;
WithNavigationFallback.displayName = 'WithNavigationFocusWithFallback';

return forwardRef(WithNavigationFallback);
}

0 comments on commit c0166dd

Please sign in to comment.