From 9ff48d482ffd979949bf0ce28a168067ac4fc900 Mon Sep 17 00:00:00 2001 From: Daniel Schmidt Date: Tue, 7 Mar 2017 21:33:03 +0100 Subject: [PATCH] tests: fix linting error --- src/DrawerLayout.js | 44 +++++++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/src/DrawerLayout.js b/src/DrawerLayout.js index 0af7734..341b924 100644 --- a/src/DrawerLayout.js +++ b/src/DrawerLayout.js @@ -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 { @@ -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() {