Skip to content

Commit

Permalink
fix: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillzyusko committed Feb 23, 2024
1 parent cee09d2 commit b6f71a1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/libs/Navigation/AppNavigator/ModalStackNavigators.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ type Screens = Partial<Record<Screen, () => React.ComponentType>>;
* @param getScreenOptions optional function that returns the screen options, override the default options
*/
function createModalStackNavigatorFactory(factory: typeof createPlatformStackNavigator) {
return function createNestedModalStackNavigator<TStackParams extends ParamListBase>(screens: Screens, getScreenOptions?: (styles: ThemeStyles) => StackNavigationOptions): React.ComponentType {
return function createNestedModalStackNavigator<TStackParams extends ParamListBase>(
screens: Screens,
getScreenOptions?: (styles: ThemeStyles) => StackNavigationOptions,
): React.ComponentType {
const ModalStackNavigator = factory<TStackParams>();

function ModalStack() {
Expand Down Expand Up @@ -77,7 +80,7 @@ function createModalStackNavigatorFactory(factory: typeof createPlatformStackNav
ModalStack.displayName = 'ModalStack';

return ModalStack;
}
};
}

const createModalStackNavigator = createModalStackNavigatorFactory(createPlatformStackNavigator);
Expand Down

0 comments on commit b6f71a1

Please sign in to comment.