mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Pass segment hash from JS to Java
Summary: Changelog: [Internal] Reviewed By: motiz88 Differential Revision: D24333057 fbshipit-source-id: cb65ae0c21a4b425ea8fd462e8a42910cf3f8507
This commit is contained in:
committed by
Facebook GitHub Bot
parent
1e9d7b70fc
commit
3ea899f3fb
@@ -20,10 +20,11 @@ export type GetSegmentFunction = typeof __getSegment;
|
||||
|
||||
function __fetchSegment(
|
||||
segmentId: number,
|
||||
options: {|
|
||||
+otaBuildNumber: ?string,
|
||||
+requestedModuleName?: ?string,
|
||||
|},
|
||||
options: $ReadOnly<{
|
||||
otaBuildNumber: ?string,
|
||||
requestedModuleName: string,
|
||||
segmentHash: string,
|
||||
}>,
|
||||
callback: (?Error) => void,
|
||||
) {
|
||||
const SegmentFetcher = require('./SegmentFetcher/NativeSegmentFetcher')
|
||||
@@ -53,10 +54,11 @@ global.__fetchSegment = __fetchSegment;
|
||||
|
||||
function __getSegment(
|
||||
segmentId: number,
|
||||
options: {|
|
||||
+otaBuildNumber: ?string,
|
||||
+requestedModuleName?: ?string,
|
||||
|},
|
||||
options: $ReadOnly<{
|
||||
otaBuildNumber: ?string,
|
||||
requestedModuleName: string,
|
||||
segmentHash: string,
|
||||
}>,
|
||||
callback: (?Error, ?string) => void,
|
||||
) {
|
||||
const SegmentFetcher = require('./SegmentFetcher/NativeSegmentFetcher')
|
||||
|
||||
Reference in New Issue
Block a user