I used useAnalytics with reactfire 3.x.
But when I upgraded to reactfire 4.x, useAnalytics has no exported from reactfire.
reactfire 4.x obsoleted useAnalytics module, or have alternative way of useAnalytics module. I could not find the mention of useAnalytics.
Temporary workaround: to make your own
useAnalytics
hook, use Firebase'sgetAnalytics
with ReactFire'suseFirebaseApp
: