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 committed by Lorenzo Sciandra
parent 09e396002f
commit 5576b84d8a

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 },