error run: Expected a type
plz help i got this error:

hi, any update on this issue? i'm experience similar thing too
I've got the same error running on M1 with reactnative 0.61.5 and Simulator Iphone 11.0
For anyone having this issue, just put this import:
#import <PushKit/PushKit.h>
inside this file located at RNVoipPushNotification pod files:
RNVoipPushNotificationManager.h
For anyone having this issue, just put this import:
#import <PushKit/PushKit.h>inside this file located at RNVoipPushNotification pod files:
RNVoipPushNotificationManager.h
To maintain this update on every pod install, add this code to podfile
**This should be inside post_install do |installer|**
find_and_replace("../node_modules/react-native-voip-push-notification/ios/RNVoipPushNotification/RNVoipPushNotificationManager.h",
"#import <React/RCTEventEmitter.h>",
"#import <React/RCTEventEmitter.h>
#import <PushKit/PushKit.h>
")
This should go in the final of podfile def find_and_replace(dir, findstr, replacestr) Dir[dir].each do |name| text = File.read(name) replace = text.gsub(findstr,replacestr) if text != replace puts "Fix: " + name File.open(name, "w") { |file| file.puts replace } STDOUT.flush end end Dir[dir + '*/'].each(&method(:find_and_replace)) end