From 7963ea0ab239fc30b5f756385eab42e473e7e152 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesper=20H=C3=A5kansson?= Date: Mon, 13 Feb 2023 07:19:48 +0100 Subject: [PATCH] chore: remove unused import --- packages/stack/src/views/Stack/CardStack.tsx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/stack/src/views/Stack/CardStack.tsx b/packages/stack/src/views/Stack/CardStack.tsx index 0e0993206e..173aa2cafd 100755 --- a/packages/stack/src/views/Stack/CardStack.tsx +++ b/packages/stack/src/views/Stack/CardStack.tsx @@ -18,10 +18,7 @@ import { } from 'react-native'; import type { EdgeInsets } from 'react-native-safe-area-context'; -import { - forModalPresentationIOS, - forNoAnimation as forNoAnimationCard, -} from '../../TransitionConfigs/CardStyleInterpolators'; +import { forNoAnimation as forNoAnimationCard } from '../../TransitionConfigs/CardStyleInterpolators'; import { DefaultTransition, ModalFadeTransition, @@ -522,8 +519,10 @@ export default class CardStack extends React.Component { : getIsModalPresentation(options.cardStyleInterpolator) ? i !== scenes - .map((scene) => scene.descriptor.options.cardStyleInterpolator.name) - .lastIndexOf("forModalPresentationIOS") + .map( + (scene) => scene.descriptor.options.cardStyleInterpolator.name + ) + .lastIndexOf('forModalPresentationIOS') : true, } = options;