1.0.7 • Published 11 months ago

ui-bug-tracker v1.0.7

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

A comprehensive bug tracking tool tailored for React, ensuring that no UI bug goes unnoticed!

Development

  • Install Dependency
npm i ui-bug-tracker

Example Setup

React

import BugReporter from "ui-bug-tracker";

// pass server endpoint where you need to store the bug report
const report = new BugReporter("https://your-api-endpoint.com/report", window, {
  platform: "react",
  env: "PRODUCTION/DEVELOPMENT/STAGING",
});

// Set up the error listener when the script loads
const cleanupErrorListener = bugReporter.setupErrorListener();

const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
  <React.StrictMode>
    <App />
  </React.StrictMode>
);

// Clean up the error listener when the component unmounts
if (cleanupErrorListener) {
  window.addEventListener("beforeunload", cleanupErrorListener);
}

React Native

import BugReporter from "ui-bug-tracker";

// pass server endpoint where you need to store the bug report
const bugReporter = new BugReporter(
  "https://your-api-endpoint.com/report",
  ErrorUtils,
  {
    platform: "react-native",
    env: "PRODUCTION/DEVELOPMENT/STAGING",
  }
);

// Set up the error listener when the script loads
bugReporter.setupErrorListener();

AppRegistry.registerComponent(appName, () => App);
1.0.2

11 months ago

1.0.7

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.1

2 years ago

1.0.0

2 years ago