src/components/Item.js
Function _checkForRemoval
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_checkForRemoval() {
this.state.pan.flattenOffset()
let x = this.state.pan.x._value
if (Math.abs(x) > 50) {
this.refs.wrapper.measure((ox, oy, width) => {