RN Android: Keyboard does not close after editing a message

Description

GitHub issue: https://github.com/mattermost/mattermost-mobile/issues/4070

Lindy reproduced on Android 10, Huawei P30 Pro, v5.22 release branch, v1.30 build 277

Steps:
1. Post a message
2. Long press on the message you've just posted and select "Edit"
3. Edit the post and tap SAVE

Observed:
After 1) the keyboard remains open (but this may be expected since focus is still in the "Write to_" message input box?
After 3) the keyboard remains open when you return to the channel (this should not be expected as focus is no longer in the "Write to_" message input box)

QA Test Steps

1. Post a message.
2. Long press on the message you've just posted and select "Edit".
3. Tap on Cancel and ensure the screen closes and the keyboard is dismissed.
4. Long press on the message again and select "Edit".
5. Add enough text so that it is longer than what the server supports then tap Save. Ensure the loading spinner is displayed and when the server error is shown, the loading spinner is no longer displayed, the error is displayed, the keyboard is shown and focus is back on the text input.
6. Remove enough text so that it is shorter than what the server supports then tap Save. Ensure the screen closes, the keyboard is dismissed, and the post is edited to reflect the updated text.

Mana

None

Assignee

Unassigned

QA Assignee

None

Reporter

Lindy Isherwood

Epic Link

None

Fix versions

Mattermost Team

Mobile

Sprint

None

QA Testing Areas

None

GitHub Issue

None

Components

None

Severity

None
Configure