unblocked editor while images upload in background

This commit is contained in:
Nouman Tahir 2021-04-04 01:51:00 +05:00
parent 39032ba74b
commit 032e6f74a8
2 changed files with 4 additions and 2 deletions

View File

@ -52,6 +52,7 @@ const MarkdownEditorView = ({
isPreviewActive, isPreviewActive,
isReply, isReply,
isLoading, isLoading,
isUploading,
initialFields, initialFields,
onChange, onChange,
handleOnTextChange, handleOnTextChange,
@ -399,7 +400,7 @@ const MarkdownEditorView = ({
handleOnUploadPress={() => { handleOnUploadPress={() => {
galleryRef.current.show(); galleryRef.current.show();
}} }}
isUploading={isLoading} isUploading={isUploading}
uploadedImage={uploadedImage} uploadedImage={uploadedImage}
/> />

View File

@ -362,7 +362,8 @@ class EditorScreen extends Component {
uploadedImage={uploadedImage} uploadedImage={uploadedImage}
initialFields={this._initialFields} initialFields={this._initialFields}
isReply={isReply} isReply={isReply}
isLoading={isPostSending || isUploading} isLoading={isPostSending}
isUploading={isUploading}
isEdit={isEdit} isEdit={isEdit}
post={post} post={post}
fields={fields} fields={fields}