Skip to content

Instantly share code, notes, and snippets.

View bowd's full-sized avatar
always.

boqdan bowd

always.
View GitHub Profile
@bowd
bowd / index.jsx
Last active August 29, 2015 14:17 — forked from valer-cara/index.jsx
initiateTransition: function() {
// Set the state so that both screens
// will be rendered.
this.setState({
transitionStarted: true,
transitionDirection: this.state.activeScreen.get('stackIndex') > this.state.screensStackTop.get('stackIndex') ? "back" : "fwd"
});
// Schedule a cleanup so that we remove the
// previous screen after the transition occurs