Use native transition on drawyerLayout component (#2278)

This commit is contained in:
Sudheer 2018-10-19 01:56:29 +05:30 committed by GitHub
parent 78e5b99884
commit 7a65d83894
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -382,6 +382,7 @@ export default class ChannelSidebar extends Component {
onDrawerClose={this.handleDrawerClose}
onDrawerOpen={this.handleDrawerOpen}
drawerWidth={deviceWidth - openDrawerOffset}
useNativeAnimations={true}
>
{children}
</DrawerLayout>

View file

@ -358,6 +358,7 @@ export default class SettingsDrawer extends PureComponent {
onDrawerOpen={this.handleDrawerOpen}
drawerPosition='right'
drawerWidth={deviceWidth - DRAWER_INITIAL_OFFSET}
useNativeAnimations={true}
>
{children}
</DrawerLayout>