Skip to content

[v3] setUserId incorrect method name in iOS #194

Closed
@Paul-Todd

Description

@Paul-Todd

When calling setUser in analytics in iOS this references the native side method as "setUserId" instead of "setUser". If you attempt to call setUser in javascript this will reject the promise with an error.

This is in file react-native-firestack/lib/modules/analytics.js:34

Currently is:
setUser(id, properties={}) {
return promisify('setUserId', FirestackAnalytics)(id, properties);
}

Should be:
setUser(id, properties={}) {
return promisify('setUser', FirestackAnalytics)(id, properties);
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions