We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d82b05 commit cfa56bdCopy full SHA for cfa56bd
docs/analytics/usage/index.md
@@ -54,8 +54,8 @@ function App() {
54
<View>
55
<Button
56
title="Add To Basket"
57
- onPress={() =>
58
- analytics().logEvent('basket', {
+ onPress={async () =>
+ await analytics().logEvent('basket', {
59
id: 3745092,
60
item: 'mens grey t-shirt',
61
description: ['round neck', 'long sleeved'],
@@ -89,8 +89,8 @@ function App() {
89
title="Press me"
90
// Logs in the firebase analytics console as "select_content" event
91
// only accepts the two object properties which accept strings.
92
93
- analytics().logSelectContent({
+ await analytics().logSelectContent({
94
content_type: 'clothing',
95
item_id: 'abcd',
96
})
0 commit comments