Save draft when post input unmounts (#4785)

This commit is contained in:
Elias Nahum 2020-09-09 12:03:07 -03:00 committed by GitHub
parent 7bd757ad15
commit b55e88d0fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,6 +74,8 @@ export default class PostInput extends PureComponent {
if (Platform.OS === 'android') {
Keyboard.removeListener('keyboardDidHide', this.handleAndroidKeyboard);
}
this.changeDraft(this.getValue());
}
blur = () => {