mirror of
https://github.com/status-im/react-navigation.git
synced 2025-02-24 17:18:09 +00:00
Correct tiny typo (#20)
This commit is contained in:
parent
7441ecad05
commit
c9a69b48ee
@ -14,9 +14,9 @@ const appReducer = combineReducers({
|
||||
...
|
||||
});
|
||||
|
||||
@connect(state => {
|
||||
@connect(state => ({
|
||||
nav: state.nav,
|
||||
})
|
||||
}))
|
||||
class AppWithNavigationState extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
@ -43,4 +43,4 @@ class App extends React.Component {
|
||||
|
||||
Now, your navigation state is stored with redux, and you can fire navigation actions using redux.
|
||||
|
||||
When a navigator is given a `navigation` prop, it relinquishes control of the state. So you are now responsible for persisting state, handling deep linking, integrating the back button, etc.
|
||||
When a navigator is given a `navigation` prop, it relinquishes control of the state. So you are now responsible for persisting state, handling deep linking, integrating the back button, etc.
|
||||
|
Loading…
x
Reference in New Issue
Block a user