Disable default clipping in Fabric's SafeAreaView implementation
Summary: This behaviour diverges from the original SafeAreaView implementation and causes issues when you try to use SafeAreaView in non-root placements (not recommended) Changelog: [iOS][Internal] Reviewed By: sammy-SC Differential Revision: D39497303 fbshipit-source-id: 03bc288557f611bd4a8c16b3a6df8887e89ee9ec
This commit is contained in:
Родитель
2f6b2127d9
Коммит
d9f93d30e0
|
@ -24,7 +24,6 @@ using namespace facebook::react;
|
||||||
if (self = [super initWithFrame:frame]) {
|
if (self = [super initWithFrame:frame]) {
|
||||||
static auto const defaultProps = std::make_shared<SafeAreaViewProps const>();
|
static auto const defaultProps = std::make_shared<SafeAreaViewProps const>();
|
||||||
_props = defaultProps;
|
_props = defaultProps;
|
||||||
self.clipsToBounds = YES;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return self;
|
return self;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче