Fix iOS pop gesture and open sidemenu gesture (#511)
This commit is contained in:
parent
6dde0f2432
commit
29b74133d4
|
@ -55,6 +55,9 @@ export default class ProfileView extends LoggedView {
|
|||
sideMenu: {
|
||||
left: {
|
||||
enabled: true
|
||||
},
|
||||
right: {
|
||||
enabled: true
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import {
|
||||
Text, View, LayoutAnimation, ActivityIndicator
|
||||
Text, View, LayoutAnimation, ActivityIndicator, Platform
|
||||
} from 'react-native';
|
||||
import { connect, Provider } from 'react-redux';
|
||||
import { RectButton } from 'react-native-gesture-handler';
|
||||
|
@ -188,7 +188,9 @@ export default class RoomView extends LoggedView {
|
|||
};
|
||||
|
||||
internalSetState = (...args) => {
|
||||
LayoutAnimation.easeInEaseOut();
|
||||
if (Platform.OS === 'ios') {
|
||||
LayoutAnimation.easeInEaseOut();
|
||||
}
|
||||
this.setState(...args);
|
||||
}
|
||||
|
||||
|
|
|
@ -86,6 +86,9 @@ export default class RoomsListView extends LoggedView {
|
|||
sideMenu: {
|
||||
left: {
|
||||
enabled: true
|
||||
},
|
||||
right: {
|
||||
enabled: true
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -214,7 +217,9 @@ export default class RoomsListView extends LoggedView {
|
|||
}
|
||||
|
||||
internalSetState = (...args) => {
|
||||
LayoutAnimation.easeInEaseOut();
|
||||
if (Platform.OS === 'ios') {
|
||||
LayoutAnimation.easeInEaseOut();
|
||||
}
|
||||
this.setState(...args);
|
||||
}
|
||||
|
||||
|
|
|
@ -42,6 +42,9 @@ export default class SettingsView extends LoggedView {
|
|||
sideMenu: {
|
||||
left: {
|
||||
enabled: true
|
||||
},
|
||||
right: {
|
||||
enabled: true
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue