evollu / react-native-firebase-analytics

React native bridge for firebase analytics
MIT License
206 stars 54 forks source link

installation error because of setScreenName #39

Open bitcoinvsalts opened 7 years ago

bitcoinvsalts commented 7 years ago

When compiling the app with xcode I get this error:

/Users/herve76/Desktop/Fishii/node_modules/react-native-firebase-analytics/ios/RNFIRAnalytics.m:42:17: No known class method for selector 'setScreenName:screenClass:'

and with android:

:react-native-firebase-analytics:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
/Users/herve76/Desktop/Fishii/node_modules/react-native-firebase-analytics/android/src/main/java/com/evollu/react/fa/FIRAnalyticsModule.java:50: error: cannot find symbol
            FirebaseAnalytics.getInstance(getReactApplicationContext()).setCurrentScreen(currentActivity, name, null);
                                                                       ^
  symbol:   method setCurrentScreen(Activity,String,<null>)
  location: class FirebaseAnalytics
1 error
:react-native-firebase-analytics:compileReleaseJavaWithJavac FAILED

I really want to use this package. Can someone help me find a solution to this issue please?

bitcoinvsalts commented 7 years ago

FYI I am able to run this package if I comment all the setscreen references.

flobiwankenobi commented 7 years ago

Same here. Running react-native 0.39.2.

IjzerenHein commented 7 years ago

You need to update your pods. Run pod update in the ios folder