From f0a598b24fc4e726ff82c09996e860e5f278625e Mon Sep 17 00:00:00 2001 From: Sibelius Seraphini Date: Tue, 7 Nov 2017 08:15:23 -0200 Subject: [PATCH 1/2] fix recursive function to play well with metro bundler, fix facebook/react-native#16689 --- src/ExNavigationRouter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ExNavigationRouter.js b/src/ExNavigationRouter.js index 1eb9625..18c7021 100644 --- a/src/ExNavigationRouter.js +++ b/src/ExNavigationRouter.js @@ -334,7 +334,7 @@ export function createRouter( return new ExNavigationRouter(routesCreator, options); } -function _isSerializable(obj: Object): boolean { +const _isSerializable = (obj: Object) => boolean { if ( _.isUndefined(obj) || _.isNull(obj) || From cb5211552b29e660d7374e5057dc40ad4146eeb5 Mon Sep 17 00:00:00 2001 From: Sibelius Seraphini Date: Tue, 7 Nov 2017 08:25:45 -0200 Subject: [PATCH 2/2] small fix --- src/ExNavigationRouter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ExNavigationRouter.js b/src/ExNavigationRouter.js index 18c7021..9ca01d0 100644 --- a/src/ExNavigationRouter.js +++ b/src/ExNavigationRouter.js @@ -334,7 +334,7 @@ export function createRouter( return new ExNavigationRouter(routesCreator, options); } -const _isSerializable = (obj: Object) => boolean { +const _isSerializable = (obj) => { if ( _.isUndefined(obj) || _.isNull(obj) || @@ -356,4 +356,4 @@ const _isSerializable = (obj: Object) => boolean { } return true; -} +};