From 490f22ae72ba43fa9364ce0f6c238744c07ac830 Mon Sep 17 00:00:00 2001 From: Peter Argany Date: Wed, 4 Apr 2018 16:43:37 -0700 Subject: [PATCH] Fix bug with safe area conformance Reviewed By: wwalser Differential Revision: D7507732 fbshipit-source-id: 10bf8d58c65f1353a3e62a27fc74c2dfd73ac2c4 --- Libraries/Text/TextInput/RCTInputAccessoryViewContent.m | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Libraries/Text/TextInput/RCTInputAccessoryViewContent.m b/Libraries/Text/TextInput/RCTInputAccessoryViewContent.m index 73ec648ad8e128..5a9f142c6108a5 100644 --- a/Libraries/Text/TextInput/RCTInputAccessoryViewContent.m +++ b/Libraries/Text/TextInput/RCTInputAccessoryViewContent.m @@ -27,18 +27,13 @@ - (void)didMoveToSuperview { #if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 110000 /* __IPHONE_11_0 */ - // Avoid the home pill (in portrait mode) and notch (in landscape mode) on iPhoneX. + // Avoid the home pill (in portrait mode) + // TODO: Support rotation, anchor to left and right without breaking frame x coordinate (T27974328). if (@available(iOS 11.0, *)) { if (self.window) { [_safeAreaContainer.bottomAnchor constraintLessThanOrEqualToSystemSpacingBelowAnchor:self.window.safeAreaLayoutGuide.bottomAnchor multiplier:1.0f].active = YES; - [_safeAreaContainer.leftAnchor - constraintGreaterThanOrEqualToSystemSpacingAfterAnchor:self.window.safeAreaLayoutGuide.leftAnchor - multiplier:1.0f].active = YES; - [_safeAreaContainer.rightAnchor - constraintLessThanOrEqualToSystemSpacingAfterAnchor:self.window.safeAreaLayoutGuide.rightAnchor - multiplier:1.0f].active = YES; } } #endif