This commit is contained in:
Andrey Bondarenko 2021-02-16 14:53:17 +10:00
parent 35de516c53
commit 1c20bd5a97
2 changed files with 3 additions and 2 deletions

View File

@ -56,7 +56,8 @@ public class AppMetricaModule extends ReactContextBaseJavaModule {
@ReactMethod @ReactMethod
public void initPush() { public void initPush() {
// YandexMetricaPush.init(reactContext); // YandexMetricaPush.init(reactContext);
getReactApplicationContext(), new FirebasePushServiceControllerProvider(getReactApplicationContext()) YandexMetricaPush.init(getReactApplicationContext(),
new FirebasePushServiceControllerProvider(getReactApplicationContext()));
} }
@ReactMethod @ReactMethod

View File

@ -1,7 +1,7 @@
{ {
"name": "react-native-appmetrica-next", "name": "react-native-appmetrica-next",
"title": "Yandex AppMetrica React Native Plugin && AppMetricaPushSDK (fireBase CloudMessage)", "title": "Yandex AppMetrica React Native Plugin && AppMetricaPushSDK (fireBase CloudMessage)",
"version": "1.0.11", "version": "1.0.12",
"description": "React Native plugin for AppMetrica analytics tool", "description": "React Native plugin for AppMetrica analytics tool",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {