1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-10-07 14:05:17 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

fix type error

This commit is contained in:
sunnylqm
2025-03-14 11:52:51 +08:00
parent cef2b41a64
commit a52d18dce2

View File

@@ -354,6 +354,7 @@ export class Pushy {
return; return;
} }
if (onDownloadProgress) { if (onDownloadProgress) {
// @ts-expect-error harmony not in existing platforms
if (Platform.OS === 'harmony') { if (Platform.OS === 'harmony') {
Pushy.progressHandlers[hash] = DeviceEventEmitter.addListener( Pushy.progressHandlers[hash] = DeviceEventEmitter.addListener(
'RCTPushyDownloadProgress', 'RCTPushyDownloadProgress',