New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-native-log

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-native-log

A React Native log function that under the hood calls NSLog() on iOS and Log.i() on Android

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
797
increased by7.85%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-native-log

A React Native log function that under the hood calls NSLog() on iOS and Log.i() on Android.

A potential use case for this library is to be able to read logs with an E2E UI testing tool like Appium.

Installation

npm install react-native-native-log

Usage

import NativeLog from "react-native-native-log";

// ...

NativeLog.log('hello world'); // hello world
// or
NativeLog.logWithTag('my-tag', 'hello world'); // [my-tag] hello world

Example app

To get started with the project, run yarn bootstrap in the root directory to install the required dependencies for each package:

yarn bootstrap

iOS

To run the example app on iOS:

yarn example ios

In order to see the native logs (they won't show in the normal console log in the Metro window):

  • Run the iOS app from example/ios/NativeLogExample.xcworkspace in Xcode and look at the log window there

Android

To run the example app on Android:

yarn example android

In order to see the native logs (they won't show in the normal console log in the Metro window):

  • run adb logcat

Contributing

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

License

MIT

Keywords

FAQs

Package last updated on 24 Jul 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc