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-assistive-tool

v0.1.15

Published

dev tool

Readme

react-native-assistive-tool

npm version npm downloads license platform

A beautiful and powerful debugging tool for React Native apps 🚀

A floating assistive touch button that provides easy access to network logs, storage viewer, navigation state, and Redux store - all in one beautiful, modern UI.

✨ Features

  • 🎯 Beautiful Modern UI - Clean, intuitive interface with smooth animations
  • 📡 Network Logger - Monitor all HTTP/HTTPS requests and responses
  • 💾 AsyncStorage Viewer - View and manage your app's local storage
  • 🧭 Navigation Logger - Debug navigation state and history
  • 🔄 Redux Logger - Inspect Redux store and actions
  • 📱 Shake to Open - Quick access by shaking your device
  • 🎨 Customizable - Customize colors, size, tabs, and components
  • Performant - Lightweight with smooth animations

📸 Screenshots

Screenshots coming soon

📦 Installation

npm install react-native-assistive-tool
# or
yarn add react-native-assistive-tool

Peer Dependencies

This library requires the following peer dependencies. Install them based on which features you want to use:

Required for all features:

yarn add react-native-gesture-handler
yarn add react-native-safe-area-context

For Network Logger:

yarn add react-native-network-logger

For AsyncStorage Viewer:

yarn add @react-native-async-storage/async-storage

For Navigation Logger:

yarn add @react-navigation/native @react-navigation/native-stack

For Redux Logger:

yarn add react-redux redux

Optional:

# For shake gesture (optional)
yarn add react-native-shake

# For MMKV storage viewer (optional)
yarn add react-native-mmkv-storage

iOS Setup

If you're using CocoaPods, run:

cd ios && pod install

🚀 Usage

Basic Usage

import React from 'react';
import { AssistiveTouch } from 'react-native-assistive-tool';
import { NavigationContainer } from '@react-navigation/native';

const navigationRef = React.createRef();

export default function App() {
  return (
    <NavigationContainer ref={navigationRef}>
      <AssistiveTouch
        size={70}
        navigationRef={navigationRef}
      >
        {/* Your app content */}
      </AssistiveTouch>
    </NavigationContainer>
  );
}

Advanced Usage

import React from 'react';
import { AssistiveTouch } from 'react-native-assistive-tool';
import { NavigationContainer } from '@react-navigation/native';

const navigationRef = React.createRef();

export default function App() {
  return (
    <NavigationContainer ref={navigationRef}>
      <AssistiveTouch
        size={70}
        color="#007AFF"
        navigationRef={navigationRef}
        tabs={['network', 'data']} // Custom tabs
        customNetworkComponent={<CustomNetworkView />}
        onPress={() => console.log('Button pressed')}
        onMoveEnd={() => console.log('Button moved')}
        callbackEventShowDebugger={() => console.log('Debugger opened')}
      >
        {/* Your app content */}
      </AssistiveTouch>
    </NavigationContainer>
  );
}

Hide Assistive Touch

<AssistiveTouch
  hideAssistiveTouch={true}
>
  {/* Your app content - button won't be shown */}
</AssistiveTouch>

📚 API Reference

AssistiveTouch Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | size | number | 70 | Size of the floating button in pixels | | color | string | "#007AFF" | Color of the button (hex format) | | navigationRef | RefObject | undefined | Required for Navigation Logger feature | | tabs | string[] | ['network', 'data', 'navigation', 'redux'] | Custom tabs to display | | customNetworkComponent | ReactNode | undefined | Custom network logger component | | debugAddOnView | DebugAddOnView[] | undefined | Custom debug views to add | | hideAssistiveTouch | boolean | false | Hide the floating button | | onPress | () => void | undefined | Callback when button is pressed | | onMoveEnd | () => void | undefined | Callback when button movement ends | | callbackEventShowDebugger | () => void | undefined | Callback when debugger is opened |

DebugAddOnView Interface

interface DebugAddOnView {
  title: string;
  component: React.ReactNode;
}

Custom Debug Views

You can add custom debug views to the modal:

<AssistiveTouch
  debugAddOnView={[
    {
      title: 'custom',
      component: <YourCustomDebugView />
    }
  ]}
>
  {/* Your app */}
</AssistiveTouch>

🎨 Customization

Custom Button

You can provide a custom button component:

<AssistiveTouch
  button={<YourCustomButton />}
>
  {/* Your app */}
</AssistiveTouch>

Custom Tabs

Only show specific tabs:

<AssistiveTouch
  tabs={['network', 'data']} // Only network and data tabs
>
  {/* Your app */}
</AssistiveTouch>

Custom Network Component

Replace the default network logger:

import { NetworkLogger } from 'your-custom-network-logger';

<AssistiveTouch
  customNetworkComponent={<NetworkLogger />}
>
  {/* Your app */}
</AssistiveTouch>

🔧 Features Details

Network Logger

  • View all HTTP/HTTPS requests and responses
  • Filter and search through requests
  • View request/response headers and body
  • Export requests data

AsyncStorage Viewer

  • View all stored key-value pairs
  • Search and filter storage items
  • Edit and delete stored values

Navigation Logger

  • View current navigation state
  • See navigation history
  • Debug navigation actions

Redux Logger

  • Inspect Redux store state
  • View dispatched actions
  • Track state changes

🎯 Shake to Open

The debugger can be opened by shaking your device. Make sure react-native-shake is installed and properly configured.

💡 Tips

  • The floating button automatically snaps to the nearest edge when released
  • Tap the button once to open the debugger
  • Drag the button to move it around
  • Customize the button size and color to match your app theme

🤝 Contributing

Contributions are welcome! Please see our Contributing Guide for details.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'feat: add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

👤 Author

huy.trinh

🙏 Acknowledgments


Made with ❤️ for React Native developers

⭐ Star this repo if you find it helpful!