是否可以将 Google Firebase Analytics 集成到 React Native Expo 应用程序中?

问题描述 投票:0回答:0

我想将

Google Firebase Analytics
集成到我的 React Native Expo 应用程序中, 最好但不限于使用
react-native-firebase
库。

我正在尝试将这样的插件配置添加到我的

app.json
文件中:

...
    "plugins": [
      "@react-native-firebase/app",
      "@react-native-firebase/perf",
      "@react-native-firebase/crashlytics",
      "@react-native-firebase/analytics"
    ]
...

npx expo install @react-native-firebase/analytics
之后我收到这条消息:
Skipping config plugin check: Package "@react-native-firebase/analytics" does not contain a valid config plugin
.

react-native-firebase
文档中,我找到了以下信息:

并非所有 React Native Firebase 包都提供了 Expo 配置插件。您可以通过检查模块是否在其包目录中包含 app.plugin.js 文件来查看模块是否受支持。

这适用于分析包。

还有其他方法可以实现吗?

react-native expo firebase-analytics react-native-firebase
© www.soinside.com 2019 - 2024. All rights reserved.