Skip to content

Commit 490f22a

Browse files
Peter Arganyfacebook-github-bot
Peter Argany
authored andcommitted
Fix bug with <InputAccessoryView> safe area conformance
Reviewed By: wwalser Differential Revision: D7507732 fbshipit-source-id: 10bf8d58c65f1353a3e62a27fc74c2dfd73ac2c4
1 parent e574b85 commit 490f22a

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Libraries/Text/TextInput/RCTInputAccessoryViewContent.m

+2-7
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,13 @@ - (void)didMoveToSuperview
2727
{
2828

2929
#if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 110000 /* __IPHONE_11_0 */
30-
// Avoid the home pill (in portrait mode) and notch (in landscape mode) on iPhoneX.
30+
// Avoid the home pill (in portrait mode)
31+
// TODO: Support rotation, anchor to left and right without breaking frame x coordinate (T27974328).
3132
if (@available(iOS 11.0, *)) {
3233
if (self.window) {
3334
[_safeAreaContainer.bottomAnchor
3435
constraintLessThanOrEqualToSystemSpacingBelowAnchor:self.window.safeAreaLayoutGuide.bottomAnchor
3536
multiplier:1.0f].active = YES;
36-
[_safeAreaContainer.leftAnchor
37-
constraintGreaterThanOrEqualToSystemSpacingAfterAnchor:self.window.safeAreaLayoutGuide.leftAnchor
38-
multiplier:1.0f].active = YES;
39-
[_safeAreaContainer.rightAnchor
40-
constraintLessThanOrEqualToSystemSpacingAfterAnchor:self.window.safeAreaLayoutGuide.rightAnchor
41-
multiplier:1.0f].active = YES;
4237
}
4338
}
4439
#endif

0 commit comments

Comments
 (0)