Skip to content

Commit

Permalink
fix: removed flex style from draggable view
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhom committed May 22, 2022
1 parent 5e1ed9d commit 29152fb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
} from '../../hooks';
import { GESTURE_SOURCE } from '../../constants';
import type { BottomSheetDraggableViewProps } from './types';
import { styles } from './styles';

const BottomSheetDraggableViewComponent = ({
gestureType = GESTURE_SOURCE.CONTENT,
Expand Down Expand Up @@ -67,18 +66,6 @@ const BottomSheetDraggableViewComponent = ({
]);
//#endregion

//#region styles
const containerStyle = useMemo(() => {
if (!style) {
return styles.container;
}
if (Array.isArray(style)) {
return [styles.container, ...style];
}
return [styles.container, style];
}, [style]);
//#endregion

return (
<PanGestureHandler
ref={panGestureRef}
Expand All @@ -92,7 +79,7 @@ const BottomSheetDraggableViewComponent = ({
failOffsetX={failOffsetX}
failOffsetY={failOffsetY}
>
<Animated.View style={containerStyle} {...rest}>
<Animated.View style={style} {...rest}>
{children}
</Animated.View>
</PanGestureHandler>
Expand Down
7 changes: 0 additions & 7 deletions src/components/bottomSheetDraggableView/styles.ts

This file was deleted.

0 comments on commit 29152fb

Please sign in to comment.