From ed923edd2589afd09b5301fc61383f75626eb361 Mon Sep 17 00:00:00 2001 From: Koen Punt Date: Fri, 23 Jun 2017 05:30:12 +0200 Subject: [PATCH] allow empty path to be matched (#1811) previously when opening a deeplink without a path, it would result in an array of 2 empty strings, which is are falsy values, so the full url was passed on. by checking if the value is actually `undefined` instead of falsy we have no more false positives --- packages/react-navigation/src/createNavigationContainer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-navigation/src/createNavigationContainer.js b/packages/react-navigation/src/createNavigationContainer.js index dd4a8f08..2aefb6a7 100644 --- a/packages/react-navigation/src/createNavigationContainer.js +++ b/packages/react-navigation/src/createNavigationContainer.js @@ -92,7 +92,7 @@ export default function createNavigationContainer( const params = {}; const delimiter = this.props.uriPrefix || '://'; let path = url.split(delimiter)[1]; - if (!path) { + if (typeof path === 'undefined') { path = url; } return {