diff --git a/ios/PagerViewProvider.swift b/ios/PagerViewProvider.swift index 644a0575..41d6fe20 100644 --- a/ios/PagerViewProvider.swift +++ b/ios/PagerViewProvider.swift @@ -118,6 +118,9 @@ import UIKit } @objc public func goTo(index: Int, animated: Bool) { + guard props.children.indices.contains(index) else { + return + } if animated { withAnimation { props.currentPage = index