@@ -493,9 +493,9 @@ - (void)_checkCameraPermission
493493 reject:(RCTPromiseRejectBlock)reject)
494494{
495495 BOOL wiredHeadsetPluggedIn = [self isWiredHeadsetPluggedIn ];
496- resolve (@[@ {
496+ resolve (@{
497497 @" isWiredHeadsetPluggedIn" : wiredHeadsetPluggedIn ? @YES : @NO ,
498- }] );
498+ });
499499}
500500
501501- (void )updateAudioRoute
@@ -730,7 +730,7 @@ - (void)startProximitySensor
730730 if (state != _proximityIsNear) {
731731 NSLog (@" RNInCallManager.UIDeviceProximityStateDidChangeNotification(): isNear: %@ " , state ? @" YES" : @" NO" );
732732 _proximityIsNear = state;
733- [self sendEventWithName: @" Proximity" body: @[@ {@" isNear" : state ? @YES : @NO }] ];
733+ [self sendEventWithName: @" Proximity" body: @{@" isNear" : state ? @YES : @NO }];
734734 }
735735 }];
736736
@@ -857,30 +857,30 @@ - (void)startAudioSessionRouteChangeNotification
857857 if ([self checkAudioRoute: @[AVAudioSessionPortHeadsetMic]
858858 routeType: @" input" ]) {
859859 [self sendEventWithName: @" WiredHeadset"
860- body: @[@ {
860+ body: @{
861861 @" isPlugged" : @YES ,
862862 @" hasMic" : @YES ,
863863 @" deviceName" : AVAudioSessionPortHeadsetMic,
864- }]] ;
864+ }];
865865 } else if ([self checkAudioRoute: @[AVAudioSessionPortHeadphones]
866866 routeType: @" output" ]) {
867867 [self sendEventWithName: @" WiredHeadset"
868- body: @[@ {
868+ body: @{
869869 @" isPlugged" : @YES ,
870870 @" hasMic" : @NO ,
871871 @" deviceName" : AVAudioSessionPortHeadphones,
872- }]] ;
872+ }];
873873 }
874874 break ;
875875 case AVAudioSessionRouteChangeReasonOldDeviceUnavailable:
876876 NSLog (@" RNInCallManager.AudioRouteChange.Reason: OldDeviceUnavailable" );
877877 if (![self isWiredHeadsetPluggedIn ]) {
878878 [self sendEventWithName: @" WiredHeadset"
879- body: @[@ {
879+ body: @{
880880 @" isPlugged" : @NO ,
881881 @" hasMic" : @NO ,
882882 @" deviceName" : @" " ,
883- }]] ;
883+ }];
884884 }
885885 break ;
886886 case AVAudioSessionRouteChangeReasonCategoryChange:
0 commit comments