[FIX] BackHandler remove random failing on development (#1423)
This commit is contained in:
parent
4bb0bfa7eb
commit
3d82cce004
|
@ -208,7 +208,9 @@ class RoomsListView extends React.Component {
|
|||
});
|
||||
this.willBlurListener = navigation.addListener('willBlur', () => {
|
||||
closeServerDropdown();
|
||||
this.backHandler.remove();
|
||||
if (this.backHandler && this.backHandler.remove) {
|
||||
this.backHandler.remove();
|
||||
}
|
||||
});
|
||||
console.timeEnd(`${ this.constructor.name } mount`);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue