add import to clarify source of helper (#517)

* add import to clarify source of helper

It took me a while to figure out where 'addNavigationHelpers' comes from, maybe adding the import in the doc here will help the next guy.

* add spaces around imported value

* removed empty line
This commit is contained in:
Bartol Karuza
2017-03-01 13:18:08 +01:00
committed by Mike Grabowski
parent e44dee158f
commit 2df983516b

View File

@@ -5,6 +5,8 @@ To handle your app's navigation state in redux, you can pass your own `navigatio
With redux, your app's state is defined by a reducer. Each navigation router effectively has a reducer, called `getStateForAction`. The following is a minimal example of how you might use navigators within a redux application:
```
import { addNavigationHelpers } from 'react-navigation';
const AppNavigator = StackNavigator(AppRouteConfigs);
const navReducer = (state, action) => {