Update Routers.md (#2750)

Added import line to code example.
This commit is contained in:
Chid Gilovitz
2017-10-14 19:31:46 +08:00
parent edf8ce8d6e
commit cb9e05a841

View File

@@ -65,6 +65,8 @@ MyApp.router.getStateForAction = (action, state) => {
Sometimes you may want to prevent some navigation activity, depending on your route.
```js
import { NavigationActions } from 'react-navigation'
const MyStackRouter = StackRouter({
Home: { screen: HomeScreen },
Profile: { screen: ProfileScreen },