nosnia-audio-recorder 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -239,10 +239,6 @@ RCT_EXPORT_MODULE(NosniaAudioRecorder)
|
|
|
239
239
|
// Attempt to start recording
|
|
240
240
|
if (![_audioRecorder record]) {
|
|
241
241
|
NSString *errorMsg = @"Failed to start recording";
|
|
242
|
-
NSError *recErr = _audioRecorder.error;
|
|
243
|
-
if (recErr) {
|
|
244
|
-
errorMsg = [NSString stringWithFormat:@"%s (Error: %@)", errorMsg.UTF8String, recErr.description];
|
|
245
|
-
}
|
|
246
242
|
reject(@"START_RECORDING_ERROR", errorMsg, nil);
|
|
247
243
|
_audioRecorder = nil;
|
|
248
244
|
return;
|
|
@@ -374,7 +370,7 @@ RCT_EXPORT_MODULE(NosniaAudioRecorder)
|
|
|
374
370
|
|
|
375
371
|
// Safely stop recorder
|
|
376
372
|
if (_audioRecorder) {
|
|
377
|
-
if ([_audioRecorder isRecording]
|
|
373
|
+
if ([_audioRecorder isRecording]) {
|
|
378
374
|
[_audioRecorder stop];
|
|
379
375
|
}
|
|
380
376
|
_audioRecorder.delegate = nil;
|
|
@@ -509,3 +505,4 @@ RCT_EXPORT_MODULE(NosniaAudioRecorder)
|
|
|
509
505
|
}
|
|
510
506
|
|
|
511
507
|
@end
|
|
508
|
+
@end
|
package/package.json
CHANGED