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 2b28589 commit 37bc6b2Copy full SHA for 37bc6b2
src/RichTextEditor.js
@@ -115,8 +115,7 @@ export default class RichTextEditor extends Component {
115
const { marginTop = 0, marginBottom = 0 } = this.props.style;
116
const spacing = marginTop + marginBottom + top + bottom;
117
118
- const editorAvailableHeight =
119
- Dimensions.get('window').height - keyboardHeight - spacing;
+ const editorAvailableHeight = Dimensions.get('window').height - keyboardHeight * 2 - spacing;
120
this.setEditorHeight(editorAvailableHeight);
121
}
122
0 commit comments