Skip to content

Commit 37bc6b2

Browse files
committed
end-of-scroll: Fixed end of scroll issue on iOS.
1 parent 2b28589 commit 37bc6b2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/RichTextEditor.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,7 @@ export default class RichTextEditor extends Component {
115115
const { marginTop = 0, marginBottom = 0 } = this.props.style;
116116
const spacing = marginTop + marginBottom + top + bottom;
117117

118-
const editorAvailableHeight =
119-
Dimensions.get('window').height - keyboardHeight - spacing;
118+
const editorAvailableHeight = Dimensions.get('window').height - keyboardHeight * 2 - spacing;
120119
this.setEditorHeight(editorAvailableHeight);
121120
}
122121

0 commit comments

Comments
 (0)