Unverified Commit 5d4e8209 authored by Djorkaeff Alexandre's avatar Djorkaeff Alexandre Committed by GitHub
Browse files

[FIX] Empty space on Messagebox (#2704)



Co-authored-by: default avatarDiego Mello <diegolmello@gmail.com>
parent f5b9dc6f
import React, { Component } from 'react'; import React, { Component } from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import { import {
View, Alert, Keyboard, NativeModules, Text View, Alert, Keyboard, NativeModules, Text, InteractionManager
} from 'react-native'; } from 'react-native';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { KeyboardAccessoryView } from 'react-native-ui-lib/keyboard'; import { KeyboardAccessoryView } from 'react-native-ui-lib/keyboard';
...@@ -222,9 +222,14 @@ class MessageBox extends Component { ...@@ -222,9 +222,14 @@ class MessageBox extends Component {
} }
this.unsubscribeFocus = navigation.addListener('focus', () => { this.unsubscribeFocus = navigation.addListener('focus', () => {
if (this.tracking && this.tracking.resetTracking) { // didFocus
this.tracking.resetTracking(); // We should wait pushed views be dismissed
} InteractionManager.runAfterInteractions(() => {
if (this.tracking && this.tracking.resetTracking) {
// Reset messageBox keyboard tracking
this.tracking.resetTracking();
}
});
}); });
this.unsubscribeBlur = navigation.addListener('blur', () => { this.unsubscribeBlur = navigation.addListener('blur', () => {
this.component?.blur(); this.component?.blur();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment