AN

Analytics

@react-native-firebase/analytics

React Native Firebase - The analytics module provides out of the box support with Google Analytics for Firebase. Integration with the Android & iOS allows for in-depth analytical insight reporting, such as device information, location, user actions and mo

React Native Libraries
react
react-native
firebase
analytics
@react-native-firebase/analytics
React Native Libraries
javascript
npm
frontend
open source
Stars
12k
Weekly
750k
Open issues
39
Bundle
~25 kB

Installation

npm install @react-native-firebase/analytics

Code example

import { View, Text, StyleSheet } from "react-native";
import { Analytics } from "@react-native-firebase/analytics";

export function Example() {
  return (
    <View style={styles.box}>
      <Text style={styles.title}>Analytics</Text>
      <Analytics />
    </View>
  );
}

const styles = StyleSheet.create({
  box: { flex: 1, alignItems: "center", justifyContent: "center", gap: 8 },
  title: { fontSize: 18, fontWeight: "600" },
});

Pros & cons

Pros

  • Actively maintained by Invertase
  • 750k weekly downloads. Battle tested
  • First-class TypeScript definitions
  • Apache-2.0 licensed

Considerations

  • Adds roughly ~25 kB to your bundle
  • Needs client-only rendering in SSR frameworks
  • 39 open issues on GitHub

FAQs

Alternatives & similar libraries