Browse Source

Group router-usable navigation api.

Herby Vojčík 6 years ago
parent
commit
9bcdc4dc00
1 changed files with 8 additions and 6 deletions
  1. 8 6
      index.js

+ 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
     };
 };