diff --git a/renderer/native/ios/renderer/component/modal/NativeRenderModalHostViewManager.mm b/renderer/native/ios/renderer/component/modal/NativeRenderModalHostViewManager.mm index 1edc7e129bc..222cd126dc3 100644 --- a/renderer/native/ios/renderer/component/modal/NativeRenderModalHostViewManager.mm +++ b/renderer/native/ios/renderer/component/modal/NativeRenderModalHostViewManager.mm @@ -33,6 +33,11 @@ @interface NativeRenderObjectModalHost : HippyShadowView @implementation NativeRenderObjectModalHost +- (void)insertHippySubview:(HippyShadowView *)subview atIndex:(NSInteger)atIndex{ + [super insertHippySubview:subview atIndex:atIndex]; + CGRect frame = { .origin = CGPointZero, .size = NativeRenderScreenSize() }; + [subview setLayoutFrame:frame]; +} - (void)setDomManager:(std::weak_ptr)domManager { [super setDomManager:domManager]; CGRect frame = { .origin = CGPointZero, .size = NativeRenderScreenSize() };