Use React's [immutability helpers](https://facebook.github.io/react/docs/update.html) for mutating nested state:

```
this.setState(this.state, {
  activeViewIndex: {$set: index},
  viewStack: {$push: [index]}
});
```