MCPcopy Create free account
hub / github.com/reactnativecn/react-native-update / wrapProgress

Method wrapProgress

src/client.ts:495–500  ·  view source on GitHub ↗
(data: ProgressData)

Source from the content-addressed store, hash-verified

493 const patchStartTime = Date.now();
494 if (onDownloadProgress) {
495 const wrapProgress = (data: ProgressData) => {
496 onDownloadProgress({
497 ...data,
498 progress: computeProgress(data.received, data.total),
499 });
500 };
501 // @ts-expect-error harmony not in existing platforms
502 if (Platform.OS === 'harmony') {
503 sharedState.progressHandlers[hash] = DeviceEventEmitter.addListener(

Callers

nothing calls this directly

Calls 1

computeProgressFunction · 0.90

Tested by

no test coverage detected