Skip to content

Commit

Permalink
tests: fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielMSchmidt committed Mar 7, 2017
1 parent 5b99121 commit 9ff48d4
Showing 1 changed file with 23 additions and 21 deletions.
44 changes: 23 additions & 21 deletions src/DrawerLayout.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Component, PropTypes } from 'react';
import React, { Component, PropTypes } from 'react'; // eslint-disable-line no-unused-vars
import autobind from 'autobind-decorator';
import dismissKeyboard from 'react-native-dismiss-keyboard';
import {
Expand Down Expand Up @@ -180,31 +180,33 @@ export default class DrawerLayout extends Component {
@autobind openDrawer(options = {}) {
this._emitStateChanged(SETTLING);
Animated.spring(this.state.openValue, {
toValue: 1,
bounciness: 0,
restSpeedThreshold: 0.1,
...options,
}).start(() => {
if (this.props.onDrawerOpen) {
this.props.onDrawerOpen();
}
this._emitStateChanged(IDLE);
});
toValue: 1,
bounciness: 0,
restSpeedThreshold: 0.1,
...options,
})
.start(() => {
if (this.props.onDrawerOpen) {
this.props.onDrawerOpen();
}
this._emitStateChanged(IDLE);
});
}

@autobind closeDrawer(options = {}) {
this._emitStateChanged(SETTLING);
Animated.spring(this.state.openValue, {
toValue: 0,
bounciness: 0,
restSpeedThreshold: 1,
...options,
}).start(() => {
if (this.props.onDrawerClose) {
this.props.onDrawerClose();
}
this._emitStateChanged(IDLE);
});
toValue: 0,
bounciness: 0,
restSpeedThreshold: 1,
...options,
})
.start(() => {
if (this.props.onDrawerClose) {
this.props.onDrawerClose();
}
this._emitStateChanged(IDLE);
});
}

@autobind _handleDrawerOpen() {
Expand Down

0 comments on commit 9ff48d4

Please sign in to comment.