FullStory с React-Native n.getElementsByTagName не является функцией - PullRequest
0 голосов
/ 20 сентября 2019

Windows 10

Реактивно-собственный стек

"реагировать": "16.8.3",

"реагировать-нативно": "https://github.com/expo/react-native/archive/sdk-33.0.0.tar.gz",

"react-fullstory": "^ 1.3.0",

Я пытаюсь запустить https://www.npmjs.com/package/react-fullstory

с fullstory.com в моем приложении-реактиве, но используюпохоже, что их библиотеки сценариев и реагирования помогают. Я пробовал этот код и получил сообщение об ошибке, что полный стек не работает. Любая помощь будет принята с благодарностью.

Код:

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
...