|
@@ -81,9 +81,10 @@ export default class RichTextEditor extends Component {
|
81
|
81
|
setEditorAvailableHeightBasedOnKeyboardHeight(keyboardHeight) {
|
82
|
82
|
const {top = 0, bottom = 0} = this.props.contentInset;
|
83
|
83
|
const {marginTop = 0, marginBottom = 0} = this.props.style;
|
|
84
|
+ const {heightToScreenTop = 0} = this.props;
|
84
|
85
|
const spacing = marginTop + marginBottom + top + bottom;
|
85
|
86
|
|
86
|
|
- const editorAvailableHeight = Dimensions.get('window').height - keyboardHeight - spacing;
|
|
87
|
+ const editorAvailableHeight = Dimensions.get('window').height - keyboardHeight - spacing - heightToScreenTop;
|
87
|
88
|
this.setEditorHeight(editorAvailableHeight);
|
88
|
89
|
}
|
89
|
90
|
|