Fix iOS pop gesture and open sidemenu gesture (#511)

This commit is contained in:
Diego Mello 2018-10-29 10:54:23 -03:00 committed by GitHub
parent 6dde0f2432
commit 29b74133d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 3 deletions

View File

@ -55,6 +55,9 @@ export default class ProfileView extends LoggedView {
sideMenu: {
left: {
enabled: true
},
right: {
enabled: true
}
}
};

View File

@ -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) => {
if (Platform.OS === 'ios') {
LayoutAnimation.easeInEaseOut();
}
this.setState(...args);
}

View File

@ -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) => {
if (Platform.OS === 'ios') {
LayoutAnimation.easeInEaseOut();
}
this.setState(...args);
}

View File

@ -42,6 +42,9 @@ export default class SettingsView extends LoggedView {
sideMenu: {
left: {
enabled: true
},
right: {
enabled: true
}
}
};