From c5b582a74150ba14dee0fab810d64aee7bc195ea Mon Sep 17 00:00:00 2001 From: Eric Vicenti Date: Tue, 6 Feb 2018 12:59:16 -0800 Subject: [PATCH] StackNavigator Replace Action (#3440) * Navigation replace action The long awaited action to replace the a route in StackNavigator * Fix flow maybe --- .../NavigationPlayground/js/SimpleStack.js | 9 +- flow/react-navigation.js | 85 ++++++++++++++----- src/NavigationActions.js | 12 +++ src/addNavigationHelpers.js | 10 +++ .../__snapshots__/StackNavigator-test.js.snap | 2 + src/routers/StackRouter.js | 28 +++++- src/routers/__tests__/StackRouter-test.js | 22 +++++ .../__snapshots__/TabView-test.js.snap | 1 + 8 files changed, 138 insertions(+), 31 deletions(-) diff --git a/examples/NavigationPlayground/js/SimpleStack.js b/examples/NavigationPlayground/js/SimpleStack.js index 3606b9ac15..f392f67cbd 100644 --- a/examples/NavigationPlayground/js/SimpleStack.js +++ b/examples/NavigationPlayground/js/SimpleStack.js @@ -32,13 +32,8 @@ class MyNavScreen extends React.Component { title="Go to a photos screen" />