(data: ProgressData)
| 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( |
nothing calls this directly
no test coverage detected