File tree Expand file tree Collapse file tree 2 files changed +1
-10
lines changed
app/containers/ActionSheet Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Original file line number Diff line number Diff 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 ( ) ;
Original file line number Diff line number Diff 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 ) [ ] ;
You can’t perform that action at this time.
0 commit comments