mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-10-07 12:35:14 +08:00
fix type error
This commit is contained in:
@@ -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',
|
||||||
|
Reference in New Issue
Block a user