message: Adding Additional Check for document.addEventListener to Prevent Container Construction Failures
  Adding Additional Check for document.addEventListener to Prevent Container Construction Failures
  This is due to the container failing when addEventListener is not defined in non-browser contexts (e.g. React Native)
diff: @@ -647,8 +647,12 @@ export class Container extends EventEmitterWithErrorHandling<IContainerEvents> i
  this._deltaManager = this.createDeltaManager();
  + const isDomAvailable = typeof document === "object" &&
  + document !== null &&
  + typeof document.addEventListener === "function" &&
  + document.addEventListener !== null;
  // keep track of last time page was visible for telemetry
  - if (typeof document === "object" && document !== null) {
  + if (isDomAvailable) {
  this.lastVisible = document.hidden ? performance.now() : undefined;
  document.addEventListener("visibilitychange", () => {
  if (document.hidden) {
  