@@ -732,7 +732,10 @@ export default class BottomSheetBehavior extends React.Component<Props, State> {
732
732
} }
733
733
>
734
734
< PanGestureHandler
735
- enabled = { this . props . enabledGestureInteraction && this . props . enabledHeaderGestureInteraction }
735
+ enabled = {
736
+ this . props . enabledGestureInteraction &&
737
+ this . props . enabledHeaderGestureInteraction
738
+ }
736
739
ref = { this . master }
737
740
waitFor = { this . panRef }
738
741
onGestureEvent = { this . handleMasterPan }
@@ -757,7 +760,10 @@ export default class BottomSheetBehavior extends React.Component<Props, State> {
757
760
}
758
761
>
759
762
< PanGestureHandler
760
- enabled = { this . props . enabledGestureInteraction && this . props . enabledContentGestureInteraction }
763
+ enabled = {
764
+ this . props . enabledGestureInteraction &&
765
+ this . props . enabledContentGestureInteraction
766
+ }
761
767
waitFor = { this . master }
762
768
ref = { this . panRef }
763
769
onGestureEvent = { this . handlePan }
@@ -822,7 +828,10 @@ export default class BottomSheetBehavior extends React.Component<Props, State> {
822
828
this . state . snapPoints . length - 1
823
829
]
824
830
) ,
825
- 1 - this . props . callbackThreshold
831
+ 1 -
832
+ ( this . props . callbackThreshold
833
+ ? this . props . callbackThreshold
834
+ : 0.01 )
826
835
) ,
827
836
neq ( this . onOpenStartValue , 1 )
828
837
) ,
@@ -853,6 +862,8 @@ export default class BottomSheetBehavior extends React.Component<Props, State> {
853
862
]
854
863
) ,
855
864
this . props . callbackThreshold
865
+ ? this . props . callbackThreshold
866
+ : 0.01
856
867
) ,
857
868
neq ( this . onOpenEndValue , 1 )
858
869
) ,
@@ -883,6 +894,8 @@ export default class BottomSheetBehavior extends React.Component<Props, State> {
883
894
]
884
895
) ,
885
896
this . props . callbackThreshold
897
+ ? this . props . callbackThreshold
898
+ : 0.01
886
899
) ,
887
900
neq ( this . onCloseStartValue , 1 )
888
901
) ,
@@ -912,7 +925,10 @@ export default class BottomSheetBehavior extends React.Component<Props, State> {
912
925
this . state . snapPoints . length - 1
913
926
]
914
927
) ,
915
- 1 - this . props . callbackThreshold
928
+ 1 -
929
+ ( this . props . callbackThreshold
930
+ ? this . props . callbackThreshold
931
+ : 0.01 )
916
932
) ,
917
933
neq ( this . onCloseEndValue , 1 )
918
934
) ,
0 commit comments