From 980ff1cd542e4f2a2e6ebcf1e477a8debe5a7b72 Mon Sep 17 00:00:00 2001 From: "Mark J. Lehman" Date: Sun, 22 Jul 2018 07:31:15 -0700 Subject: [PATCH 1/2] Link to docs and example app in README (#3135) --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7b03f9e7c..00cc0b262 100644 --- a/README.md +++ b/README.md @@ -43,8 +43,11 @@ Actions.pop() Actions.refresh({param1: 'hello', param2: 'world'}) ``` +## API -## Try the example app +For a full listing of the API, [view the API docs](https://github.com/aksonov/react-native-router-flux/blob/master/docs/API.md). + +## Try the [example app](https://github.com/aksonov/react-native-router-flux/tree/master/Example) ![rnrf](https://user-images.githubusercontent.com/3681859/27937441-ef61d932-626b-11e7-885f-1db7dc74b32e.gif) From 335c04c2a888d10f1a782a55dbbc231d2e8678bc Mon Sep 17 00:00:00 2001 From: "Davis Z. Cabral" Date: Thu, 26 Jul 2018 07:20:38 -0300 Subject: [PATCH 2/2] Navigation and replace restored --- src/navigationStore.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/navigationStore.js b/src/navigationStore.js index 0db74600a..837561200 100644 --- a/src/navigationStore.js +++ b/src/navigationStore.js @@ -827,12 +827,12 @@ class NavigationStore { push = (routeName, data) => { const params = filterParam(data); - this.dispatch({ type: NavigationActions.NAVIGATE, routeName, params }); + this.dispatch(StackActions.push({ routeName, params })); }; jump = (routeName, data) => { const params = filterParam(data); - this.dispatch({ type: NavigationActions.NAVIGATE, routeName, params }); + this.dispatch(NavigationActions.navigate({ routeName, params })); }; drawerOpen = () => { @@ -878,7 +878,9 @@ class NavigationStore { replace = (routeName, data) => { const params = filterParam(data); - this.dispatch({ type: ActionConst.REPLACE, routeName, params }); + this.dispatch( + StackActions.replace({ routeName, params }), + ); }; reset = (routeName, data) => {