mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-24 12:35:39 +08:00
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:
committed by
Mike Grabowski
parent
e44dee158f
commit
2df983516b
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user