2 Commits 9fefa596db ... 57850d50fc

Author SHA1 Message Date
  Herby Vojčík 57850d50fc 0.2.0 6 years ago
  Herby Vojčík 9bcdc4dc00 Group router-usable navigation api. 6 years ago
2 changed files with 9 additions and 7 deletions
  1. 8 6
      index.js
  2. 1 1
      package.json

+ 8 - 6
index.js

@@ -62,12 +62,14 @@ export default navigationStateKey => {
 
     return {
         backButtonHandler,
-        getNavigationState,
-        topOfNavigationStack,
-        resetRoutes,
-        isRoute,
-        isTopRoute,
-        goBackFrom,
+        api: {
+            getNavigationState,
+            topOfNavigationStack,
+            resetRoutes,
+            isRoute,
+            isTopRoute,
+            goBackFrom
+        },
         createConnectedNavigatorPieces
     };
 };

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "react-navigation-redux-sac",
-  "version": "0.1.0",
+  "version": "0.2.0",
   "description": "Wire `react-navigation` into redux state under specified key with help of `redux-sac`",
   "main": "index.js",
   "scripts": {