Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/analytics/usage/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ function App() {
<View>
<Button
title="Add To Basket"
onPress={() =>
analytics().logEvent('basket', {
onPress={async () =>
await analytics().logEvent('basket', {
id: 3745092,
item: 'mens grey t-shirt',
description: ['round neck', 'long sleeved'],
Expand Down Expand Up @@ -89,8 +89,8 @@ function App() {
title="Press me"
// Logs in the firebase analytics console as "select_content" event
// only accepts the two object properties which accept strings.
onPress={() =>
analytics().logSelectContent({
onPress={async () =>
await analytics().logSelectContent({
content_type: 'clothing',
item_id: 'abcd',
})
Expand Down