`[-RCTUIManager setFrame:forView:]` was replaced with `[-RCTUIManager setSize:forView:]`
Reviewed By: fkgozali Differential Revision: D4511712 fbshipit-source-id: 5c51d573bf638cb9b55d5f03b9f1882dc6129510
This commit is contained in:
parent
a57ddd5d72
commit
233015c93e
|
@ -411,7 +411,7 @@ RCT_NOT_IMPLEMENTED(-(instancetype)initWithCoder:(nonnull NSCoder *)aDecoder)
|
|||
{
|
||||
super.frame = frame;
|
||||
if (self.reactTag && _bridge.isValid) {
|
||||
[_bridge.uiManager setFrame:frame forView:self];
|
||||
[_bridge.uiManager setSize:frame.size forView:self];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithCoder:coder)
|
|||
- (void)notifyForBoundsChange:(CGRect)newBounds
|
||||
{
|
||||
if (_reactSubview && _isPresented) {
|
||||
[_bridge.uiManager setFrame:newBounds forView:_reactSubview];
|
||||
[_bridge.uiManager setSize:newBounds.size forView:_reactSubview];
|
||||
[self notifyForOrientationChange];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue