Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ios/PagerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ struct PagerView: View {
.id(props.children.count)
.background(.clear)
.tabViewStyle(.page(indexDisplayMode: .never))
// Opt out of SwiftUI's automatic keyboard avoidance: layout is fully driven
// by React Native, so pages must not shrink when the keyboard appears.
.ignoresSafeArea(.keyboard)
.environment(\.layoutDirection, props.layoutDirection.converted)
.introspect(.tabView(style: .page), on: .iOS(.v14...)) { collectionView in
self.collectionView = collectionView
Expand Down
Loading