From 1673e00e2ba3c5a1f2517df1df8da2d6d6972c84 Mon Sep 17 00:00:00 2001 From: Naman Goel Date: Mon, 16 May 2016 07:47:56 -0700 Subject: [PATCH] correct flow types Summary: The function should have optional arguments, but not nullable types. Closes https://github.com/facebook/react-native/pull/7580 Differential Revision: D3304994 Pulled By: davidaurelio fbshipit-source-id: 9918817429126ea16dd3076b61a3493c3a3a8388 --- .../Navigator/Navigation/NavigationRouteStack.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/CustomComponents/Navigator/Navigation/NavigationRouteStack.js b/Libraries/CustomComponents/Navigator/Navigation/NavigationRouteStack.js index fd0d93222..486285177 100644 --- a/Libraries/CustomComponents/Navigator/Navigation/NavigationRouteStack.js +++ b/Libraries/CustomComponents/Navigator/Navigation/NavigationRouteStack.js @@ -117,7 +117,7 @@ class RouteStack { return this._routeNodes.findIndex(finder, this); } - slice(begin: ?number, end: ?number): RouteStack { + slice(begin?: number, end?: number): RouteStack { var routeNodes = this._routeNodes.slice(begin, end); var index = Math.min(this._index, routeNodes.size - 1); return this._update(index, routeNodes);