New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-native-console-modal

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-console-modal

A simple React Native package to display console logs in a modal, making it easy to debug directly within the app

latest
Source
npmnpm
Version
0.1.3
Version published
Maintainers
0
Created
Source

react-native-console-modal

A React Native debug tool that displays console logs and network requests directly within your app. Perfect for debugging on physical devices without needing to connect to a computer.

Features

  • 📱 Real-time console log viewing within your app
  • 🎨 Color-coded log levels (log, warn, error)
  • 🔄 Auto-scrolling to latest logs
  • 🧹 One-tap log clearing
  • 📍 Draggable floating button
  • 🪶 Lightweight and easy to integrate

Installation

# Using npm
npm install react-native-console-modal

# Using yarn
yarn add react-native-console-modal

Usage

Basic Setup

import { LogViewer, overrideConsole } from 'react-native-console-modal';

// Override console methods to capture logs
overrideConsole();

function App() {
  return (
    <View style={styles.container}>
      {/* Your app content */}
      <LogViewer />
    </View>
  );
}

Features Demonstrated in Example

  • Console Logging:

    • Regular console.log messages
    • State updates logging
    • API call results
  • Interactive Testing:

    • Button to trigger console.log
    • Counter to demonstrate state changes
    • API fetch to show network requests
  • Styling:

    • Centered container layout
    • Clean button arrangement
    • Professional looking UI

Why react-native-console-modal?

  • 🔍 Debug on physical devices without computer connection
  • 📱 Perfect for QA teams and beta testers
  • 🚀 Zero configuration required
  • 🎨 Clean and intuitive interface
  • 🪶 Minimal impact on app performance

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Made with create-react-native-library

Keywords

react-native

FAQs

Package last updated on 11 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts