We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 322b242 commit 7199f39Copy full SHA for 7199f39
package/src/components/KeyboardCompatibleView/KeyboardCompatibleView.tsx
@@ -58,7 +58,12 @@ export class KeyboardCompatibleView extends React.Component<
58
59
_relativeKeyboardHeight(keyboardFrame: KeyboardMetrics) {
60
const frame = this._frame;
61
- if (!frame || !keyboardFrame) {
+ /**
62
+ * With iOS 14 & Reduce Motion > Prefer Cross-Fade Transitions enabled, the keyboard position
63
+ * height is reported differently (0 instead of Y position value) which caused the view to take full height
64
+ * of the screen.
65
+ */
66
+ if (!frame || !keyboardFrame || keyboardFrame.screenY === 0) {
67
return 0;
68
}
69
0 commit comments