Skip to content

Commit d6a3237

Browse files
committed
cleanup
1 parent 7946eb4 commit d6a3237

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

app/containers/ActionSheet/ActionSheet.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,14 @@ const ActionSheet = React.memo(
3434
setContentHeight(layout.height);
3535
};
3636

37-
const cancelPendingPresent = () => {
38-
if (presentTimerRef.current !== null) {
39-
clearTimeout(presentTimerRef.current);
40-
presentTimerRef.current = null;
41-
}
42-
};
43-
4437
const hide = () => {
45-
cancelPendingPresent();
4638
onCloseSnapshotRef.current = data?.onClose;
4739
sheetRef.current?.dismiss();
4840
Keyboard.dismiss();
4941
Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light);
5042
};
5143

5244
const show = (options: TActionSheetOptions) => {
53-
cancelPendingPresent();
5445
setData(options);
5546
setIsVisible(true);
5647
Keyboard.dismiss();

app/containers/ActionSheet/Provider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export type TActionSheetOptions = {
2626
hasCancel?: boolean;
2727
// children can both use snaps or dynamic
2828
children?: React.ReactElement | null;
29-
// Required if your action sheet needs vertical scroll */
29+
// Required if your action sheet needs vertical scroll
3030
snaps?: (string | number)[];
3131
// Optional snaps specifically for portrait orientation
3232
portraitSnaps?: (string | number)[];

0 commit comments

Comments
 (0)