Closed mikemonteith closed 7 years ago
@mikemonteith I'm getting warning
setScreenName:screenClass: must be called after a view controller has appeared
do you have this error?
Sorry, I haven't seen that warning. Are you trying to use the setScreenName method before the app has mounted?
Are you using NavigationExperimental?
Yes, but the setScreenName code was in a higher-level component. I call setScreenName(routeName)
when my navigation state changes.
@mikemonteith I think that there are an issue on android https://github.com/evollu/react-native-firebase-analytics/issues/36
+1
Just an FYI for anyone reading this pull request, there's an issue https://github.com/evollu/react-native-firebase-analytics/issues/48 regarding the setScreenName:screenClass: must be called after a view controller has appeared
error.
https://firebase.google.com/docs/reference/ios/firebaseanalytics/api/reference/Classes/FIRAnalytics#/c:objc(cs)FIRAnalytics(cm)setScreenName:screenClass:
Tested on iOS but not android.