mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-21 12:21:31 +03:00
Fixed android editor crash
This commit is contained in:
parent
8d970f1d1c
commit
499030369a
@ -199,7 +199,7 @@ export default class MarkdownEditorView extends Component {
|
|||||||
};
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { handleOpenImagePicker, intl, isPreviewActive, isReply } = this.props;
|
const { handleOpenImagePicker, intl, isPreviewActive, isReply, isLoading } = this.props;
|
||||||
const { text, selection } = this.state;
|
const { text, selection } = this.state;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -223,6 +223,7 @@ export default class MarkdownEditorView extends Component {
|
|||||||
underlineColorAndroid="transparent"
|
underlineColorAndroid="transparent"
|
||||||
value={text}
|
value={text}
|
||||||
innerRef={this.inputRef}
|
innerRef={this.inputRef}
|
||||||
|
editable={!isLoading}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
this._renderPreview()
|
this._renderPreview()
|
||||||
|
@ -236,6 +236,7 @@ class EditorScreen extends Component {
|
|||||||
uploadedImage={uploadedImage}
|
uploadedImage={uploadedImage}
|
||||||
initialFields={this._initialFields}
|
initialFields={this._initialFields}
|
||||||
isReply={isReply}
|
isReply={isReply}
|
||||||
|
isLoading={isPostSending || isUploading}
|
||||||
/>
|
/>
|
||||||
</PostForm>
|
</PostForm>
|
||||||
</View>
|
</View>
|
||||||
|
Loading…
Reference in New Issue
Block a user