diff --git a/modules/expo-scroll-edge-interaction/ios/ExpoScrollEdgeInteractionView.swift b/modules/expo-scroll-edge-interaction/ios/ExpoScrollEdgeInteractionView.swift index 217a4580f2..3e87f0c057 100644 --- a/modules/expo-scroll-edge-interaction/ios/ExpoScrollEdgeInteractionView.swift +++ b/modules/expo-scroll-edge-interaction/ios/ExpoScrollEdgeInteractionView.swift @@ -57,11 +57,11 @@ class ExpoScrollEdgeInteractionView: ExpoView { currentInteraction = interaction } - private func resolveEdge() -> NSDirectionalRectEdge { + private func resolveEdge() -> UIRectEdge { switch edge { case "bottom": return .bottom - case "left": return .leading - case "right": return .trailing + case "left": return .left + case "right": return .right default: return .top } }