NSLog(@"Either an error occured fetching the user's weight information or none has been stored yet. In your app, try to handle this gracefully.");
callback(@[RCTMakeError(@"Either an error occured fetching the user's weight information or none has been stored yet. In your app, try to handle this gracefully.",nil,nil)]);
...
...
@@ -50,7 +51,6 @@
NSLog(@"An error occured saving the weight sample %@. In your app, try to handle this gracefully. The error was: %@.",weightSample,error);
callback(@[RCTMakeError(@"An error occured saving the weight sample",nil,nil)]);
return;
// abort();
}
callback(@[[NSNullnull],@(weight)]);
}];
...
...
@@ -62,7 +62,7 @@
// Query to get the user's latest BMI, if it exists.
NSLog(@"Either an error occured fetching the user's bmi information or none has been stored yet. In your app, try to handle this gracefully.");
callback(@[RCTMakeError(@"Either an error occured fetching the user's bmi information or none has been stored yet. In your app, try to handle this gracefully.",nil,nil)]);