File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -335,6 +335,8 @@ export class Pager extends PagerBase {
335
335
view . callUnloaded ( ) ;
336
336
}
337
337
view . _isAddedToNativeVisualTree = false ;
338
+ //@ts -ignore
339
+ view . parent = null ;
338
340
view . _tearDownUI ( ) ;
339
341
} ) ;
340
342
this . _viewHolders = new Set ( ) ;
@@ -846,6 +848,8 @@ function initPagerRecyclerAdapter() {
846
848
sp [ PLACEHOLDER ] = true ;
847
849
}
848
850
sp . _setupAsRootView ( owner . _context ) ;
851
+ //@ts -ignore
852
+ sp . parent = owner ;
849
853
sp . _isAddedToNativeVisualTree = true ;
850
854
sp . callLoaded ( ) ;
851
855
sp . nativeView . setLayoutParams ( new android . view . ViewGroup . LayoutParams ( android . view . ViewGroup . LayoutParams . MATCH_PARENT , android . view . ViewGroup . LayoutParams . MATCH_PARENT ) ) ;
@@ -995,6 +999,8 @@ function initStaticPagerStateAdapter() {
995
999
sp [ PLACEHOLDER ] = true ;
996
1000
}
997
1001
sp . _setupAsRootView ( owner . _context ) ;
1002
+ //@ts -ignore
1003
+ sp . parent = owner ;
998
1004
sp . _isAddedToNativeVisualTree = true ;
999
1005
sp . callLoaded ( ) ;
1000
1006
sp . nativeView . setLayoutParams ( new android . view . ViewGroup . LayoutParams ( android . view . ViewGroup . LayoutParams . MATCH_PARENT , android . view . ViewGroup . LayoutParams . MATCH_PARENT ) ) ;
You can’t perform that action at this time.
0 commit comments