Fix unit tests
Reviewed By: bestander Differential Revision: D3398431 fbshipit-source-id: 37561bea78c933673595625530cf083c85c3fbbd
This commit is contained in:
parent
282df0ed07
commit
79dcbc7b29
|
@ -95,7 +95,7 @@
|
|||
}
|
||||
for (NSInteger i = 2; i < 20; i++) {
|
||||
UIView *view = _uiManager.viewRegistry[@(i)];
|
||||
[containerView addSubview:view];
|
||||
[containerView insertReactSubview:view atIndex:containerView.reactSubviews.count];
|
||||
}
|
||||
|
||||
// Remove views 1-5 from view 20
|
||||
|
@ -155,7 +155,7 @@
|
|||
|
||||
for (NSInteger i = 1; i < 11; i++) {
|
||||
UIView *view = _uiManager.viewRegistry[@(i)];
|
||||
[containerView addSubview:view];
|
||||
[containerView insertReactSubview:view atIndex:containerView.reactSubviews.count];
|
||||
}
|
||||
|
||||
[_uiManager _manageChildren:@20
|
||||
|
|
|
@ -66,7 +66,7 @@ static void collectNonTextDescendants(RCTText *view, NSMutableArray *nonTextDesc
|
|||
self.backgroundColor = inheritedBackgroundColor;
|
||||
}
|
||||
|
||||
- (void)reactUpdateSubviews
|
||||
- (void)didUpdateReactSubviews
|
||||
{
|
||||
// Do nothing, as subviews are managed by `setTextStorage:` method
|
||||
}
|
||||
|
|
|
@ -136,7 +136,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithCoder:(NSCoder *)aDecoder)
|
|||
}
|
||||
}
|
||||
|
||||
- (void)reactUpdateSubviews
|
||||
- (void)didUpdateReactSubviews
|
||||
{
|
||||
// Do nothing, as we don't allow non-text subviews
|
||||
}
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
#import "RCTMapAnnotation.h"
|
||||
#import "RCTMapOverlay.h"
|
||||
#import "RCTUtils.h"
|
||||
#import "UIView+React.h"
|
||||
|
||||
const CLLocationDegrees RCTMapDefaultSpan = 0.005;
|
||||
const NSTimeInterval RCTMapRegionChangeObserveInterval = 0.1;
|
||||
|
@ -49,7 +50,7 @@ const CGFloat RCTMapZoomBoundBuffer = 0.01;
|
|||
[_regionChangeObserveTimer invalidate];
|
||||
}
|
||||
|
||||
- (void)reactUpdateSubviews
|
||||
- (void)didUpdateReactSubviews
|
||||
{
|
||||
// Do nothing, as annotation views are managed by `setAnnotations:` method
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue