fix: SlideToConfirm gesture blocked by modal backdrop - restructure all payment modals
This commit is contained in:
@@ -22,8 +22,10 @@ export function SlideToConfirm({ label = 'Slide to confirm', color = '#059669',
|
||||
|
||||
const panResponder = useRef(
|
||||
PanResponder.create({
|
||||
onStartShouldSetPanResponder: () => !disabled && !done,
|
||||
onMoveShouldSetPanResponder: () => !disabled && !done,
|
||||
onStartShouldSetPanResponder: () => !disabled && !done,
|
||||
onStartShouldSetPanResponderCapture: () => !disabled && !done,
|
||||
onMoveShouldSetPanResponder: () => !disabled && !done,
|
||||
onMoveShouldSetPanResponderCapture: () => !disabled && !done,
|
||||
onPanResponderMove: (_, gs) => {
|
||||
const x = Math.max(0, Math.min(gs.dx, maxX));
|
||||
pan.setValue(x);
|
||||
|
||||
Reference in New Issue
Block a user