Skip to content

Commit 5c9abde

Browse files
committed
fix: codestyle
1 parent e4c84a3 commit 5c9abde

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

src/index.tsx

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,10 @@ export default class BottomSheetBehavior extends React.Component<Props, State> {
732732
}}
733733
>
734734
<PanGestureHandler
735-
enabled={this.props.enabledGestureInteraction && this.props.enabledHeaderGestureInteraction}
735+
enabled={
736+
this.props.enabledGestureInteraction &&
737+
this.props.enabledHeaderGestureInteraction
738+
}
736739
ref={this.master}
737740
waitFor={this.panRef}
738741
onGestureEvent={this.handleMasterPan}
@@ -757,7 +760,10 @@ export default class BottomSheetBehavior extends React.Component<Props, State> {
757760
}
758761
>
759762
<PanGestureHandler
760-
enabled={this.props.enabledGestureInteraction && this.props.enabledContentGestureInteraction}
763+
enabled={
764+
this.props.enabledGestureInteraction &&
765+
this.props.enabledContentGestureInteraction
766+
}
761767
waitFor={this.master}
762768
ref={this.panRef}
763769
onGestureEvent={this.handlePan}
@@ -822,7 +828,10 @@ export default class BottomSheetBehavior extends React.Component<Props, State> {
822828
this.state.snapPoints.length - 1
823829
]
824830
),
825-
1 - this.props.callbackThreshold
831+
1 -
832+
(this.props.callbackThreshold
833+
? this.props.callbackThreshold
834+
: 0.01)
826835
),
827836
neq(this.onOpenStartValue, 1)
828837
),
@@ -853,6 +862,8 @@ export default class BottomSheetBehavior extends React.Component<Props, State> {
853862
]
854863
),
855864
this.props.callbackThreshold
865+
? this.props.callbackThreshold
866+
: 0.01
856867
),
857868
neq(this.onOpenEndValue, 1)
858869
),
@@ -883,6 +894,8 @@ export default class BottomSheetBehavior extends React.Component<Props, State> {
883894
]
884895
),
885896
this.props.callbackThreshold
897+
? this.props.callbackThreshold
898+
: 0.01
886899
),
887900
neq(this.onCloseStartValue, 1)
888901
),
@@ -912,7 +925,10 @@ export default class BottomSheetBehavior extends React.Component<Props, State> {
912925
this.state.snapPoints.length - 1
913926
]
914927
),
915-
1 - this.props.callbackThreshold
928+
1 -
929+
(this.props.callbackThreshold
930+
? this.props.callbackThreshold
931+
: 0.01)
916932
),
917933
neq(this.onCloseEndValue, 1)
918934
),

0 commit comments

Comments
 (0)