React-native-firebase: How to use logEvent(event, params) returns void;?

Created on 15 Mar 2018  路  5Comments  路  Source: invertase/react-native-firebase

I love this plugin.
However, there is no example.

Is there any example for Analytics?

All 5 comments

firebase.analytics().logEvent('Clicked Button', { foo: 'bar' });

Simple as that :)

@Ehesp how we can fetch errors? Is there a .catch() property?

@bemazo not at the moment, but we plan on making all methods that go across the bridge return promises at some point in the future.

firebase
.analytics()
.logEvent("HomeScreen", {
ec: "Screen Event",
ea: "madeeha" + "is on Home Screen",
el: "Home Screen",
ev: null
});

Here is my function and its not working

apparently the params do not reach Firebase ?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

joecaraccio picture joecaraccio  路  3Comments

alizahid picture alizahid  路  3Comments

jgfidelis picture jgfidelis  路  3Comments

callmejm picture callmejm  路  3Comments

NordlingDev picture NordlingDev  路  3Comments