Skip to content

Commit 44bca35

Browse files
authored
fix(android): Fix blank screen after removal of last page (#929)
1 parent 39bf5c2 commit 44bca35

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

android/src/main/java/com/reactnativepagerview/PagerViewViewManagerImpl.kt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,8 @@ object PagerViewViewManagerImpl {
7878
}
7979

8080
adapter?.removeChildAt(index)
81-
82-
pager.post {
83-
pager.invalidate()
84-
pager.requestLayout()
85-
}
81+
82+
refreshViewChildrenLayout(pager)
8683
}
8784

8885
fun needsCustomLayoutForChildren(): Boolean {

0 commit comments

Comments
 (0)