Implement sendError for Android
This commit is contained in:
@@ -41,6 +41,15 @@ public class AppMetricaModule extends ReactContextBaseJavaModule {
|
||||
}
|
||||
}
|
||||
|
||||
@ReactMethod
|
||||
public void reportError(String message) {
|
||||
try {
|
||||
Integer.valueOf("00xffWr0ng");
|
||||
} catch (Throwable error) {
|
||||
YandexMetrica.reportError(message, error);
|
||||
}
|
||||
}
|
||||
|
||||
@ReactMethod
|
||||
public void reportEvent(String message, @Nullable ReadableMap params) {
|
||||
if (params != null) {
|
||||
|
||||
Reference in New Issue
Block a user