Reactjs 带有React Native n.getElementsByTagName的FullStory不是函数

Reactjs 带有React Native n.getElementsByTagName的FullStory不是函数,reactjs,react-native,mobile,react-router,Reactjs,React Native,Mobile,React Router,视窗10 反应本机堆栈 “反应”:“16.8.3” “反应本机”:“ “react fullstory”:“^1.3.0” 我正试图逃跑 在我的react本机应用程序上访问fullstory.com,但使用它们的脚本或react库似乎有所帮助。我已经尝试了这段代码,并收到错误,fullstack无法工作。任何帮助都将不胜感激 代码: 不幸的是,这是因为Fullstory目前更倾向于在浏览器中运行的web应用程序中使用。由于React本机应用程序不在浏览器中运行,因此可以解释您收到的错误 尽管他们

视窗10

反应本机堆栈

“反应”:“16.8.3”

“反应本机”:“

“react fullstory”:“^1.3.0”

我正试图逃跑

在我的react本机应用程序上访问fullstory.com,但使用它们的脚本或react库似乎有所帮助。我已经尝试了这段代码,并收到错误,fullstack无法工作。任何帮助都将不胜感激

代码:


不幸的是,这是因为Fullstory目前更倾向于在浏览器中运行的web应用程序中使用。由于React本机应用程序不在浏览器中运行,因此可以解释您收到的错误

尽管他们的文档很难找到,但Fullstory确实支持本机移动应用程序:

有了本机移动支持,Fullstory似乎也在积极增加对React Native的支持

在其内部,有两个与React Native相关的存储库:


我的团队正在积极寻求将Fullstory添加到我们的React本机应用程序中,因此如果他们有任何发现,我很乐意与他们分享。

您解决了这个问题吗?我没有。事实证明,我尝试的大多数工具在ios和android上都无法正常工作。我很确定这就是我放弃这个选择的原因。谢谢。你选择了哪条路?我最终使用了logrocket,它对web非常有用,并且有一天可能会支持react native手机@亨德尔·萨赫利(HendEl Sahli)并没有继续完整的故事,而是在许多其他项目中使用了Logrocket。我不确定我是否会使用FullStory,除非它通过React和ReactNative支持。嘿@Sean。。。有用吗?嘿,对谁有用吗?
import FullStory from 'react-fullstory';
  public render() {
    return (
      <Fragment>
        <Routing
          // persistenceKey={navigationPersistenceKey}
          renderLoadingExperimental={() => <LoadingPage />}
        />
        <ToastMessage ref={this.toastRef} />
        <FullStory org={'My_Id'} debug={true} />
      </Fragment>
    );
  }
}
TypeError: n.getElementsByTagName is not a function. (In 'n.getElementsByTagName(t)',
'n.getElementsByTagName' is undefined)

This error is located at:
in FullStory (at App.tsx:90)
in AppWrapper (created by Connect(AppWrapper))
in Connect(AppWrapper) (at App.tsx:119)
in ThemeProvider (at App.tsx:118)
in Provider (at App.tsx:117)
in App (at withExpoRoot.js:20)
in RootErrorBoundary (at withExpoRoot.js:19)
in ExpoRootComponent (at renderApplication.js:35)
in RCTView (at View.js:45)
in View (at AppContainer.js:98)
in RCTView (at View.js:45)
in View (at AppContainer.js:115)
in AppContainer (at renderApplication.js:34)

node_modules\react-fullstory\dist\index.js:97:33 in
node_modules\react-fullstory\dist\index.js:282:24 in FullStory