From 333602b9f2cc23c43ea75d5b74993e75c1d8a82a Mon Sep 17 00:00:00 2001 From: Alex Dvornikov Date: Fri, 27 Apr 2018 14:49:12 -0700 Subject: [PATCH] Introduce "Options" argument to "fetchSegment()" function Reviewed By: jeanlauliac Differential Revision: D7791186 fbshipit-source-id: e3954a525e6e3b02a48ac19f78cc3716969dd6bf --- Libraries/Core/InitializeCore.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Libraries/Core/InitializeCore.js b/Libraries/Core/InitializeCore.js index d739ab78231..2f10d5fc0e0 100644 --- a/Libraries/Core/InitializeCore.js +++ b/Libraries/Core/InitializeCore.js @@ -162,6 +162,7 @@ BatchedBridge.registerLazyCallableModule('JSDevSupportModule', () => require('JS global.__fetchSegment = function( segmentId: number, + options: {|+otaBuildNumber: ?string|}, callback: (?Error) => void, ) { const {SegmentFetcher} = require('NativeModules'); @@ -170,7 +171,7 @@ global.__fetchSegment = function( 'included as a NativeModule.'); } - SegmentFetcher.fetchSegment(segmentId, (errorObject: ?{message: string, code: string}) => { + SegmentFetcher.fetchSegment(segmentId, options, (errorObject: ?{message: string, code: string}) => { if (errorObject) { const error = new Error(errorObject.message); (error: any).code = errorObject.code;