Skip to content

Commit 0b3e88a

Browse files
drewvolzgitim
authored andcommitted
Remove duplicate check (#5)
There were two checks for (this.props.active !== nextProps.active).
1 parent 39646c2 commit 0b3e88a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

examples/Basic/index.ios.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,10 @@ class Row extends Component {
9191

9292
componentWillReceiveProps(nextProps) {
9393
if (this.props.active !== nextProps.active) {
94-
if (this.props.active !== nextProps.active) {
95-
if (nextProps.active) {
96-
this.startActivationAnimation();
97-
} else {
98-
this.startDeactivationAnimation();
99-
}
94+
if (nextProps.active) {
95+
this.startActivationAnimation();
96+
} else {
97+
this.startDeactivationAnimation();
10098
}
10199
}
102100
}

0 commit comments

Comments
 (0)