Skip to content

Commit eb37e68

Browse files
committed
remove unused style
1 parent cc271ef commit eb37e68

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

app/containers/ActionSheet/ActionSheet.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { useSafeAreaInsets } from 'react-native-safe-area-context';
77
import { GestureHandlerRootView } from 'react-native-gesture-handler';
88

99
import { useTheme } from '../../theme';
10-
import { isIOS, isTablet } from '../../lib/methods/helpers';
10+
import { isIOS } from '../../lib/methods/helpers';
1111
import { Handle } from './Handle';
1212
import { type TActionSheetOptions } from './Provider';
1313
import BottomSheetContent from './BottomSheetContent';
@@ -20,7 +20,7 @@ const ActionSheet = React.memo(
2020
forwardRef(({ children }: { children: React.ReactElement }, ref) => {
2121
const { colors } = useTheme();
2222
const { height: windowHeight, fontScale } = useWindowDimensions();
23-
const { bottom, right, left } = useSafeAreaInsets();
23+
const { bottom } = useSafeAreaInsets();
2424
const sheetRef = useRef<TrueSheet>(null);
2525
const [data, setData] = useState<TActionSheetOptions>({} as TActionSheetOptions);
2626
const [isVisible, setIsVisible] = useState(false);
@@ -89,8 +89,6 @@ const ActionSheet = React.memo(
8989
snapshotOnClose?.();
9090
};
9191

92-
const bottomSheetStyle = isTablet ? styles.bottomSheet : { marginRight: right, marginLeft: left };
93-
9492
const { detents, maxHeight } = useActionSheetDetents({
9593
windowHeight,
9694
bottomInset: bottom,
@@ -130,7 +128,7 @@ const ActionSheet = React.memo(
130128
draggable={!disableContentPanning}
131129
header={renderHeader()}
132130
scrollable={isScrollable}
133-
style={[styles.container, bottomSheetStyle]}
131+
style={[styles.container]}
134132
onDidDismiss={onDidDismiss}>
135133
<GestureHandlerRootView style={styles.contentContainer}>
136134
<BottomSheetContent

app/containers/ActionSheet/styles.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ export default StyleSheet.create({
4343
backdrop: {
4444
...StyleSheet.absoluteFillObject
4545
},
46-
bottomSheet: {
47-
width: '100%'
48-
},
4946
button: {
5047
marginHorizontal: 16,
5148
paddingHorizontal: 14,

0 commit comments

Comments
 (0)