npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

react-native-qa-debugger

v0.5.2

Published

Debugger for QA to help you debug your app and reproducible issues

Downloads

51

Readme

react-native-qa-debugger

Debugger for QA to help you debug your app and reproducible issues.

debugger example

Installation

npm install react-native-qa-debugger

Usage

import { Debugger, logToDebugger } from 'react-native-qa-debugger';

// top level component

useEffect(() => {
  logToDebugger({
    label: 'App started',
    data: 'Hopefully without a crash',
  });
}, []);

<View style={styles.container}>
  {/* Main app component */}
  <Debugger getGlobalState={getGlobalState} />
</View>

Simple flow

  1. When required press or ask to press the button that you think will provide you desirable context
  2. *Retrieve the data to your device of choice, if required. Online services such as pastebin can help with that
  3. Paste the data to more readable environment such as browser console
  4. Debug

The flow

  1. Find open API to retrieve the data to. Such as webhook.site
  2. Use the url acquired, paste it to the "Send to" input and press the button
  3. Copy the data received from the request and go to github-pages made to help with visualizing and combing the data
  4. Paste the data and Debug

API Reference

<Debugger />

Main component that renders the debugger. Has to be mounted before logging any items

  • getGlobalState?: () => Promise<any> | any; - fn that returns the global state of the app for snapshots and logging. can be async
  • disableSnapshots?: boolean; - flag to disable snapshots (might be useful for performance)
  • sendToDefaultValue?: string; - preset input value for sending
  • hideSwitcher?: boolean; - flag to hide the default switcher in case you want to use your own
  • customSendRequest?: (text: string, debugItems: any[]) => void; - custom fn to send a request with debug items

logToDebugger(item)

Function to add item to debugger

  • label | title?: string; - label of the item
  • logType?: 'info' | 'success' | 'error' | 'warning'; - type of the item for coloring or the actual color code, fallbacks to 'info'
  • type?: string; - info text as metadata to be used later for filtering
  • data?: any; - actual data of the item

If no data provided the whole item will be considered as data field

toggleDebugger(toValue?: boolean)

Function to toggle debugger visibility, without toValue it toggles the flag

Extra utilities for customization

<DebuggerSwitcher />

Round button to toggle debugger visibility, for better custom positioning

useDebugItems() => [debugItems, logToDebugger]

Function to hook into debug items

getCompleteDebugItems(debugItems: any[]) => Promise<any[]>

Function to await snapshots of debug items

resetDebugItems()

Function to clear debugger

useShowDebugger() => [show, toggleDebugger]

Function to hook into current show state of the debugger