Skip to content

Instantly share code, notes, and snippets.

View MegaMaddin's full-sized avatar

Martin M MegaMaddin

View GitHub Profile
@MegaMaddin
MegaMaddin / react-native+0.64.1.patch
Created May 13, 2021 14:16
[react-native][iOS] Trigger onRequestClose when swiping down a pageSheet
diff --git a/node_modules/react-native/React/Views/RCTModalHostView.h b/node_modules/react-native/React/Views/RCTModalHostView.h
index c54c1c6..a5c49d1 100644
--- a/node_modules/react-native/React/Views/RCTModalHostView.h
+++ b/node_modules/react-native/React/Views/RCTModalHostView.h
@@ -16,7 +16,7 @@
@protocol RCTModalHostViewInteractor;
-@interface RCTModalHostView : UIView <RCTInvalidating>
+@interface RCTModalHostView : UIView <RCTInvalidating, UIAdaptivePresentationControllerDelegate>