In the spirit of README Driven Development, this is a work in progress that probably doesn't work yet.
This project is inspired by / cherry picked from react-navigation-controller
and backstack
npm install reactstack --save
- stack.popAll()
- stack.popView()
- stack.pushView()
- stack.replaceAll()
- stack.replaceView()
- viewChanging
- viewChanged
- viewActivate
- viewDeactivate
- viewsStack
- activeView
- defaultPushTransition
- defaultPopTransition
import React from 'react';
import { transitions, stack }, ReactStack from 'reactstack';
import Home from './components/Home';
const App = React.createClass({
render() {
const props = {
// The views to place in the stack
viewsStack: [
<Home />,
],
defaultPushTransition: transitions.SLIDE_LEFT,
defaultPopTransition: transitions.SLIDE_LEFT,
};
return (
<ReactStack { ...props }/>
);
}
};
export default App;