From 5576b84d8a7f20fae1bb14a1b366cccbb42bb169 Mon Sep 17 00:00:00 2001 From: Chid Gilovitz Date: Sat, 14 Oct 2017 19:31:46 +0800 Subject: [PATCH] Update Routers.md (#2750) Added import line to code example. --- docs/api/routers/Routers.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/api/routers/Routers.md b/docs/api/routers/Routers.md index 89f44811..accc5bb6 100644 --- a/docs/api/routers/Routers.md +++ b/docs/api/routers/Routers.md @@ -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 },