diff --git a/Libraries/Core/InitializeCore.js b/Libraries/Core/InitializeCore.js index d739ab782..2f10d5fc0 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;