-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(analytics): Type defs #8363
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- potential for actual implementation on web just by hooking up web plumbing
- return value question
* @returns {string} | ||
*/ | ||
export function getGoogleAnalyticsClientId(analytics) { | ||
throw new Error('getGoogleAnalyticsClientId is web-only and not yet supported.'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for web we have an implementation already (I'm aware because I was in there semi-recently - it works...)
async _getCid() { |
if you haven't done it, running yarn tests:macos:pod:install && yarn tests:macos:build && yarn tests:macos:test-cover
runs the "web" version, and if you put an it.only
or describe.only
on any part of the e2e suite it'll run just those so it's fast to test+iterate
shame not to expose it since that might be half the work that went into the "other" platform analytics!
*/ | ||
export function getGoogleAnalyticsClientId(analytics) { | ||
throw new Error('getGoogleAnalyticsClientId is web-only and not yet supported.'); | ||
return analytics; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...but, @returns {string}
🤔 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was put there temporarily so the linter wouldn't get angry at me.
Description
Related issues
Release Summary
Checklist
Android
iOS
e2e
tests added or updated inpackages/\*\*/e2e
jest
tests added or updated inpackages/\*\*/__tests__
Test Plan
Think
react-native-firebase
is great? Please consider supporting the project with any of the below:React Native Firebase
andInvertase
on Twitter