Implement sendError for Android
This commit is contained in:
@@ -22,8 +22,8 @@ RCT_EXPORT_METHOD(reportEvent:(NSString *)message parameters:(nullable NSDiction
|
||||
[YMMYandexMetrica reportEvent:message parameters:params onFailure:NULL];
|
||||
}
|
||||
|
||||
RCT_EXPORT_METHOD(reportError:(NSString *)message reason:(NSString *)reason) {
|
||||
NSException *exception = [[NSException alloc] initWithName:message reason:reason userInfo:nil];
|
||||
RCT_EXPORT_METHOD(reportError:(NSString *)message) {
|
||||
NSException *exception = [[NSException alloc] initWithName:message reason:nil userInfo:nil];
|
||||
[YMMYandexMetrica reportError:message exception:exception onFailure:NULL];
|
||||
}
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user